joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb63f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xb789fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xb64002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00b67dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xb64002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00b5f6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00b6820b
push 0x10
call fcn.00b681d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xb63fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00b541c0
jmp 0xb63fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00b63b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xb63ff0
mov ecx, edi
call fcn.00b542c0
push edi
call fcn.00b681c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xb64021
inc ebx
cmp ebx, 0x20
jb 0xb63f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xb65250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb79808
push 0xb69288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xb65329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xb65329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00b681d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xb65329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xb65329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xb6532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00b65351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb65d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb65d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xb65d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xb65d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xb65d94
push eax
push esi
call fcn.00b6820b
add esp, 8
pop esi
ret 0x10

Function at 0xb65da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb65e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xb65e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xb7e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b67dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xb65dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xb65e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xb65ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xb65eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xb7e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b67dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xb65eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xb65e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xb66000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xb66131
push esi
call fcn.00b69145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00b58080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xb66131
push 0
push ebp
call fcn.00b583a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00b58260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xb6608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00b582f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb66121
push 0xb7e918
push edi
call fcn.00b673f0
push eax
push ebx
push esi
call fcn.00b65f60
push 0xb7e8f8
push edi
call fcn.00b673f0
push eax
push ebx
push esi
call fcn.00b65f60
push 0xb7e8d8
push edi
call fcn.00b673f0
push eax
push ebx
push esi
call fcn.00b65f60
push 0xb7e8c0
push edi
call fcn.00b673f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00b65f60
push 0xb7e8a0
push edi
call fcn.00b673f0
push eax
push ebx
push esi
call fcn.00b65f60
push 0xb7e888
push edi
call fcn.00b673f0
push eax
push ebx
push esi
call fcn.00b65f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xb671b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b67140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b67140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b67140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b67140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb67bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb67c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb7987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb67c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb67c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401080
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x40b034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
mov eax, esp
and dword [eax], 0
push ecx
mov esi, ecx
mov eax, esp
and dword [eax], 0
push esi
mov dword [ebp - 0x48], esi
call fcn.00401b82
lea ecx, [ebp - 0x20]
mov dword [esi + 4], eax
call fcn.004028ec
mov ebx, eax
lea eax, [esi + 0x24]
call fcn.0040225c
push 1
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.00402702
lea ebx, [ebp - 0x3c]
call fcn.00402827
mov esi, str.Perf_
push esi
mov ebx, eax
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
mov edi, eax
push esi
mov eax, ebx
call fcn.00401e94
and dword [ebp - 0x10], 0
xor ecx, ecx
mov ebx, eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], cx
call fcn.0040225c
mov eax, dword [ebp - 0x48]
add eax, 0x40
lea ebx, [ebp - 0x20]
call fcn.0040225c
push 1
xor edi, edi
mov esi, ebx
call fcn.00402702
push 1
lea esi, [ebp - 0x3c]
call fcn.00402702
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x48]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x40116a
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x7d0
push pe_nt_image_headers32
push eax
call edi
push ebx
push 0x2710
push 0x101
push dword [esi + 4]
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi + 4], ebx
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.004080ae
leave
ret
Function at 0x402827
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x40b034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], 0
mov edi, dword [sym.imp.MSVCR100.dll_wcsncat_s]
mov esi, 0x104
je 0x4028ab
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x4028ab
push esi
push 0x4095f8
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
add esp, 0x10
push esi
push 0x409668
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
push esi
push str.Logs_
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
mov eax, ebx
call fcn.004026d3
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.004080ae
leave
ret
Function at 0x402a88
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x40b034]
xor eax, esp
mov dword [esp + 0x2c8], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
inc ebx
push esi
push edi
cmp dword [eax + 0x10], ebx
jae 0x402ab7
xor eax, eax
jmp 0x402c65
push eax
lea esi, [esp + 0x14]
call fcn.00402350
mov edi, dword [esp + 0x20]
push 0x5c
dec edi
call fcn.00401ad1
cmp eax, edi
je 0x402af5
push 0x2f
call fcn.00401ad1
cmp eax, edi
je 0x402af5
mov esi, 0x4095f8
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x14]
call fcn.00401e94
push 0x140
lea eax, [esp + 0x84]
push 0
push eax
call dword [sym.imp.MSVCR100.dll_memset]
push 0x4096ac
lea edi, [esp + 0x20]
lea eax, [esp + 0x58]
call fcn.004020ff
mov eax, dword [esp + 0x58]
add esp, 0x10
cmp dword [esp + 0x5c], 8
jae 0x402b2e
lea eax, [esp + 0x48]
lea ecx, [esp + 0x80]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x402c29
test ebx, ebx
je 0x402c29
lea eax, [esp + 0xac]
push eax
lea edi, [esp + 0x14]
lea eax, [esp + 0x30]
call fcn.004020ff
mov esi, dword [sym.imp.MSVCR100.dll_wcscmp]
lea eax, [esp + 0xb0]
mov dword [esp], 0x4095fc
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x402c03
lea eax, [esp + 0xac]
push 0x409600
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x402c03
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x402ba8
lea eax, [esp + 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x80], 0x10
mov eax, dword [esp + 0x2c]
je 0x402bf1
cmp dword [esp + 0x40], 8
jae 0x402bcd
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x68]
call fcn.004026d3
lea eax, [esp + 0x64]
push eax
call fcn.00402a88
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x68]
call fcn.00402702
jmp 0x402c03
cmp dword [esp + 0x40], 8
jae 0x402bfc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 1
xor edi, edi
lea esi, [esp + 0x30]
mov ebx, eax
call fcn.00402702
jmp 0x402b4a
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x402c42
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 1
xor edi, edi
lea esi, [esp + 0x4c]
mov ebx, eax
call fcn.00402702
push 1
lea esi, [esp + 0x14]
call fcn.00402702
mov eax, ebx
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004080ae
mov esp, ebp
pop ebp
ret
Function at 0x4038d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40392d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40391f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40391b
cmp edi, eax
jae 0x40391f
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40390d
cmp edi, eax
jb 0x403923
xor eax, eax
jmp 0x40392c
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x403a65
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
push edi
push 7
pop eax
mov dword [esi + 0x14], eax
xor edi, edi
mov dword [esi + 0x10], edi
xor ecx, ecx
mov word [esi], cx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], edi
xor eax, eax
mov word [esi + 0x1c], ax
push 0x48
mov dword [esi + 0x44], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
cmp eax, edi
je 0x403ad3
mov dword [esi + 0x40], eax
mov dword [eax], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x40]
push edi
mov dword [eax + 8], eax
mov eax, dword [esi + 0x40]
push edi
push edi
mov byte [eax + 0x44], 1
mov eax, dword [esi + 0x40]
push 1
push str.QQ_Performance_Helper_Tool__1.0
mov byte [eax + 0x45], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x38], eax
pop edi
mov eax, esi
pop esi
leave
ret
lea esi, [ebp - 0xc]
call fcn.00402744
push 0x409c50
mov eax, esi
push eax
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x404b42
Capabilities:
Read and send data from client to server
Read file on windows
Send data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 0xc], ebx
je 0x404bc9
cmp dword [ebp + 0xc], 0xffffffff
je 0x404bc9
mov esi, 0x100000
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.MSVCR100.dll_malloc]
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x404bc9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
jmp 0x404bab
cmp dword [ebp - 4], 0
je 0x404bb4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x404bb4
add ebx, dword [ebp - 0xc]
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x404b81
push dword [ebp - 8]
call dword [sym.imp.MSVCR100.dll_free]
xor eax, eax
cmp ebx, dword [ebp + 0x10]
pop ecx
sete al
pop edi
jmp 0x404bcb
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x405356
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x40b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [section..data]
push esi
push edi
mov esi, ecx
mov edi, section..data
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7c], eax
test esi, esi
jne 0x40539c
lea esi, [eax - 0x10]
mov eax, esi
call fcn.00405c22
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
jmp 0x40544e
push 0x14
lea eax, [ebp - 0x18]
push 0
push eax
call dword [sym.imp.MSVCR100.dll_memset]
mov eax, dword [ebp + 8]
and dword [ebp - 0x5c], 0
and dword [ebp - 0x60], 0
push esi
lea esi, [ebp - 0x74]
mov dword [ebp - 0x74], 0x67452301
mov dword [ebp - 0x70], 0xefcdab89
mov dword [ebp - 0x6c], 0x98badcfe
mov dword [ebp - 0x68], 0x10325476
mov dword [ebp - 0x64], 0xc3d2e1f0
call fcn.004079c9
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00407a64
add esp, 0x14
and dword [ebp - 0x78], 0
mov eax, dword [section..data]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [ebp + eax - 0x18]
push eax
push str._02X
lea eax, [ebp - 0x80]
call fcn.00405e5b
mov esi, dword [ebp - 0x80]
pop ecx
pop ecx
push dword [esi - 0xc]
lea eax, [ebp - 0x7c]
push esi
call fcn.00405a84
lea eax, [esi - 0x10]
call fcn.00403930
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 0x14
jl 0x4053f3
mov esi, dword [ebp - 0x7c]
lea eax, [esi - 0x10]
call fcn.00405c22
add eax, 0x10
mov dword [ebx], eax
lea eax, [esi - 0x10]
call fcn.00403930
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.004080ae
leave
ret 4
Function at 0x4067c1
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, eax
push 3
mov esi, ecx
xor edx, edx
lea eax, [edi + 2]
pop ecx
div ecx
cmp eax, 0x40000000
jae 0x4068ca
mov ecx, dword [ebp + 0xc]
shl eax, 2
cmp dword [ecx], eax
jb 0x4068ca
mov ecx, dword [ebp + 8]
cmp edi, 2
jbe 0x40685d
push ebx
push 3
xor edx, edx
lea eax, [edi - 3]
pop ebx
div ebx
inc eax
movzx edx, byte [esi]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
and edx, 3
add edx, edx
shr ebx, 4
mov dl, byte [ebx + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], dl
movzx edx, byte [esi + 1]
movzx ebx, byte [esi + 2]
and edx, 0xf
shr ebx, 6
mov dl, byte [ebx + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
movzx edx, byte [esi + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], dl
add ecx, 4
add esi, 3
sub edi, 3
dec eax
jne 0x406801
pop ebx
test edi, edi
je 0x4068b9
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
and eax, 3
cmp edi, 1
jbe 0x4068a4
movzx edx, byte [esi + 1]
add eax, eax
shr edx, 4
mov al, byte [edx + eax*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x4068b6
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
mov byte [ecx], 0
mov dword [edx], eax
xor eax, eax
jmp 0x4068cd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret

Function at 0x407c89
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x40b400], 0
push esi
push edi
jne 0x407bff
call fcn.00407b6b
test eax, eax
je 0x407c44
mov eax, dword [0x40b400]
cmp eax, 1
jne 0x407c20
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x407c44
jmp 0x407c86
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x407c86
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x407c48
xor eax, eax
jmp 0x407c86
mov eax, dword [esi]
push dword [0x40b400]
call edi
mov edi, eax
test edi, edi
je 0x407c6a
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x407c86
lea edi, [esi + 0xff0]
push esi
push dword [0x40b400]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x407c70
mov eax, esi
pop edi
pop esi
ret
jmp 0x407beb
Function at 0x4080ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b034]
jne 0x4080b8
repz ret
jmp fcn.004084ba