joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406430
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x7c
mov eax, 0x425dc4
call fcn.00414d9d
mov esi, ecx
sub esp, 0x18
mov dword [ebp - 0x35], 0x74746553
lea eax, [ebp - 0x20]
mov dword [ebp - 0x88], esp
xor ebx, ebx
mov word [ebp - 0x42], 0x6f69
mov ecx, esp
mov word [ebp - 0x49], 0x6e65
push eax
mov word [ebp - 0x53], 0x646e
mov dword [ebp - 0x46], 0x73726556
mov dword [ebp - 0x3f], 0x746e495c
mov word [ebp - 0x63], 0x7261
mov dword [ebp - 0x3b], 0x656e7265
mov word [ebp - 0x50], 0x7377
mov dword [ebp - 0x31], 0x73676e69
mov dword [ebp - 0x68], 0x74666f53
mov dword [ebp - 0x4d], 0x72727543
mov byte [ebp - 0x64], 0x77
mov dword [ebp - 0x57], 0x69575c74
mov dword [ebp - 0x60], 0x63694d5c
mov word [ebp - 0x37], 0x2074
mov dword [ebp - 0x5b], 0x666f736f
mov byte [ebp - 0x51], 0x6f
mov byte [ebp - 0x47], 0x74
mov byte [ebp - 0x40], 0x6e
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x5c], 0x72
mov byte [ebp - 0x4e], 0x5c
mov byte [ebp - 0x61], 0x65
mov dword [ebp - 0x20], 0x786f7250
mov word [ebp - 0x1a], 0x616e
mov word [ebp - 0x17], 0x656c
mov word [ebp - 0x1c], 0x4579
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x18], 0x62
mov dword [ebp - 0x26], 0x65767265
mov dword [ebp - 0x2b], 0x79786f72
mov byte [ebp - 0x27], 0x53
mov word [ebp - 0x22], 0x72
mov byte [ebp - 0x2c], 0x50
call fcn.004020a7
sub esp, 0x18
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
mov ecx, esp
push eax
call fcn.004020a7
or dword [ebp - 4], 0xffffffff
call fcn.004065f3
cmp eax, 1
lea eax, [ebp - 0x2c]
sete bl
add esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84], esp
push eax
call fcn.004020a7
sub esp, 0x18
mov dword [ebp - 4], 1
lea eax, [ebp - 0x68]
mov ecx, esp
push eax
call fcn.004020a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00406675
mov edi, str.http
push edi
call fcn.0040208a
add esp, 0x34
lea ecx, [ebp - 0x80]
push eax
push 0
push edi
call fcn.004047ae
cmp eax, 0xffffffff
mov edi, str.https
setne bh
push edi
call fcn.0040208a
pop ecx
push eax
push 0
push edi
lea ecx, [ebp - 0x80]
call fcn.004047ae
cmp eax, 0xffffffff
setne cl
test bl, bl
je 0x4065d0
test bh, bh
jne 0x4065c8
test cl, cl
jne 0x4065c8
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00402143
mov al, 1
jmp 0x4065e0
test esi, esi
jne 0x4065e6
test bh, bh
jne 0x4065b8
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00402143
mov al, bl
call fcn.00414d4c
ret
cmp esi, 1
jne 0x4065d0
test cl, cl
je 0x4065d0
mov bl, 1
jmp 0x4065d2
Function at 0x4065f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea ecx, [ebp - 8]
xor edi, edi
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push 0x20019
push edi
push eax
push SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40664b
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 4
push ecx
push edi
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
lea ecx, [ebp + 8]
push edi
push 1
call fcn.00402143
push edi
push 1
lea ecx, [ebp + 0x20]
call fcn.00402143
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406675
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x425e1d
call fcn.00414d9d
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 2
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
lea eax, [ebp + 8]
mov dword [ebp - 0x38], 1
cmovae eax, dword [ebp + 8]
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40677b
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x34], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
test eax, eax
jne 0x406779
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
call fcn.004067be
mov esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x34]
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push esi
push 0
push 0
push eax
push dword [ebp - 0x30]
call ebx
xor ebx, ebx
test eax, eax
jne 0x40676c
mov ecx, dword [ebp - 0x40]
mov eax, ecx
sub eax, esi
test eax, eax
jle 0x40676c
push dword [ebp - 0x48]
lea eax, [ecx - 1]
mov dword [ebp - 0x18], 0xf
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004068a6
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00401c22
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402143
test esi, esi
je 0x40677b
push esi
call fcn.0040ffc1
pop ecx
jmp 0x40677b
xor ebx, ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00402143
push ebx
push 1
lea ecx, [ebp + 0x20]
call fcn.00402143
mov eax, edi
call fcn.00414d4c
ret
Function at 0x406a35
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.00412ec0
add esp, 0xc
push 0x415
push dword [0x436608]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406a92
sub ecx, edx
cmp ecx, 3
jle 0x406ab4
movsx eax, byte [ebp + ecx - 0x10a]
sub eax, 0x30
cmp eax, 4
jne 0x406ab4
mov al, 1
jmp 0x406ab6
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ffb2
mov esp, ebp
pop ebp
ret

Function at 0x406ac4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
imul edi, dword [ebp + 0xc], 0x64
xor esi, esi
test edi, edi
jle 0x406b8b
push dword [0x436608]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406b63
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.00412ec0
add esp, 0xc
push 0x415
push dword [0x436608]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406b41
sub ecx, edx
cmp ecx, 3
jle 0x406b7a
movsx eax, byte [ebp + ecx - 0x10a]
sub eax, 0x30
cmp dword [ebp + 8], eax
jne 0x406b7a
mov al, 1
jmp 0x406b8d
push 1
call fcn.00406e42
push dword [0x436608]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406b8b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, edi
jl 0x406ae7
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040ffb2
mov esp, ebp
pop ebp
ret 8
Function at 0x406b9f
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x436608]
push esi
mov esi, dword [ebp + 8]
mov dword [0x436600], esi
test eax, eax
jne 0x406bcf
call fcn.00406e20
mov eax, dword [0x436608]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406cb0
push edi
push 0x415
push dword [0x436608]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x103
mov edi, eax
mov byte [ebp - 0x108], 0
lea eax, [ebp - 0x107]
push 0
push eax
call fcn.00412ec0
push 0x103
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
push 0
push eax
call fcn.00412ec0
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406c45
sub ecx, edx
cmp ecx, 3
jle 0x406caf
movsx eax, byte [ebp + ecx - 0x10a]
sub eax, 0x30
cmp esi, eax
jle 0x406caf
add ecx, 0xfffffffd
cmp ecx, 0x104
jae 0x406cc3
push 0x20
lea eax, [esi + 0x30]
mov byte [ebp + ecx - 0x108], 0
push eax
push 0x20
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_c_c_c
push eax
call fcn.00406e73
add esp, 0x18
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040ffb2
mov esp, ebp
pop ebp
ret 4
call fcn.0041014e
int3

Function at 0x4080a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426013
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x434080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x4365e8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x4365e8
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x42ffdf
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00406fb0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4083d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x40842a
cmp byte [esi + 0x2c], bl
jne 0x408421
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408400
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x34]
call fcn.00406fb0
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x408440
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x408431
push 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.00413250
push ebx
call fcn.00413663
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.00413250
add esp, 0x1c
test edi, edi
jg 0x4084ac
cmp byte [esi + 0x2c], 0
jne 0x408421
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 0xc
lea edi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4084a0
jmp 0x408407
lea eax, [edi + 1]
push eax
call fcn.00410874
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.00413115
add esp, 0x14
cmp eax, 1
je 0x408504
push edi
call fcn.0040ffc1
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x408421
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 2
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4084f8
jmp 0x408407
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x40852d
mov dl, byte [eax]
cmp dl, 0xd
jne 0x408524
inc eax
mov byte [ecx], 0xa
inc ecx
cmp byte [eax], 0xa
jne 0x408528
jmp 0x408527
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x408511
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push 0
push edi
call dword [eax + 8]
push edi
call fcn.0040ffc1
add esp, 4
xor eax, eax
cmp byte [esi + 0x2c], al
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40aef0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
xor eax, eax
jmp 0x40af00
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jl 0x40af00
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
movzx eax, dl
xor edi, edi
xor cl, cl
mov dword [ebp - 0xc], eax
mov ebx, 0xff
mov esi, 1
mov dword [ebp - 8], 0
cmp ebx, esi
jbe 0x40af43
lea esi, [esi*2 + 1]
cmp esi, ebx
jb 0x40af30
jmp 0x40af43
mov edx, dword [ebp + 0xc]
movzx eax, cl
mov ecx, dword [ebp - 4]
mov cl, byte [eax + ecx]
mov eax, dword [ebp + 8]
add cl, byte [edi + eax]
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x40af5c
xor edi, edi
add cl, dl
mov eax, dword [ebp - 8]
movzx edx, cl
inc eax
and edx, esi
mov dword [ebp - 8], eax
cmp eax, 0xb
jbe 0x40af73
mov eax, edx
xor edx, edx
div ebx
cmp edx, ebx
ja 0x40af40
mov eax, dword [ebp - 4]
movzx esi, dl
add esi, eax
mov dword [ebp - 8], esi
mov dl, byte [ebx + eax]
mov al, byte [esi]
mov esi, dword [ebp - 4]
mov byte [ebx + esi], al
mov esi, dword [ebp - 8]
mov byte [esi], dl
mov edx, dword [ebp + 0xc]
dec ebx
jne 0x40af20
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
movzx eax, byte [edx + 1]
mov byte [edx + 0x100], al
movzx eax, byte [edx + 3]
mov byte [edx + 0x101], al
movzx eax, byte [edx + 5]
mov byte [edx + 0x102], al
movzx eax, byte [edx + 7]
mov byte [edx + 0x103], al
movzx eax, cl
movzx eax, byte [eax + edx]
mov byte [edx + 0x104], al
mov eax, edx
mov esp, ebp
pop ebp
ret 8

Function at 0x40b530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0x400
push 0
mov dword [edi + 0x6bc], eax
lea esi, [edi + 0x2bc]
mov eax, dword [ebp + 0xc]
push esi
mov dword [edi + 0x6c0], eax
call fcn.00412ec0
push dword [ebp + 0x10]
push 0x400
push esi
call fcn.00411de9
push 0x80
lea eax, [edi + 0x30]
push 0
push eax
call fcn.00412ec0
mov eax, dword [edi + 0x6bc]
add esp, 0x24
test eax, eax
je 0x40b5a3
push 0xb0
push eax
push 0xb0
push edi
call fcn.00410fe0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
push 0
push 0
push dword [edi + 0x6c4]
call fcn.00413250
push dword [edi + 0x6c4]
push 1
push 0xb0
push edi
call fcn.00413115
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40b6f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 4], ebx
mov ecx, dword [ebx + 0x6bc]
test ecx, ecx
je 0x40b72c
mov eax, dword [ebp + 8]
mov esi, dword [ebx + eax*8 + 0x30]
mov edi, dword [ebx + eax*8 + 0x34]
add esi, ecx
push edi
call fcn.0040fe08
push edi
push esi
mov ebx, eax
push edi
push ebx
call fcn.00410fe0
mov esi, dword [ebp - 4]
add esp, 0x14
jmp 0x40b761
mov esi, dword [ebp + 8]
push 0
push dword [ebx + esi*8 + 0x30]
push dword [ebx + 0x6c4]
call fcn.00413250
mov edi, dword [ebx + esi*8 + 0x34]
push edi
call fcn.0040fe08
mov esi, dword [ebp - 4]
mov ebx, eax
push dword [esi + 0x6c4]
push 1
push edi
push ebx
call fcn.00413115
add esp, 0x20
xor edx, edx
test edi, edi
je 0x40b782
movzx eax, byte [ebx + edx]
mov ecx, edx
shr ecx, 1
mov byte [ecx + ebx], al
movzx eax, byte [ebx + edx + 1]
add edx, 4
mov byte [ecx + ebx + 1], al
cmp edx, edi
jb 0x40b767
mov eax, edi
mov ecx, esi
shr eax, 1
push eax
push ebx
lea eax, [esi + 0x2bc]
push eax
call fcn.0040b600
mov esi, dword [ebx]
lea eax, [esi + 8]
mov ecx, eax
and ecx, 0xf
je 0x40b7a7
sub eax, ecx
add eax, 0x10
add eax, eax
cmp eax, edi
je 0x40b7b4
mov esi, 0x57
jmp 0x40b7d5
push esi
call fcn.0040fe08
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ecx], eax
lea ecx, [ebx + 8]
push ecx
push esi
push eax
call fcn.00410fe0
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], esi
xor esi, esi
mov ecx, ebx
test edi, edi
je 0x40b7e9
jmp 0x40b7e0
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edi
jne 0x40b7e0
push ebx
call fcn.00410011
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40e035
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e074
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40e070
lea ebx, [ebx]
cmp esi, edx
jae 0x40e074
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40e060
cmp esi, edx
jb 0x40e079
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40e7d0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x40e800
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x70], 0x67452301
mov dword [ebp - 0x6c], 0xefcdab89
mov dword [ebp - 0x68], 0x98badcfe
mov dword [ebp - 0x64], 0x10325476
call fcn.0040f090
lea ecx, [ebp - 0x70]
call fcn.0040e6e0
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040e890
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, edi
xor ecx, ebp
pop edi
pop esi
call fcn.0040ffb2
mov esp, ebp
pop ebp
ret
Function at 0x40f830
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
jmp 0x40f840
mov eax, dword [ecx + 0xb4]
movzx eax, byte [eax + ebx*4]
mov byte [ecx + ebx*4 + 4], al
mov eax, dword [ecx + 0xb4]
movzx eax, byte [eax + ebx*4 + 1]
mov byte [ecx + ebx*4 + 5], al
mov eax, dword [ecx + 0xb4]
movzx eax, byte [eax + ebx*4 + 2]
mov byte [ecx + ebx*4 + 6], al
mov eax, dword [ecx + 0xb4]
movzx eax, byte [eax + ebx*4 + 3]
mov byte [ecx + ebx*4 + 7], al
inc ebx
cmp ebx, 4
jb 0x40f840
cmp ebx, 0x2c
jae 0x40f917
lea eax, [ecx + 2]
lea eax, [eax + ebx*4]
mov cl, byte [eax - 1]
mov ch, byte [eax]
mov dh, byte [eax + 1]
mov dl, byte [eax - 2]
mov byte [ebp - 2], cl
mov byte [ebp - 1], ch
mov byte [ebp - 3], dh
test bl, 3
jne 0x40f8e9
movzx ecx, cl
movzx edx, dl
mov cl, byte [ecx + 0x427de0]
mov dh, byte [edx + 0x427de0]
mov byte [ebp - 4], cl
movzx ecx, byte [ebp - 1]
mov dl, byte [ebp - 4]
mov cl, byte [ecx + 0x427de0]
mov byte [ebp - 2], cl
movzx ecx, byte [ebp - 3]
mov cl, byte [ecx + 0x427de0]
mov byte [ebp - 1], cl
mov ecx, ebx
shr ecx, 2
xor dl, byte [ecx + 0x427fe0]
mov ch, byte [ebp - 1]
mov cl, byte [eax - 0xe]
inc ebx
xor cl, dl
mov byte [eax + 2], cl
mov cl, byte [eax - 0xd]
xor cl, byte [ebp - 2]
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, ch
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, dh
mov byte [eax + 5], cl
add eax, 4
cmp ebx, 0x2c
jb 0x40f890
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fd90
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x42e7fc
push 1
push 0
push 0x42e7ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40fdc3
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov esi, eax
push 0
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push esi
push ecx
call dword [edx + 0xc]
xor ebx, ebx
test eax, eax
push esi
setns bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422044
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00415024
mov dword [ebp - 0x14], eax
cmp dword [0x436524], esi
jne 0x422137
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4220c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x422217
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x422217
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x422217
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x436524], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x436528], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43652c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436534], eax
test eax, eax
je 0x422134
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x436530], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42215c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42214f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x422171
push 4
pop eax
jmp 0x422219
cmp dword [ebp - 0x14], esi
je 0x422171
push dword [0x436524]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x422156
mov eax, dword [0x436530]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4221cf
cmp dword [0x436534], edi
je 0x4221cf
push eax
call ebx
push dword [0x436534]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4221cf
test eax, eax
je 0x4221cf
call ecx
test eax, eax
je 0x4221c4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4221c4
test byte [ebp - 8], 1
jne 0x4221cf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4221ff
mov eax, dword [0x436528]
cmp eax, edi
je 0x4221fc
push eax
call ebx
test eax, eax
je 0x4221fc
call eax
mov esi, eax
test esi, esi
je 0x4221fc
mov eax, dword [0x43652c]
cmp eax, edi
je 0x4221fc
push eax
call ebx
test eax, eax
je 0x4221fc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x436524]
call ebx
test eax, eax
je 0x422217
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x422219
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffb2
mov esp, ebp
pop ebp
ret