joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409150
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [esi + 0x1cc]
mov ecx, dword [eax + 0x2c]
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esi + 0x20]
lea edi, [esi + 0xcc]
push edi
push edx
mov dword [esi + 0xec], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x74]
add dword [esi + 0xd0], 0x6c
add dword [esi + 0xd8], 0xfffffff5
add dword [edi], 0x10
add dword [esi + 0xd4], 0xfffffff0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
lea ebx, [esi + 0x54]
push 0
je 0x4091de
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xd8]
mov edi, dword [edi]
mov edx, dword [esi + 0xd4]
sub ecx, eax
push ecx
sub edx, edi
push edx
push eax
push edi
push 0
mov ecx, ebx
call fcn.004170e4
mov eax, dword [esi + 0x1bc]
push 0
push 0
push 0
push 0
push eax
jmp 0x40920e
push 0
push 0
push 0x94
push esi
push edi
push 0x50000000
push str.hello
push 0x44f35c
mov ecx, ebx
call fcn.0041a213
mov ecx, dword [esi + 0x1bc]
push 0
push 0
push 0
push 0
push ecx
push str._bLLLL
push 0
push 0
push 1
push 0x68
push ebx
call fcn.00416f57
mov ecx, dword [esi + 0xc8]
add esp, 0x2c
test ecx, ecx
pop edi
pop ebx
je 0x409237
push 0
call fcn.00416ed9
ret
Function at 0x4094d0
Capabilities:
Suspend thread

Disassembly:
push 0xffffffffffffffff
push 0x44664a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 0x1cc]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [edi + 0x74]
xor esi, esi
push ecx
mov dword [edi + 0xec], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409521
push esi
lea ecx, [edi + 0x54]
call fcn.00416ed9
mov ecx, dword [edi + 0xc8]
cmp ecx, esi
jne 0x409590
push 0x184
call fcn.0040f08e
add esp, 4
mov dword [esp + 8], eax
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x40954d
mov esi, eax
call fcn.00406380
jmp 0x40954f
xor eax, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [edi + 0xc8], eax
mov edx, dword [eax]
push edi
mov ecx, eax
mov eax, dword [edx + 0x134]
push 0xa3
call eax
mov ecx, dword [edi + 0xc8]
push 1
push 0x1a9
push 0x384
push 0x64
push 0xf
call fcn.00416e9b
mov ecx, dword [edi + 0xc8]
push 5
call fcn.00416ed9
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4095b0
Capabilities:
Suspend thread

Disassembly:
push 0xffffffffffffffff
push 0x447298
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push edi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esi + 0x1cc]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [esi + 0x20]
lea ebp, [esi + 0xcc]
push ebp
push ecx
mov dword [esi + 0xec], 0
call dword [sym.imp.USER32.dll_GetClientRect]
add dword [esi + 0xd0], 0x6c
add dword [esi + 0xd8], 0xfffffff5
add dword [ebp], 0x10
add dword [esi + 0xd4], 0xfffffff0
call fcn.0040f150
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409631
push 0x80004005
call fcn.00401080
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
mov edi, dword [0x45f948]
mov ecx, 0x44f0bc
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40967c
test dx, dx
je 0x409678
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40967c
add eax, 4
add ecx, 4
test dx, dx
jne 0x409656
xor eax, eax
jmp 0x409681
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4096c5
mov ecx, 0x44f90c
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4096b7
test dx, dx
je 0x4096b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4096b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x409691
xor eax, eax
jmp 0x4096bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4096dc
push 0x9f
push 0x44fd10
push 0x45f948
call fcn.004012f0
add esp, 0xc
mov eax, dword [esi + 0x1c4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00402f50
mov eax, dword [0x45f948]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00402f50
push 5
push str..html
lea ecx, [esp + 0x14]
call fcn.00402f50
mov ecx, dword [esi + 0x74]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409757
push 5
mov ecx, esi
call fcn.00416ed9
mov eax, dword [esi + 0xd0]
mov edx, dword [esi + 0xd8]
mov ecx, dword [ebp]
push 0
sub edx, eax
push edx
mov edx, dword [esi + 0xd4]
sub edx, ecx
push edx
push eax
push ecx
lea edi, [esi + 0x54]
push 0
mov ecx, edi
call fcn.004170e4
jmp 0x40977d
push 0
push 0
push 0
push 0x94
push esi
push ebp
push 0x50000000
push str.hello
lea edi, [esi + 0x54]
push 0x44f35c
mov ecx, edi
call fcn.0041a213
mov ebp, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push ebp
push str._bLLLL
push 0
push 0
push 1
push 0x68
push edi
call fcn.00416f57
mov ecx, dword [esi + 0xc8]
add esp, 0x2c
test ecx, ecx
je 0x4097b1
push 0
call fcn.00416ed9
lea eax, [ebp - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x10
ret
Function at 0x409e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x446830
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.REPLACE
mov esi, eax
push 0xae
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x409efc
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ee7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x409ebf
lea ecx, [esp + 0x10]
call fcn.0041c7cc
push 0
mov byte [esp + 0x2c], 1
mov edi, dword [esp + 0x34]
push 0x1001
push edi
lea ecx, [esp + 0x1c]
call fcn.0041cb78
push ebp
push esi
lea ecx, [esp + 0x18]
call fcn.0041c51a
lea ecx, [esp + 0x10]
call fcn.0041c76a
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0041c8a0
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x40b810
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4467a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x45b684]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x38]
push esi
push str._bLLLL
push 0
push 0
push 1
add ecx, 0x54
push 0x68
push ecx
mov word [esp + 0x34], 8
mov dword [esp + 0x3c], str._blank
call fcn.00416f57
lea eax, [esi - 0x10]
add esp, 0x2c
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 4
Function at 0x416cef
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 0x416d32
call fcn.004119c1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x416d32
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x416d4d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004168a9
test ebx, ebx
mov esi, eax
je 0x416d4b
test edi, edi
je 0x416d4b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41896c
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x418975
xor eax, eax
jmp 0x4189de
cmp dword [esp + 8], 0
jne 0x418981
call fcn.0040f6cc
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0042dc97
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4189bc
push dword [esi + 0x10]
call fcn.00430dbb
test eax, eax
pop ecx
jne 0x4189bc
mov esi, dword [esi + 0xc]
call fcn.0042e7fa
push esi
push dword [eax]
push 1
call fcn.0041921a
push dword [esi + 0x10]
call fcn.00430dea
test eax, eax
pop ecx
je 0x4189db
push dword [esi + 0x10]
call fcn.00430d0f
push eax
call fcn.004015f0
pop ecx
pop ecx
jmp 0x4189aa
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4189e7
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4189f1
call fcn.0040f6cc
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00430f33
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x418a1e
mov esi, dword [esi + 0xc]
call fcn.0042e7fa
push esi
push dword [eax]
push 1
call fcn.0041921a
pop esi
ret 8

Function at 0x41b9f5
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x41ba1e
call fcn.004119c1
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x41ba41
push eax
push dword [esi + 4]
call fcn.0041b980
push esi
push eax
mov ecx, 0x45e90c
call fcn.0041b653
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x41f22b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41f271
call fcn.004119c1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f271
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41f2b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41f29d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41f29d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41f2b1
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42c712
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b684]
jne 0x42c71c
repz ret
jmp fcn.0043368c
Function at 0x43dafd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00432fd6
xor ebx, ebx
cmp dword [0x45f7d4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43dbd2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x43db3d
xor eax, eax
jmp 0x43dc96
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44ca08
push edi
call esi
cmp eax, ebx
je 0x43db36
push eax
call fcn.00432f73
mov dword [esp], 0x44c9f8
push edi
mov dword [0x45f7d4], eax
call esi
push eax
call fcn.00432f73
mov dword [esp], 0x44c9e4
push edi
mov dword [0x45f7d8], eax
call esi
push eax
call fcn.00432f73
mov dword [0x45f7dc], eax
lea eax, [ebp - 8]
push eax
call fcn.0042ceee
test eax, eax
pop ecx
pop ecx
je 0x43dba0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433b6f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43dbd2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00432f73
cmp eax, ebx
pop ecx
mov dword [0x45f7e4], eax
je 0x43dbd2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00432f73
pop ecx
mov dword [0x45f7e0], eax
mov eax, dword [0x45f7e0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43dc4b
cmp dword [0x45f7e4], esi
je 0x43dc4b
push eax
call fcn.00432fdf
pop ecx
call eax
cmp eax, ebx
je 0x43dc18
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45f7e4]
call fcn.00432fdf
pop ecx
call eax
test eax, eax
je 0x43dc18
test byte [ebp - 0x18], 1
jne 0x43dc4b
lea eax, [ebp - 0xc]
push eax
call fcn.0042cf25
test eax, eax
pop ecx
je 0x43dc33
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433b6f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43dc42
or dword [ebp + 0x10], 0x200000
jmp 0x43dc7c
or dword [ebp + 0x10], 0x40000
jmp 0x43dc7c
mov eax, dword [0x45f7d8]
cmp eax, esi
je 0x43dc7c
push eax
call fcn.00432fdf
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43dc7c
mov eax, dword [0x45f7dc]
cmp eax, esi
je 0x43dc7c
push dword [ebp - 4]
push eax
call fcn.00432fdf
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45f7d4]
call fcn.00432fdf
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x444ce2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45b684]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00444c77
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.0042e860
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 0x444d31
cmp dword [ebp - 0x1c], 5
jb 0x444d49
jmp 0x444d45
cmp dword [ebp - 0x10], 1
jne 0x444d49
cmp dword [ebp - 0x1c], 4
ja 0x444d45
jne 0x444d49
cmp dword [ebp - 0x18], 0
jbe 0x444d49
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44e358
call fcn.00444b68
test eax, eax
jge 0x444d6a
mov byte [0x45f8c5], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042c712
add ebp, 0x78
leave
ret
Function at 0x420de0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a73a0]
xor edx, edx
cmp eax, edx
jne 0x420e06
xor eax, eax
mov byte [eax + 0x4a72a0], al
inc eax
cmp eax, 0x100
jl 0x420dee
mov dword [0x4a73a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a72a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x420e97
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x420e6a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x420e38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x420f63
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x420f4a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x425421
cmp eax, 8
jg 0x425421
cmp dword [esp + 0x8c], 2
jl 0x425421
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x425421
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x425421
mov eax, dword [esp + 0x80]
test eax, eax
je 0x425287
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x42540a
mov ebp, dword [0x476560]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x4252b9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4253f1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4252d9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x476550]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x425318
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x476554]
lea ecx, [esp + 0x28]
push ecx
call dword [0x476594]
test eax, eax
jne 0x4253d8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00424810
cmp eax, 1
jne 0x425402
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004250c0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4252cd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x42540a
jmp 0x4252a4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00424410
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x4279a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x427b38
cmp ebp, ebx
jle 0x427b38
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4279fe
dec eax
or eax, 0xfffffff8
inc eax
je 0x427a05
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x427a14
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x427a1b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00465db7
add esp, 4
cmp eax, ebx
je 0x427a3c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00465db7
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x427b2e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x427b15
mov al, byte [edx]
cmp al, 0xc0
jbe 0x427b01
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x427af6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x427b04
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x427b04
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x427aa0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x427a91
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret