joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00408ce0
add esp, 0xc
mov dword [ebp - 4], 0
push 0x200
push 0
lea edx, [ebp - 0x410]
push edx
call fcn.00408ce0
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call fcn.00402610
add esp, 4
test eax, eax
je 0x403781
mov dword [ebp - 0x414], 0x414418
mov dword [ebp - 0x418], 0x418570
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x414]
mov ax, word [edx]
mov word [ebp - 0x41e], ax
mov ecx, dword [ebp - 0x418]
mov dx, word [ebp - 0x41e]
mov word [ecx], dx
mov eax, dword [ebp - 0x414]
add eax, 2
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
cmp word [ebp - 0x41e], 0
jne 0x4035e6
lea edx, [ebp - 0x38a]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], 0x418470
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx]
mov word [ebp - 0x42e], dx
mov eax, dword [ebp - 0x428]
mov cx, word [ebp - 0x42e]
mov word [eax], cx
mov edx, dword [ebp - 0x424]
add edx, 2
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
cmp word [ebp - 0x42e], 0
jne 0x403650
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], 0x4184f0
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x434]
mov cx, word [eax]
mov word [ebp - 0x43e], cx
mov edx, dword [ebp - 0x438]
mov ax, word [ebp - 0x43e]
mov word [edx], ax
mov ecx, dword [ebp - 0x434]
add ecx, 2
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp - 0x438]
add edx, 2
mov dword [ebp - 0x438], edx
cmp word [ebp - 0x43e], 0
jne 0x4036ba
mov ax, word [ebp - 0x38c]
mov word [0x41846c], ax
mov cx, word [ebp - 0x2ea]
mov word [0x4185f0], cx
mov dword [0x4185f4], 5
cmp dword [0x416f10], 3
je 0x403743
lea edx, [ebp - 0x210]
push edx
push 1
call fcn.00403d7a
add esp, 8
jmp 0x403754
lea eax, [ebp - 0x210]
push eax
push 0
call fcn.00403d7a
add esp, 8
push str.golfset.ini
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004053a1
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405392
mov esp, ebp
pop ebp
ret
Function at 0x403792
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [edi], 0
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00408ce0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403816
mov eax, dword [ebp - 0x118]
push 5
pop ecx
cmp dword [ebp - 0x11c], ecx
jne 0x4037fa
cmp eax, 2
jae 0x4037f4
cmp eax, 1
jne 0x403816
mov dword [edi], 3
cmp dword [ebp - 0x11c], 6
jne 0x403816
test eax, eax
jne 0x40380f
mov dword [edi], 4
jmp 0x403816
cmp eax, 1
jne 0x403816
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405392
leave
ret

Function at 0x403822
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408ce0
add esp, 0xc
cmp dword [0x416f10], 3
lea eax, [ebp - 0x20c]
jne 0x403888
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4148c4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004053a1
add esp, 0xc
pop esi
jmp 0x403894
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x4148c8
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00405392
leave
ret
Function at 0x403952
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408ce0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x210]
push eax
movzx eax, word [ebp - 0x20c]
sub eax, 0x41
push eax
call fcn.00403b96
push dword [ebp - 0x210]
call fcn.00403c83
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x4039d9
xor eax, eax
jmp 0x403a8e
push ebx
push esi
mov esi, 0x400
push esi
call fcn.00405ecd
push esi
mov ebx, eax
push 0
push ebx
call fcn.00408ce0
mov ecx, edi
call fcn.00403a9b
push ebx
push edi
push 2
pop edx
mov ecx, eax
call fcn.00403b48
add esp, 0x18
test eax, eax
je 0x403a83
mov ecx, dword [ebx + 4]
mov esi, str._GBP
mov eax, esi
cmp ecx, dword [eax]
jne 0x403a4f
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a22
sub eax, edx
sar eax, 1
je 0x403a4f
mov edi, dword [ebp - 0x214]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00405f61
xor eax, eax
inc eax
jmp 0x403a8b
push ebx
push edi
push 2
pop edx
push 0x1e
pop ecx
call fcn.00403b48
pop ecx
pop ecx
test eax, eax
je 0x403a83
mov eax, dword [ebx + 4]
cmp eax, dword [esi]
jne 0x403a83
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a72
sub eax, edx
sar eax, 1
jne 0x403a33
push ebx
call fcn.00405f61
xor eax, eax
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00405392
leave
ret

Function at 0x403b48
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
je 0x403b90
xor eax, eax
shld eax, ecx, 9
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
shl edx, 9
push edx
push dword [ebp + 0xc]
shl ecx, 9
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x403d7a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x403d93
push dword [ebp + 0xc]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
pop ebp
ret
push esi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4148c4
push esi
push dword [ebp + 0xc]
call fcn.004053a1
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x403db7
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x414944
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004056c3
add esp, 0xc
test eax, eax
je 0x403de4
xor eax, eax
jmp 0x403e6f
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00406025
push dword [ebp - 4]
call fcn.00406235
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00406025
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00405ecd
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00405954
push dword [ebp - 4]
call fcn.004059de
push ebx
lea ebx, [edi + esi]
call fcn.00403e73
push 0x41494c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004056c3
add esp, 0x44
pop esi
test eax, eax
jne 0x403ddd
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00405ba9
push dword [ebp - 4]
call fcn.004059de
add esp, 0x14
test edi, edi
je 0x403e6c
push edi
call fcn.00405f61
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x404384
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x404404
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x4043da
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x404409
cmp dword [ebp - 8], 3
jb 0x40439f
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x4043fd
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x4043fd
cmp edi, esi
jne 0x4043e8
mov eax, dword [ebp - 4]
jmp 0x404420
cmp dword [eax + 0x34], 6
jne 0x40441d
cmp dword [eax + 0x1c], esi
jne 0x404426
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x404412
jmp 0x404463
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x4043eb
Function at 0x404655
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov dword [ebp - 0x41c], ecx
call fcn.0040477e
pop ecx
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x404772
push ebx
push esi
push edi
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408ce0
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00408ce0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x417ef0
mov ebx, edi
cmp word [ebx], 0
je 0x404701
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00405416
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004053a1
add esp, 0x18
add ebx, 0x118
cmp ebx, 0x418468
jl 0x4046d6
cmp word [edi], 0
je 0x40472a
push 1
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x41c]
call fcn.00404fe8
add esp, 0xc
add edi, 0x118
cmp edi, 0x418468
jl 0x40470f
push 0x418c78
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004053a1
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x40476c
mov dword [ebp - 0x418], 2
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405392
leave
ret

Function at 0x4049ab
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9ac
mov eax, dword [0x416048]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebx
xor ebx, ebx
lea eax, [esp + 0x1a8]
cmp ecx, ebx
je 0x4049d5
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x18]
push eax
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4049f9
xor eax, eax
jmp 0x404a7f
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4049f2
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404a35
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 8], eax
push 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x404a6e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [esp + 0x10], eax
pop eax
push dword [ebp + 8]
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404a6e
xor ebx, ebx
inc ebx
jmp 0x404a7d
mov eax, dword [esi]
test eax, eax
je 0x404a7d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [esp + 0x9ac]
pop ebx
xor ecx, esp
call fcn.00405392
mov esp, ebp
pop ebp
ret
Function at 0x404bde
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x404c5a
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, ecx
jle 0x404c04
mov eax, dword [ebp + 0xc]
not byte [eax + ecx]
inc ecx
cmp ecx, esi
jl 0x404bf9
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.0040644e
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, str.AS101
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00409850
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x404c5d
cmp eax, dword [ebp - 4]
jne 0x404c5d
mov dword [ebp - 8], 1
jmp 0x404c5d
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x404c68
push ebx
call fcn.00406827
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x8e0], eax
mov dword [ebp - 0x8dc], ecx
mov dword [ebp - 0x8d8], edi
lea eax, [ebp - 0x8cc]
cmp edx, ebx
je 0x404ea9
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x8d4], ebx
cmp esi, ebx
je 0x404fd3
cmp edi, ebx
je 0x404fd3
push 0xc7
lea eax, [ebp - 0xcb]
push ebx
push eax
mov byte [ebp - 0xcc], dl
call fcn.00408ce0
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0xcc]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x404fd3
cmp eax, ebx
je 0x404fd3
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
call fcn.0040644e
pop ecx
mov dword [ebp - 0x8d0], eax
test edi, edi
jle 0x404fbe
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x8d0]
add eax, ebx
push eax
mov eax, dword [ebp - 0x8dc]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x404f9c
test eax, eax
je 0x404f9c
add ebx, eax
cmp edi, ebx
jg 0x404f24
push 5
pop ecx
cmp ebx, ecx
jl 0x404fbe
mov edi, dword [ebp - 0x8d0]
sub ebx, ecx
mov esi, str.AS101
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404fbe
mov ecx, dword [ebp - 0x8d0]
test ebx, ebx
jle 0x404f7c
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x404f76
mov esi, dword [ebp - 0x8e0]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x404fa4
push ebx
push ecx
push dword [ebp - 0x8d8]
call fcn.00409850
mov dword [esi], ebx
jmp 0x404fb1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404fbe
push eax
push ecx
push dword [ebp - 0x8d8]
call fcn.00409850
add esp, 0xc
mov dword [ebp - 0x8d4], 1
cmp dword [ebp - 0x8d0], 0
je 0x404fd3
push dword [ebp - 0x8d0]
call fcn.00406827
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405392
leave
ret
Function at 0x405295
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:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040e950
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x100c], eax
push 4
lea eax, [ebp - 0x1008]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x4052d6
xor eax, eax
jmp 0x405339
cmp dword [ebp - 0x1008], ebx
jbe 0x405322
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x405322
mov ecx, dword [ebp - 0x100c]
push dword [ecx]
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00405ba9
add ebx, dword [ebp - 0x1010]
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x4052de
mov eax, dword [ebp - 0x100c]
push dword [eax]
call fcn.004059de
cmp ebx, dword [ebp - 0x1008]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405392
leave
ret

Function at 0x405392
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416048]
jne 0x40539c
repz ret
jmp fcn.00406b0e
Function at 0x40eceb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a854
and dword [ebp - 0x14], 0
cmp dword [0x417cac], 0
mov dword [ebp - 0x18], eax
jne 0x40ed9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ee46
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40ee46
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x417cac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x417cb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x417cb4], eax
call edi
push eax
call esi
mov dword [0x417cbc], eax
test eax, eax
je 0x40ed9e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x417cb8], eax
mov eax, dword [0x417cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40edf7
cmp dword [0x417cbc], ecx
je 0x40edf7
push eax
call esi
push dword [0x417cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40edf7
test ebx, ebx
je 0x40edf7
call edi
test eax, eax
je 0x40edee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40edee
test byte [ebp - 8], 1
jne 0x40edf7
or dword [ebp + 0x10], 0x200000
jmp 0x40ee2a
mov eax, dword [0x417cb0]
cmp eax, dword [ebp - 0x18]
je 0x40ee2a
push eax
call esi
test eax, eax
je 0x40ee2a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ee2a
mov eax, dword [0x417cb4]
cmp eax, dword [ebp - 0x18]
je 0x40ee2a
push eax
call esi
test eax, eax
je 0x40ee2a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x417cac]
call esi
test eax, eax
je 0x40ee46
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ee48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405392
leave
ret
Function at 0x40472c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406b24
test esi, esi
jne 0x404762
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406cac
jmp 0x404780
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404610
mov edi, eax
test esi, esi
je 0x404780
cmp dword [ebx], 0
je 0x404780
dec esi
jmp 0x404769
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405ac8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405d78
mov byte [esp], al
cmp byte [esp], 0
jne 0x405c54
test edi, edi
je 0x405c54
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405b8b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405b66
cmp edi, 0xffffffff
je 0x405b27
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b27
mov byte [esp], 0
jmp 0x405c54
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405b66
test ebx, ebx
jne 0x405b5c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402608
test eax, eax
jne 0x405b5c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405c54
call 0x405dbc
dec ebp
test ebp, ebp
jg 0x405b0c
cmp edi, 0xffffffff
je 0x405b8b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b89
mov byte [esp], 0
jmp 0x405c54
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405ad6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402608
cmp ebx, eax
jne 0x405b8b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405cc4
mov edx, eax
mov ebx, dword [0x45b8f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405bf2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405bf0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405bf2
xor edi, edi
cmp byte [esp], 0
je 0x405c1b
mov ebx, dword [esi]
test bl, 1
jne 0x405c34
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402608
cmp ebx, eax
jne 0x405bf8
mov byte [esp + 1], 1
jmp 0x405c34
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402608
cmp ebx, eax
jne 0x405c1b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405ba5
cmp byte [esp], 0
je 0x405c54
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4067bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b050], 0
je 0x406823
cmp word [0x45b33c], 0xd7b2
jne 0x4067e5
cmp dword [0x45b344], 0
jbe 0x4067e5
mov eax, 0x45b338
call dword [0x45b354]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406850
call fcn.004071ec
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45502e], 0
jne 0x40683f
push 0
push 0x4559ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4069e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x455030], 0
je 0x406a0b
mov edx, edi
mov eax, esi
call dword [0x455030]
mov ebx, eax
jmp 0x406a1c
mov eax, 8
call fcn.0040436c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x45b051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4069a8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406a51
mov edx, 8
mov eax, ebx
call fcn.00404388
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc