joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402680
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x500
lea eax, [esp + 0x100]
push esi
push edi
mov edi, dword [esp + 0x50c]
mov esi, ecx
push edi
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
jne 0x4026c6
push eax
push str.Error
push str.Cannot_read_.ini_file
mov ecx, esi
call fcn.00412f8d
pop edi
pop esi
add esp, 0x500
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebp
push edi
push 0
push str.DebugBeep
push 0x41e390
call ebx
mov ecx, dword [esi + 0x258]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0xf1
push ecx
call ebp
mov ecx, esi
call fcn.00402510
push edi
push 1
push str.VirtualJoyNumber
push 0x41e390
call ebx
mov edx, dword [esi + 0x168]
dec eax
push 0
push eax
push 0x14e
push edx
call ebp
mov ecx, esi
call fcn.00402380
push edi
push 0
push str.InputDLLType
push 0x41e390
call ebx
push 0
mov dword [0x41e0b4], eax
push eax
mov eax, dword [esi + 0x294]
push 0x14e
push eax
call ebp
push edi
lea ecx, [esp + 0x14]
push 0x100
push ecx
push 0x422088
push str.InputDLLName
push 0x41e390
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x10]
lea ecx, [esi + 0x110]
push edx
call fcn.00411437
push edi
push 0
push str.UpdateInterval
push 0x41e390
call ebx
mov dword [0x421fdc], eax
push eax
lea eax, [esp + 0x114]
push 0x41e1c4
push eax
call fcn.004034ae
add esp, 0xc
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esi + 0x188]
call fcn.00411437
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x500
ret 4
Function at 0x4071e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41efe0
cmp edx, dword [eax]
je 0x407207
add eax, 8
inc ecx
cmp eax, 0x41f070
jl 0x4071f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41efe0]
jne 0x407335
mov eax, dword [0x424078]
cmp eax, 1
je 0x40730f
test eax, eax
jne 0x407238
cmp dword [0x41e990], 1
je 0x40730f
cmp edx, 0xfc
je 0x407335
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40726f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407470
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4072b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a2d0
push edi
call fcn.00409d90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407470
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407480
lea eax, [ebp - 0xa0]
push 0x41a2b0
push eax
call fcn.00407480
push dword [esi + 0x41efe4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407480
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409d07
add esp, 0x2c
pop edi
jmp 0x407335
lea eax, [ebp + 8]
lea esi, [esi + 0x41efe4]
push 0
push eax
push dword [esi]
call fcn.00404e50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40eb50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004046e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40ec1b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40ec1b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40ebce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40ebd9
or bh, 8
and edi, 0x8000000
je 0x40ebf4
mov eax, dword [0x42581c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40ec1b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40eff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40f01b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40f03f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40f05a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41395a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41399c
call fcn.0041679a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41399c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x413993
xor eax, eax
jmp 0x4139a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004139aa
pop edi
pop esi
pop ebx
ret 4
Function at 0x1004870d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1004871b
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x100487fc
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x1000fc78]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1000fc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1000fc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1000fc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1000fc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x1000fc78]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x1000fc78]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x1000fc78]
xor eax, esi
inc edx
dec edi
jne 0x10048738
pop ebx
cmp dword [ebp + 0x10], 0
je 0x1004881d
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x1000fc78]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x10048802
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x10048823
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x1000fc78]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x1000fc78]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x100489de
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
push ecx
call 0x1006e2d3
test eax, eax
jne 0x10048a01
mov eax, 0x200
jmp 0x10048b76
mov ecx, dword [ebp - 0x4c]
push ebx
push esi
push 1
mov edx, ecx
pop eax
xor ebx, ebx
and edx, eax
mov dword [ebp - 8], ebx
je 0x10048a17
mov dword [ebp - 8], eax
test cl, 2
je 0x10048a20
or dword [ebp - 8], 2
test cl, 4
je 0x10048a29
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x10048a34
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x10048a3d
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x10048a47
or byte [ebp - 5], 0x40
jmp 0x10048a4b
or byte [ebp - 5], 0x80
or byte [ebp - 5], 1
cmp edx, ebx
jne 0x10048a57
or byte [ebp - 6], 0x80
push ebx
push edi
call 0x100743d0
rol dword [ebx + 0x458928f8], 0xf0
jbe 0x10048af2
call fcn.1005ef32
sub al, 0x53
push ebx
push ebx
push edi
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 2]
push 2
push eax
push edi
push eax
call fcn.1005edad
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push dword [ebp + 8]
call edi
cmp word [ebp - 2], 0x54ad
jne 0x10048af2
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x10048af2
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x10048aee
cmp eax, 0x454e
je 0x10048aee
cmp eax, 0x454c
je 0x10048aee
cmp eax, 0x4550
jne 0x10048af2
or byte [ebp - 6], 0x40
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x10048afe
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10048b0a
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x10048b46
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.1004895f
push dword [ebp - 0x34]
mov dword [esi], eax
mov dword [esi + 4], edx
push dword [ebp - 0x38]
call fcn.1004895f
push dword [ebp - 0x44]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
push dword [ebp - 0x48]
call fcn.1004895f
mov dword [esi + 0x10], eax
add esp, 0x18
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x10048b72
lea eax, [ebp + 0xe]
push eax
lea eax, [ebp + 0xa]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.10048981
movzx eax, word [ebp + 0xa]
movzx ecx, word [ebp + 0xe]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret
Function at 0x412082
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x418680], 0
push ebx
push esi
mov esi, 0x418688
jne 0x4120ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4186a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x418680], 1
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41214b
push 0x14
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412175
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x418684]
test eax, eax
je 0x4120f0
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x418684], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41217a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412175
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x8ccbc0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x8cc92e
mov edi, 0x6ae2bed
add eax, 0x43757d6a
call fcn.008ccc00
add eax, edi
add edi, 0xd59aa6e3
dec edi
xor dword [ebx], edx
push eax
mov eax, dword [esp]
add esp, 4
and eax, eax
dec eax
inc ebx
sub eax, 0x9f26040c
add eax, edi
cmp ebx, ecx
jne fcn.008ccbc0
sub edi, 1
ret

Function at 0x5d8ac8
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x5d87dc
mov ebx, ebx
dec ebx
and ebx, ebx
call fcn.005d8b05
or edi, ebx
or ebx, ebx
xor dword [eax], ecx
dec edi
mov edi, 0x15f90e0b
add eax, 2
mov ebx, 0xb72ffe7e
sub ebx, 1
cmp eax, esi
jl fcn.005d8ac8
sub edi, edi
ret

Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x402065
push 0x402053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40101c
ret
mov edi, edi
mov esi, 0x4010c7
mov edi, esi
push 1
push 0x402083
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreW]
mov edx, eax
pop ebx
mov ecx, 0x380
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x401040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x401066
xor eax, eax
mov dword [0x402096], eax
add esp, 4
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d9ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x43af64]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
xor edi, edi
push 0x43e5b0
mov dword [esp + 0x1c], edi
call fcn.00424c45
lea ecx, [esp + 0xc]
or eax, 0xffffffff
mov dword [esi + 0x10], edi
push ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 8], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x14], edi
mov dword [esi], edi
call fcn.00423a36
lea edx, [esp + 0xc]
push edx
call fcn.00423a36
lea eax, [esp + 0xc]
push eax
call fcn.00423a36
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4010a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42d9d0
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
xor ebx, ebx
lea eax, [edi + 0x2c]
mov dword [esp + 0x18], ebx
push eax
push ecx
push edx
call fcn.00424d51
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x1c], 1
call fcn.00424bf5
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.00424b08
mov eax, dword [edi]
push 1
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x1c]
push ebx
push ebx
push ecx
call fcn.00415660
mov ecx, dword [edi + 0x20]
xor ebp, ebp
add eax, ecx
mov dword [esi + 0x30], ebx
adc edx, ebp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
lea edx, [esi + 0x18]
lea eax, [edi + 4]
push edx
push eax
mov dword [esi + 0x2c], ebx
call fcn.00401170
lea ecx, [esi + 0x1c]
lea edx, [edi + 0xc]
push ecx
push edx
call fcn.00401170
lea eax, [esi + 0x20]
add edi, 0x14
push eax
push edi
call fcn.00401170
mov ecx, dword [esp + 0x40]
add esp, 0x18
mov dword [esi], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00424b08
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x402850
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42dc51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x43af64]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 4]
mov dword [ebp], eax
mov ecx, dword [0x43af64]
lea ebx, [esi + 0x2c]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx], ecx
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 1
call fcn.00401330
mov ecx, ebp
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4308cc
call fcn.00424a93
mov ebp, 1
mov ecx, ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
call fcn.00424a93
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x20], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], 0x32
mov dword [esi + 0x58], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42dd08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x43af64]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
lea ebp, [esi + 0x30]
push 0xffffffffffffffff
push 0
mov ecx, ebp
mov byte [esp + 0x2c], 1
call fcn.004022c0
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push ecx
lea edi, [esi + 4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.0042487d
mov ecx, esi
call fcn.00402e10
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x402dd4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402dd4
push 0x4390c0
lea ecx, [esp + 0x10]
call fcn.00424e98
push 0x2a
mov ecx, edi
call fcn.00424f83
cmp eax, 0xffffffff
jne 0x402d96
push 0x3f
mov ecx, edi
call fcn.00424f83
cmp eax, 0xffffffff
jne 0x402d96
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
call fcn.0042487d
mov ecx, ebp
call fcn.00401c60
jmp 0x402dd4
mov esi, dword [esi + 8]
push 0
push 0
push esi
push 0
push esi
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0042487d
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x44], 2
call fcn.0042487d
mov ecx, ebp
mov byte [esp + 0x40], 1
call fcn.00401780
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00424b08
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00424b08
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1c
ret
Function at 0x403520
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x42ddc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov eax, dword [0x43af64]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.00423bf6
cmp eax, 0xffffffff
je 0x40359c
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00423b7e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.00424bf5
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call fcn.00424b08
push 0x4390c0
lea ecx, [esp + 0xc]
call fcn.00423fb1
push 0x5c
lea ecx, [esp + 0x24]
call fcn.00423bf6
cmp eax, 0xffffffff
pop esi
je 0x40360d
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00423b7e
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 4
call fcn.00424bf5
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.00424b08
mov edx, dword [esp]
push 0
push edx
call fcn.00416013
add esp, 8
test eax, eax
jne 0x40360d
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.00415e05
add esp, 8
test eax, eax
je 0x40360d
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.00424b08
lea ecx, [esp]
mov byte [esp + 0x14], 0
call fcn.00424b08
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00424b08
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x403650
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x42de08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x43af64]
mov dword [esp + 0x1c], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea esi, [ecx + 4]
mov bl, 2
push 0x5c
mov ecx, esi
mov byte [esp + 0x20], bl
call fcn.00423bf6
cmp eax, 0xffffffff
je 0x4036bf
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00423b7e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.00424bf5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.00424b08
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc]
call fcn.00424bf5
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
call esi
push 0x5c
lea ecx, [esp + 0xc]
call fcn.00423bf6
cmp eax, 0xffffffff
je 0x403752
push edi
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.00423b7e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call fcn.00424bf5
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.00424b08
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.00415e05
add esp, 8
test eax, eax
je 0x403741
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
mov edi, dword [edx - 8]
cmp eax, edi
jle 0x403741
push ecx
call esi
push 0x5c
lea ecx, [esp + 0x10]
call fcn.00423bf6
cmp eax, 0xffffffff
jne 0x4036eb
pop edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.00424b08
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.00424b08
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00424b08
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4