joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e1b8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45e1cf
add esp, 0xfffffff0
call fcn.004046b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b4d4
mov eax, dword [0x4a0650]
cmp word [eax + 2], 0
jne 0x45e1f7
mov eax, dword [0x4a0650]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045fc68
mov eax, dword [0x4a0768]
cmp word [eax + 2], 0
jne 0x45e211
mov eax, dword [0x4a0768]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045fe74
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41327c]
call fcn.00404360
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41327c]
call fcn.00404360
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41327c]
call fcn.00404360
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41fb38]
call fcn.00427674
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45e3c8
mov eax, dword [0x4a04e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427a48
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x460534
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a04e4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040dba8
test eax, eax
je 0x45e318
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409c14
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dbdc
test eax, eax
je 0x45e32c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040542c
mov byte [ebx + 0xd4], 0
push ebx
push 0x45f7c8
call fcn.0041c650
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4a02e0]
cmp byte [eax], 0
jne 0x45e37d
mov eax, ebx
call fcn.0045e50c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00460710
mov eax, ebx
call fcn.00461270
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45e3bd
call fcn.0040470c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e78c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a45a8]
cmp dword [eax + 0x30], 0
je 0x45e836
cmp dword [ebx + 0x94], 0
jne 0x45e830
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e71c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45e830
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45e7f6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e830
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00415628
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e805
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45f550
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45f585
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004052ac
jmp 0x45f592
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405210
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4608f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x460962
mov eax, esi
call fcn.0044af90
test al, al
je 0x460962
mov eax, dword [ebx + 0x84]
call fcn.0044abf0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460962
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x460956
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044abf0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00442fc4
jmp 0x460962
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00460730
pop esi
pop ebx
ret
Function at 0x491d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x491d95
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
push edx
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, 0x80000000
sete al
test al, al
je 0x491d6d
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
mov eax, ebx
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.0040542c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491d9c
lea eax, [ebp - 4]
call fcn.00406a00
ret
Function at 0xe57590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x466014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0x4540bc]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xe5778b
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0xe5778b
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.00e88760
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0x454064]
test eax, eax
je 0xe5778b
push 4
push 0x1000
push 4
push 0
call dword [0x4540ac]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0x454050]
test eax, eax
je 0xe5778b
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0x45ce8c
push dword [ebp - 0x160]
call dword [0x4540c0]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0xe576ac
push 0x45ce90
push 0x45cea8
call dword [0x454094]
push eax
call dword [0x454054]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0x454058]
mov dword [ebp - 0x168], eax
test eax, eax
je 0xe5778b
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0x4540b8]
xor eax, eax
cmp ax, word [edi + 6]
jae 0xe57745
mov ecx, 0xa0
xor ebx, ebx
mov dword [ebp - 0x164], ecx
nop dword [eax]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + esi + 0x68]
mov eax, dword [ecx + esi + 0x6c]
add eax, esi
push eax
mov eax, dword [ecx + esi + 0x64]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0x4540b8]
mov ecx, dword [ebp - 0x164]
inc ebx
movzx eax, word [edi + 6]
add ecx, 0x28
mov dword [ebp - 0x164], ecx
cmp ebx, eax
jl 0xe57700
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0x4540b8]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0x45406c]
push dword [ebp - 0x15c]
call dword [0x45409c]
push 0x8000
push 0
push esi
call dword [0x4540b4]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00e71661
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x40332cb8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4033a4a4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x40332cfc
call ebx
test eax, eax
jns 0x40332cf2
push 0x4033146c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x40331460
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4033a4a0], eax
mov dword [0x4033a4a4], 1
mov eax, dword [0x4033a4a0]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40332d18
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x40332d48
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40332d3e
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x40332d33
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x40332d38
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x40332d47
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x40333068
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x4033307b
push 0xd
pop eax
jmp 0x403330a6
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4033307e
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4033390b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40331b9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor edi, edi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x208], edi
call fcn.40332fe0
mov ebx, eax
cmp ebx, edi
je 0x40333976
lea ecx, [ebp - 0x20c]
call fcn.40332f77
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40337a78
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40333994
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.4033390b
cmp eax, edi
jne 0x403339dc
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], pe_nt_image_headers32
call ebx
test eax, eax
je 0x4033397e
lea ecx, [ebp - 0x20c]
call fcn.40332f77
push dword [ebp - 0x214]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.40332f77
mov eax, esi
jmp 0x40333965
Function at 0x40334df3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x40331b9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x408], edi
call fcn.40333b2d
mov dword [ebp - 0x40c], eax
cmp eax, edi
jne 0x40334e4b
call fcn.40332e92
mov esi, eax
jmp 0x40334f2c
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x40334e64
call fcn.40332e92
jmp 0x40334f1e
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x40334e5a
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40334ec9
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x40334ea6
lea ecx, [ebp - 0x408]
call fcn.403335e1
mov esi, 0x8007000e
lea ecx, [ebp - 0x410]
call fcn.40333511
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.40337a78
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.4033404e
cmp dword [ebp - 0x408], edi
jne 0x40334ee4
mov esi, 0x8007000e
jmp 0x40334f20
push esi
push dword [ebp - 0x408]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x40334e5a
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x408]
lea ecx, [ebp - 0x418]
call fcn.40334c43
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x40334eab
lea ecx, [ebp - 0x408]
call fcn.403335e1
jmp 0x40334eab

Function at 0x403360a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.40332ea7
test eax, eax
jl 0x40336107
mov edx, dword [ebp - 4]
test esi, esi
jne 0x403360da
test edi, edi
jmp 0x403360f5
test edi, edi
je 0x403360fe
cmp edx, 1
je 0x403360e8
cmp edx, 2
jne 0x403360fe
mov ecx, dword [esi]
cmp ecx, 2
jb 0x403360f7
cmp word [ecx + edi - 2], 0
je 0x403360fe
mov eax, 0x8000ffff
jmp 0x40336107
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40336107
mov dword [ecx], edx
pop edi
pop esi
leave
ret 0x14
Function at 0x403361a3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
push edi
xor ebx, ebx
lea edi, [esi + 8]
mov dword [ebp - 8], ebx
cmp eax, dword [edi]
jne 0x403362f5
push 0x802
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40336306
push 0x802
push 0
push ebx
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 0x20]
add esp, 0xc
test eax, eax
jne 0x4033620b
push eax
push edi
push 0x800
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403362fc
jmp 0x40336220
mov ecx, dword [eax]
push edi
push 0x800
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x403362fc
mov ecx, dword [edi]
test ecx, ecx
je 0x403362fc
xor edx, edx
cmp dword [esi + 0x14], edx
jne 0x40336262
mov al, byte [ebx]
cmp al, 0xff
jne 0x40336246
cmp byte [ebx + 1], 0xfe
jne 0x40336246
mov dword [esi + 0x18], 1
jmp 0x40336259
cmp al, 0xfe
jne 0x40336259
cmp byte [ebx + 1], 0xff
jne 0x40336259
xor eax, eax
inc eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], edx
je 0x4033626b
shr ecx, 1
mov dword [edi], ecx
cmp dword [esi + 0x1c], edx
je 0x40336296
mov ecx, dword [edi]
lea ecx, [ecx + ecx - 2]
cmp ecx, edx
jbe 0x40336296
dec ecx
shr ecx, 1
lea eax, [ebx + 1]
inc ecx
mov dl, byte [eax - 1]
mov byte [ebp + 0xb], dl
mov dl, byte [eax]
mov byte [eax - 1], dl
mov dl, byte [ebp + 0xb]
mov byte [eax], dl
inc eax
inc eax
dec ecx
jne 0x40336281
cmp dword [esi + 0x18], 0
je 0x403362ab
push dword [esi + 0x10]
call fcn.40336005
mov dword [esi + 0x10], ebx
xor ebx, ebx
jmp 0x403362e5
test byte [0x4033a51c], 1
jne 0x403362c6
or dword [0x4033a51c], 1
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x4033a518], eax
push 0x800
push dword [esi + 0x10]
push dword [edi]
push ebx
push 0
push dword [0x4033a518]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [edi], eax
test eax, eax
je 0x403362fc
xor eax, eax
cmp dword [ebp - 4], eax
je 0x403362f2
cmp dword [esi + 0x18], eax
je 0x403362f2
inc eax
mov dword [esi + 0xc], eax
mov dword [ebp - 8], 1
test ebx, ebx
je 0x40336306
push ebx
call fcn.40336005
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40337481
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40338cb0
call fcn.40338649
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov ecx, 0x5a4d
cmp dx, cx
jne 0x403374bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov esi, 0xe0
cmp word [ecx + 0x14], si
jne 0x403374bf
add esi, 0x2b
cmp word [ecx + 0x18], si
jne 0x403374bf
mov eax, dword [ecx + 0x50]
jmp 0x403374e0
mov ecx, 0x4550
cmp dx, cx
jne 0x403374ec
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x403374ec
add ecx, 0x2b
cmp word [eax + 0x18], cx
jne 0x403374ec
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x403374f0
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.4033868e
ret 4
Function at 0x403379c4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x40331bbc
push 0x40331ba0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x403379f9
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x40331b9c
push ebx
call edi
mov dword [0x40331b9c], esi
test esi, esi
jne 0x40337a5d
mov dword [0x40331b9c], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x4033a450], 0x44bf19b1
pop ebx
leave
ret

Function at 0x40337a78
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40331b9c]
jne 0x40338817
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4033a740], eax
mov dword [0x4033a73c], ecx
mov dword [0x4033a738], edx
mov dword [0x4033a734], ebx
mov dword [0x4033a730], esi
mov dword [0x4033a72c], edi
mov word [0x4033a758], ss
mov word [0x4033a74c], cs
mov word [0x4033a728], ds
mov word [0x4033a724], es
mov word [0x4033a720], fs
mov word [0x4033a71c], gs
pushfd
pop dword [0x4033a750]
mov eax, dword [ebp]
mov dword [0x4033a744], eax
mov eax, dword [ebp + 4]
mov dword [0x4033a748], eax
lea eax, [ebp + 8]
mov dword [0x4033a754], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4033a690], 0x10001
mov eax, dword [0x4033a748]
mov dword [0x4033a644], eax
mov dword [0x4033a638], 0xc0000409
mov dword [0x4033a63c], 1
mov eax, dword [0x40331b9c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4033a450]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x4033a688], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40331dbc
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x4033a688], 0
jne 0x40338903
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x40337a9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.40337a85
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x4033128c
push 0x80000000
call esi
test eax, eax
jne 0x40337b45
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.40337a85
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40337b37
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x40331be0
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40337b37
cmp dword [ebp + 8], esi
jne 0x40337b37
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x40337b37
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x40337b29
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x40337b33
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x40337b55
cmp dword [ebp - 4], ebx
je 0x40337b45
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x40337b53
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40337b5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x4033a5f4], 0
je 0x40337b71
mov eax, dword [0x4033a5f0]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.40337a85
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x40331c30
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x40337bd2
lea eax, [ebp - 8]
push eax
push 0x4033a5f0
push 0
push 0
push dword [0x4033a458]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40337bd2
cmp dword [ebp - 8], 4
jne 0x40337bd2
cmp dword [ebp - 4], eax
jmp 0x40337c17
lea ecx, [ebp - 4]
call fcn.40337a85
push eax
push ebx
xor ebx, ebx
push ebx
push 0x40331bf8
push edi
call esi
test eax, eax
jne 0x40337c33
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x4033a5f0
push ebx
push ebx
push dword [0x4033a458]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40337c33
cmp dword [ebp - 8], esi
jne 0x40337c33
cmp dword [ebp - 4], ebx
mov esi, dword [0x4033a5f0]
mov byte [0x4033a5f4], 1
je 0x40337c2f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40337c50
mov dword [0x4033a5f0], ebx
mov byte [0x4033a5f4], 1
cmp dword [ebp - 4], ebx
je 0x40337c4e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret