joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433622
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x476503
call fcn.0045f800
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00443114
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x43366d
call fcn.00443114
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x43367e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x43368b
or eax, 0xffffffff
jmp 0x4337e7
mov ecx, esi
call fcn.00433169
mov dword [ebp - 0x14], eax
call fcn.0043d7cc
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x433709
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x433709
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x433709
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00403f40
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x433709
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x433709
mov ecx, ebx
call fcn.00431316
test eax, eax
je 0x433709
push 0
mov ecx, ebx
call fcn.00431331
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0043f3cc
push dword [ebp - 0x14]
call fcn.0043d724
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0043342a
xor edi, edi
cmp eax, edi
je 0x433766
test byte [esi + 0x3c], 0x10
je 0x433750
push 4
pop edi
mov ecx, esi
call fcn.004311b0
test ax, 0x100
je 0x433746
push 5
pop edi
push edi
mov ecx, esi
call fcn.0043d2ec
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x433766
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00431521
or dword [ebp - 4], 0xffffffff
jmp 0x433791
cmp dword [ebp - 0x28], edi
je 0x43379f
push 1
mov ecx, ebx
call fcn.00431331
cmp dword [ebp - 0x2c], edi
je 0x4337af
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4337c8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4337c8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004331a3
cmp dword [esi + 0x58], edi
je 0x4337e4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0045f8a5
ret
Function at 0x433818
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00443114
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43384f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0043342a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4338a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x4338c7
cmp dword [edi + 0x54], 0
jne 0x4338c7
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00443114
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0043386e
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x434ef8
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x434f01
xor eax, eax
jmp 0x434f6a
cmp dword [esp + 8], 0
jne 0x434f0d
call fcn.00435d44
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004607a9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x434f48
push dword [esi + 0x10]
call fcn.004604af
test eax, eax
pop ecx
jne 0x434f48
mov esi, dword [esi + 0xc]
call fcn.0045f991
push esi
push dword [eax]
push 1
call fcn.0045658d
push dword [esi + 0x10]
call fcn.004604de
test eax, eax
pop ecx
je 0x434f67
push dword [esi + 0x10]
call fcn.00460403
push eax
call fcn.00403c30
pop ecx
pop ecx
jmp 0x434f36
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x434f73
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x434f7d
call fcn.00435d44
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00460923
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x434faa
mov esi, dword [esi + 0xc]
call fcn.0045f991
push esi
push dword [eax]
push 1
call fcn.0045658d
pop esi
ret 8

Function at 0x43ea0a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43ea43
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004351c2
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00430916
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x440578
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4405bb
call fcn.00443114
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4405bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4405d6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00440132
test ebx, ebx
mov esi, eax
je 0x4405d4
test edi, edi
je 0x4405d4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x445cae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00443114
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x445cd9
xor eax, eax
jmp 0x445d7d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x445cd2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x445cd2
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e20e
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x445d2e
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x445d1d
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00444af5
push edi
mov ebx, eax
call fcn.0042e239
test ebx, ebx
pop ecx
je 0x445d70
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00445194
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00445246
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x44a16a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44a198
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44a1b6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044a0d4
jmp 0x44a1b6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44a1b6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044a0d4
test edi, edi
mov eax, edi
jne 0x44a1a0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x49bfc0]
test ecx, ecx
je 0x44a279
jmp 0x44a169
ret 8

Function at 0x45ba52
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49804c]
jne 0x45ba5c
repz ret
jmp fcn.00463e2c
Function at 0x46050d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x46054a
cmp dword [ebp + 0x14], edi
je 0x46054a
cmp ecx, edi
jne 0x460551
call fcn.0045f97e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004640a6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x460565
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x460586
cmp ebx, 0xffffffff
je 0x460575
push ebx
push edi
push ecx
call fcn.0045bf00
add esp, 0xc
cmp esi, edi
je 0x460532
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x460532
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4605a2
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4605a9
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x46069a
test word [esi + 0xc], 0x10c
je 0x4605fd
mov eax, dword [esi + 4]
test eax, eax
je 0x4605fd
jl 0x4606fb
cmp ebx, eax
mov edi, ebx
jb 0x4605ce
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4606a2
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045c9c9
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x460692
cmp ebx, dword [ebp - 0xc]
jb 0x46066a
cmp dword [ebp - 0xc], 0
je 0x460627
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x46061c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x460623
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x460632
mov eax, SysReAllocString
cmp ebx, eax
ja 0x460632
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4606ce
push eax
push dword [ebp - 8]
push esi
call fcn.00460162
pop ecx
push eax
call fcn.0046c86f
add esp, 0xc
test eax, eax
je 0x46070d
cmp eax, 0xffffffff
je 0x4606fb
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x460692
push esi
call fcn.0046c18e
cmp eax, 0xffffffff
pop ecx
je 0x4606ff
cmp dword [ebp - 4], 0
je 0x4606ce
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4605b1
mov eax, dword [ebp + 0x14]
jmp 0x46054c
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4606b9
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0045bf00
add esp, 0xc
call fcn.0045f97e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x460542
cmp dword [ebp + 0xc], 0xffffffff
je 0x4606e4
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0045bf00
add esp, 0xc
call fcn.0045f97e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x460542
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x46054c
or dword [esi + 0xc], 0x10
jmp 0x4606ff
Function at 0x461ece
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x498200]
je 0x461ee9
inc edi
cmp edi, 0x17
jb 0x461eda
cmp edi, 0x17
jae 0x462069
push ebp
push 3
call fcn.0046dd0d
cmp eax, 1
pop ecx
je 0x462035
push 3
call fcn.0046dd0d
test eax, eax
pop ecx
jne 0x461f1d
cmp dword [0x498048], 1
je 0x462035
cmp ebx, 0xfc
je 0x462068
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x49c2e0
push ebp
call fcn.0046dca8
add esp, 0xc
test eax, eax
je 0x461f53
push esi
push esi
push esi
push esi
push esi
call fcn.00463faa
add esp, 0x14
push 0x104
mov esi, 0x49c2f9
push esi
push 0
mov byte [0x49c3fd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x461f97
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0046dca8
add esp, 0xc
test eax, eax
je 0x461f97
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00463faa
add esp, 0x14
push esi
call fcn.0045bb00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x461fdc
push esi
call fcn.0045bb00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x49c5f4
push 0x484904
sub ecx, eax
push ecx
push eax
call fcn.0046dbf5
add esp, 0x14
test eax, eax
je 0x461fdc
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00463faa
add esp, 0x14
jmp 0x461fde
xor esi, esi
push 0x484900
push ebx
push ebp
call fcn.0046db84
add esp, 0xc
test eax, eax
je 0x461ffe
push esi
push esi
push esi
push esi
push esi
call fcn.00463faa
add esp, 0x14
push dword [edi*8 + 0x498204]
push ebx
push ebp
call fcn.0046db84
add esp, 0xc
test eax, eax
je 0x462020
push esi
push esi
push esi
push esi
push esi
call fcn.00463faa
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0046d9c7
add esp, 0xc
jmp 0x462068
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x462068
cmp ebp, 0xffffffff
je 0x462068
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x498204]
push dword [esi]
call fcn.0045bb00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46d9c7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00462a92
xor ebx, ebx
cmp dword [0x49cde8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x46da9d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46db7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x46db7d
push eax
call fcn.00462a24
mov dword [esp], 0x484cf0
push edi
mov dword [0x49cde8], eax
call esi
push eax
call fcn.00462a24
mov dword [esp], 0x484cdc
push edi
mov dword [0x49cdec], eax
call esi
push eax
call fcn.00462a24
mov dword [0x49cdf0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045da01
test eax, eax
pop ecx
pop ecx
je 0x46da6b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00463faa
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46da9d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00462a24
cmp eax, ebx
pop ecx
mov dword [0x49cdf8], eax
je 0x46da9d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00462a24
pop ecx
mov dword [0x49cdf4], eax
mov eax, dword [0x49cdf4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x46db22
cmp dword [0x49cdf8], ecx
je 0x46db22
push eax
call fcn.00462a9b
push dword [0x49cdf8]
mov esi, eax
call fcn.00462a9b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x46db22
cmp edi, ebx
je 0x46db22
call esi
cmp eax, ebx
je 0x46daef
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46daef
test byte [ebp - 0x18], 1
jne 0x46db22
lea eax, [ebp - 0x10]
push eax
call fcn.0045da38
test eax, eax
pop ecx
je 0x46db0a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00463faa
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x46db19
or dword [ebp + 0x10], 0x200000
jmp 0x46db5d
or dword [ebp + 0x10], 0x40000
jmp 0x46db5d
mov eax, dword [0x49cdec]
cmp eax, dword [ebp - 8]
je 0x46db5d
push eax
call fcn.00462a9b
cmp eax, ebx
pop ecx
je 0x46db5d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46db5d
mov eax, dword [0x49cdf0]
cmp eax, dword [ebp - 8]
je 0x46db5d
push eax
call fcn.00462a9b
cmp eax, ebx
pop ecx
je 0x46db5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49cde8]
call fcn.00462a9b
cmp eax, ebx
pop ecx
je 0x46db7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46db7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4737d7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x49804c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047376c
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0045bf00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x473826
cmp dword [ebp - 0x1c], 5
jb 0x47383e
jmp 0x47383a
cmp dword [ebp - 0x10], 1
jne 0x47383e
cmp dword [ebp - 0x1c], 4
ja 0x47383a
jne 0x47383e
cmp dword [ebp - 0x18], 0
jbe 0x47383e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x486570
call fcn.00425010
test eax, eax
jge 0x47385f
mov byte [0x499e90], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045ba52
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x49cec4], 0
push esi
jne 0x473984
call fcn.004738af
test eax, eax
je 0x4739c7
mov eax, dword [0x49cec4]
cmp eax, 1
jne 0x4739a5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4739c7
pop esi
ret
push eax
call dword [0x49cecc]
test eax, eax
jne 0x473a0f
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 0x4739cb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x49cec4]
call dword [0x49cecc]
mov edi, eax
test edi, edi
je 0x4739f2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x473a0e
lea edi, [esi + 0xff0]
push esi
push dword [0x49cec4]
call dword [0x49cec8]
add esi, 0x10
cmp esi, edi
jb 0x4739f8
mov eax, esi
pop edi
pop esi
ret
jmp 0x473971
Function at 0x411470
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47426b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00468b1b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4114f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046689a
mov eax, dword [eax]
push 0x6f41d0
push eax
call fcn.00458b74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00468da6
test bl, bl
je 0x4114f2
push 0x6f41d0
lea ecx, [esp + 0xc]
call fcn.00469136
push 0x6f7d60
lea ecx, [esp + 0xc]
call fcn.00469136
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41152e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00468da6
jmp 0x4115f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4115b2
lea edx, [esp + 0x7c]
push 0x6f7d5c
push edx
call fcn.00458b74
add esp, 8
test eax, eax
je 0x4115b2
lea eax, [esp + 0x7c]
push 0x6f7d58
push eax
call fcn.00458b74
add esp, 8
test eax, eax
je 0x4115b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411542
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00468da6
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x411df0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x411e52
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x411e60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4742eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6fe6a0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x411f98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x411ec6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00468da6
xor eax, eax
jmp 0x41200f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00468ee3
push esi
lea ecx, [esp + 0xc]
call fcn.00469172
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x411fed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00411df0
test eax, eax
jne 0x411fed
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.00411df0
test eax, eax
jne 0x411fed
lea eax, [esp + 0x14]
push 0x6f7d74
push eax
call fcn.00459bb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x411fcc
lea ecx, [esp + 0x14]
push 0x6f7d70
push ecx
call fcn.00459b30
mov esi, eax
add esp, 8
test esi, esi
jne 0x411fcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x411fcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00468e93
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x411ede
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00468da6
xor eax, eax
jmp 0x41200f
mov byte [esi], 0
push 0x6f7d6c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00468da6
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4