joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ecf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5a7464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045e9a0
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x49ed81
lea eax, [ebp - 0x14]
push eax
call fcn.0049e700
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x49ed57
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00519280
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00508494
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00519280
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00508494
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49ee90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5a7464]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00460ba0
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x49ef27
lea eax, [ebp - 0x14]
push eax
call fcn.0049e700
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x49eefd
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00519280
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00508494
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00519280
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00508494
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4c5d50
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
lea ebx, [edi + 0x5ac]
push 0x4000
push ebx
call fcn.004c7f30
mov eax, dword [edi + 0x160]
add esp, 0x10
test eax, eax
je 0x4c5da1
cmp byte [edi + 0x85dc], 0
jne 0x4c5da1
push ebx
push 0x56d02c
push 0x100
push eax
call fcn.004c7e40
add esp, 0x10
mov byte [edi + 0x85dc], 1
cmp byte [edi + 0x318], 0
je 0x4c5e16
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c5db0
sub esi, ecx
cmp esi, 0x3fff
jae 0x4c5dd1
mov byte [edi + esi + 0x5ac], 0xa
inc esi
mov byte [edi + esi + 0x5ac], al
mov eax, dword [edi + 0x1d0]
test eax, eax
je 0x4c5def
push dword [edi + 0x15c]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
pop ebx
ret
push dword [edi + 0x158]
push 1
push 2
push 0x56d014
call fcn.00525cd9
push dword [edi + 0x158]
push 1
push esi
push ebx
call fcn.00525cd9
add esp, 0x20
pop esi
pop edi
pop ebx
ret

Function at 0x4c5e20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x5a7464]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x4c5ee9
cmp byte [edi + 0x318], 0
je 0x4c5ee9
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.004c7f30
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c5e80
mov eax, dword [edi + 0x1d0]
sub esi, ecx
test eax, eax
je 0x4c5ebe
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00508494
add esp, 0x808
ret
push dword [edi + 0x158]
push 1
push 2
push 0x56d014
call fcn.00525cd9
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00525cd9
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.00508494
add esp, 0x808
ret

Function at 0x4c6110
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.004c64c0
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x4c6196
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4c616e
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.004b53c0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004c5d50
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85e0], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4c64c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x2b8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4c656e
cmp dword [ecx + edx*4 + 0x17c], 0x4c6070
jne 0x4c656e
cmp dword [esi], 0
je 0x4c6507
test edi, edi
je 0x4c656e
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004c56b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c656e
test al, 1
je 0x4c656e
cmp dword [esi], 0
jne 0x4c6557
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x5a7360]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4c6557
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4c656e
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4c6580
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x4c65a9
push dword [esi + 0x15c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x4c65e2
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x56d014
push 2
push eax
call fcn.00525cd9
push dword [esi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00525cd9
add esp, 0x20
xor eax, eax
pop esi
ret

Function at 0x4c67a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5a0]
test esi, esi
je 0x4c67f6
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x4c67bf
cmp dword [edi + 0x40], eax
je 0x4c67f6
mov dword [esp + 8], esi
mov byte [esp + 0xc], 0
test eax, eax
jne 0x4c67cf
mov eax, dword [edi + 0x40]
push 0x4c7630
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.004d19b0
add esp, 0xc
cmp byte [esp + 0xc], 0
jne 0x4c67ff
mov dword [edi + 0x5a0], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c6809
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x4c682e
push esi
call fcn.0040c280
add esp, 4
test eax, eax
jne 0x4c6847
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
cmp edi, 0xffffffff
je 0x4c6847
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4c67f6
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x4d3ce0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4d3cfa
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x571874
push esi
call fcn.00534d30
add esp, 8
test eax, eax
je 0x4d3d42
test ebp, ebp
je 0x4d3d33
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4d3d68
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d3d68
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4d3e1f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d3d85
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x5a7360]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d3e15
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4d3e15
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d3db7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d3dd0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4d3de0
test ebp, ebp
je 0x4d3e0c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x5a7364]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x5a7364]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4e5f00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5a7464]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00535303
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4e5f65
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4e5f65
lea eax, [esp]
push eax
call dword [0x5a736c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00508494
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.00508494
add esp, 0x108
ret
Function at 0x4e9a10
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4e9a3b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4e9a2a
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4e9a70
cmp dword [esi + 8], 0
jne 0x4e9a5e
push 0x58fd14
push dword [eax + 8]
call fcn.00525dfd
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4e9a5e
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.005297ce
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4e9a92
mov eax, dword [esi + 8]
test eax, eax
je 0x4e9a8c
push eax
call fcn.00525ed1
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4edd90
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4edda0
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x5a7360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4eddc7
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4edde0
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4eddd0
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4ede5a
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4ede4e
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x5a7364]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4f3870
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5a7360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f3897
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4f38df
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4f38e3
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4f3945
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4f3904
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4f3977
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x5780c8
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5780c9
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4f3950
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x50cb09
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x53f40b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053f28a

Function at 0x546259
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00545f19
Function at 0x402490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x425450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4025b5
cmp byte [ebx + 0x45], 0
je 0x4025b5
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4024e4
xor al, al
jmp 0x4025b7
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40254e
dec eax
je 0x402552
sub eax, 2
je 0x40259e
xor bl, bl
jmp 0x4025a0
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x402584
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00406c4a
add esp, 0x10
cmp esi, eax
jne 0x40254a
cmp byte [ebx + 0x45], 0
je 0x40259e
test esi, esi
jne 0x402514
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00403150
jmp 0x402514
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x4025b1
push dword [ebp - 0x28]
call fcn.004059b9
add esp, 4
mov al, bl
jmp 0x4025b7
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407201
mov esp, ebp
pop ebp
ret
Function at 0x404040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b578
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x425450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x40407c
xor eax, eax
jmp 0x40420c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x4040aa
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x4040aa
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x40420c
cmp dword [ebx + 0x50], 0
jne 0x4040b8
or eax, 0xffffffff
jmp 0x40420c
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [esi], eax
jne 0x4040d9
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x40], 0
jne 0x4040fe
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.00406880
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x40420c
mov byte [ebp - 0x2c], cl
lea eax, [ebp - 0x28]
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x30]
mov esi, dword [ebx + 0x40]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edi, dword [esi]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x4041f6
cmp eax, 1
jg 0x4041d6
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub esi, eax
je 0x4041a7
push dword [ebx + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.00406c4a
add esp, 0x10
cmp esi, eax
jne 0x4041f6
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x4041d1
test esi, esi
jne 0x404131
cmp dword [ebp - 0x18], 0x20
jae 0x4041f6
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00403150
jmp 0x404131
mov ebx, dword [ebp + 8]
jmp 0x4041f9
cmp eax, 3
jne 0x4041f6
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.00401250
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x4041f9
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x40420a
push dword [ebp - 0x28]
call fcn.004059b9
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407201
mov esp, ebp
pop ebp
ret 4
Function at 0x41523f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409eab
mov dword [ebp - 0x14], eax
cmp dword [0x427d20], esi
jne 0x415332
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4152bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x415412
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x415412
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415412
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x427d20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x427d24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x427d28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x427d30], eax
test eax, eax
je 0x41532f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x427d2c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x415357
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41534a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41536c
push 4
pop eax
jmp 0x415414
cmp dword [ebp - 0x14], esi
je 0x41536c
push dword [0x427d20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x415351
mov eax, dword [0x427d2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4153ca
cmp dword [0x427d30], edi
je 0x4153ca
push eax
call ebx
push dword [0x427d30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4153ca
test eax, eax
je 0x4153ca
call ecx
test eax, eax
je 0x4153bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4153bf
test byte [ebp - 8], 1
jne 0x4153ca
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4153fa
mov eax, dword [0x427d24]
cmp eax, edi
je 0x4153f7
push eax
call ebx
test eax, eax
je 0x4153f7
call eax
mov esi, eax
test esi, esi
je 0x4153f7
mov eax, dword [0x427d28]
cmp eax, edi
je 0x4153f7
push eax
call ebx
test eax, eax
je 0x4153f7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x427d20]
call ebx
test eax, eax
je 0x415412
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x415414
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407201
mov esp, ebp
pop ebp
ret