joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
clc
invalid
push dword [ebx]
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.00401783
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.004016e4
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp fcn.004036eb

Function at 0x4042b0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x434674]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push edi
mov ebx, str.StartLoop
mov edi, 0x42fab0
call fcn.00410070
xor ebx, ebx
cmp byte [esi], bl
je 0x404305
mov ecx, esi
call fcn.00403fc0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x404318
mov ebx, str.Failed
mov edi, str.socket__
call fcn.00410070
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
movzx ecx, word [esi + 0x20]
mov eax, 2
push ecx
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x10]
mov word [esp + 0x12], ax
mov eax, dword [esi + 0x3c]
push edx
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40436e
mov ebx, str.Failed
mov edi, str.bind__
call fcn.00410070
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov byte [esi + 1], bl
call fcn.00404390
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x404390
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b51b
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x434674]
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 esi, ecx
mov ebx, str.RecvfromSocketThread_start
mov edi, str.SocketService
mov dword [ebp - 0x830], esi
call fcn.00410070
movzx ecx, word [esi + 0x20]
mov eax, 2
push ecx
mov dword [ebp - 0x834], 0x10
mov word [esi + 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [esi + 0x42], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp byte [esi + 1], 0
mov dword [esi + 0x44], eax
jne 0x404582
nop
mov ecx, dword [esi + 0x3c]
lea edx, [ebp - 0x834]
push edx
lea eax, [esi + 0x40]
push eax
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x404578
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x810]
push edx
push 0
push 0xfde9
mov byte [ebp + eax - 0x810], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea ebx, [edi + edi + 2]
push ebx
call fcn.00413a83
add esp, 4
push ebx
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.0041d830
add esp, 0xc
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0x42fa3d
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
call fcn.004014a0
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 1
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
push ebx
call fcn.00410964
add esp, 4
push 0
push 0
push ebx
mov edi, eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4044f1
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x82c]
call fcn.004014a0
push edi
call fcn.0041350a
mov ebx, dword [ebp - 0x82c]
add esp, 4
cmp dword [ebp - 0x818], 0x10
jae 0x404525
lea ebx, [ebp - 0x82c]
mov edi, str.socket_recv:
call fcn.00410070
push 8
call fcn.0041227d
add esp, 4
test eax, eax
je 0x40454a
mov ecx, dword [ebp - 0x830]
mov dword [eax + 4], ecx
mov dword [eax], esi
jmp 0x40454c
xor eax, eax
mov ecx, eax
call fcn.00404670
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x818], 0x10
jb 0x404572
mov edx, dword [ebp - 0x82c]
push edx
call fcn.00412221
add esp, 4
mov esi, dword [ebp - 0x830]
cmp byte [esi + 1], 0
je 0x404410
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.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x4045a0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 6
mov ebx, 1
push ebx
push 2
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 2
push 0
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
xor edx, edx
push esi
mov word [ebp - 0x12], dx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x40460a
xor bl, bl
jmp 0x404635
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x404628
xor bl, bl
jmp 0x404635
mov eax, dword [ebp - 0x22]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [edi], ax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x404652
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
Function at 0x4060a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b417
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x42fd70
mov dword [edi + 0x10], 0x42fe20
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00408490
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.0040a5d0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
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], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x436f4c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ad78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x434674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40881e
cmp byte [ebx + 0x49], 0
je 0x40881e
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x408812
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4086e5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x408702
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x408739
dec eax
je 0x40873d
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x408819
call fcn.00401470
xor al, al
jmp 0x408820
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40874d
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40877a
cmp edi, 0x10
jae 0x40875c
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004136e1
add esp, 0x10
cmp esi, eax
jne 0x40880a
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x408816
test esi, esi
jne 0x4086f6
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40883b
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40883b
cmp edi, esi
jae 0x4087f3
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004017d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4086f6
mov ecx, eax
cmp edi, 0x10
jae 0x4087cf
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4087ea
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4086f0
test esi, esi
jne 0x4087c5
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x408802
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4086f0
lea ecx, [ebp - 0x2c]
call fcn.00401470
xor al, al
jmp 0x408820
lea ecx, [ebp - 0x2c]
call fcn.00401470
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411d2c
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004108a9
int3
Function at 0x40a5d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a82b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00411047
push 4
mov dword [ebp - 4], 0
call fcn.0041227d
mov edi, eax
add esp, 4
test edi, edi
je 0x40a64c
call fcn.00410f1f
mov dword [edi], eax
call fcn.00410cde
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00411008
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40a642
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00411030
jmp 0x40a64e
xor edi, 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
mov dword [esi + 0x38], edi
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 eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a6c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a82b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x434674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00411047
push 4
mov dword [ebp - 4], 0
call fcn.0041227d
mov edi, eax
add esp, 4
test edi, edi
je 0x40a73c
call fcn.00410f1f
mov dword [edi], eax
call fcn.00410cde
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00411008
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40a732
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00411030
jmp 0x40a73e
xor edi, 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
mov dword [esi + 0x38], edi
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 eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411d2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434674]
jne 0x411d36
repz ret
jmp fcn.004182e2
Function at 0x413b17
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x413b3e
call fcn.00413229
mov dword [eax], esi
call fcn.00413216
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041972d
mov eax, esi
jmp 0x413b93
test dword [ebp + 0xc], 0xfffffff9
jne 0x413b24
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041323c
pop ecx
call fcn.00413216
mov eax, dword [eax]
jmp 0x413b93
test al, 0x10
jne 0x413b91
test al, 1
je 0x413b91
test byte [ebp + 0xc], 2
je 0x413b91
call fcn.00413229
mov dword [eax], 5
call fcn.00413216
mov dword [eax], 0xd
jmp 0x413b62
xor eax, eax
pop esi
pop ebp
ret

Function at 0x425cb1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x434674]
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.004190ac
and dword [ebp - 0x14], 0
cmp dword [0x436f0c], 0
mov dword [ebp - 0x18], eax
jne 0x425d64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x425e0c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x425e0c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x436f0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x436f10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x436f14], eax
call edi
push eax
call esi
mov dword [0x436f1c], eax
test eax, eax
je 0x425d64
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x436f18], eax
mov eax, dword [0x436f18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x425dbd
cmp dword [0x436f1c], ecx
je 0x425dbd
push eax
call esi
push dword [0x436f1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x425dbd
test ebx, ebx
je 0x425dbd
call edi
test eax, eax
je 0x425db4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x425db4
test byte [ebp - 8], 1
jne 0x425dbd
or dword [ebp + 0x10], 0x200000
jmp 0x425df0
mov eax, dword [0x436f10]
cmp eax, dword [ebp - 0x18]
je 0x425df0
push eax
call esi
test eax, eax
je 0x425df0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x425df0
mov eax, dword [0x436f14]
cmp eax, dword [ebp - 0x18]
je 0x425df0
push eax
call esi
test eax, eax
je 0x425df0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x436f0c]
call esi
test eax, eax
je 0x425e0c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x425e0e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d2c
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x406037
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x406046
pop dword [ebp - 0x3c]
mov eax, 0x919f41da
sub eax, 0x915ee194
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xed30f6b8
add dword [ebp - 0x4c], 0x61214e93
mov dword [ebp - 0x48], 0x28f15400
add dword [ebp - 0x48], 0x941f845
mov dword [ebp - 0x44], 0x634a3bfd
sub dword [ebp - 0x44], 0x16fdf7cf
mov dword [ebp - 0x40], 0xc1a08507
sub dword [ebp - 0x40], 0xc1a08507
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x34156384
add dword [ebp - 0x4c], 0x405d05d2
mov dword [ebp - 0x48], 0xc4cf21f5
add dword [ebp - 0x48], 0x7c9d3f80
mov dword [ebp - 0x44], 0x3c409518
sub dword [ebp - 0x44], 0xd8d128ac
mov dword [ebp - 0x40], 0x5d688189
sub dword [ebp - 0x40], 0x5d688189
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x991fcfc9
add eax, 0x67210083
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x40917
push 0
call eax
mov ecx, 0x378c200c
add ecx, 0xc87443ea
xor edi, edi
add edi, eax
mov edx, 0xc232bdae
add edx, 0x3e0ef252
add edx, dword [ebp - 0x3c]
mov esi, 0x4b367952
add esi, 0xef3d08ce
sub dword [ebp - 0x2c], ebx
mov ebx, dword [edx]
sub dword [ebp - 8], 0xd2ee754
add ebx, esi
xor dword [ebp - 0x20], edx
mov dword [edi], ebx
add edi, 4
add edx, 0x5fd4cb93
add edx, 0xa02b3471
loop 0x406165
add eax, 0x9c594a5f
sub eax, 0x9c57c7b4
mov ebx, eax
add eax, 5
mov ecx, 0x2a0250b0
sub ecx, 0x29c250b0
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x406199
Capabilities:
Access peb ldr_data

Disassembly:
movsd dword es:[edi], dword [esi]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x4061af
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403feb
shl dh, cl
and esi, dword [edx - 0x75]
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00403feb
jmp 0x406182

Function at 0x406248
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406271
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406265
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40631c
cmp dword [0x461530], ebx
je 0x40631c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a560], bx
je 0x4062e8
cmp dword [0x40b058], 0xffffffff
jne 0x4062f1
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb0
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40631a
cmp dword [ebp + 8], 0xffffffff
jne 0x4062dd
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40631a
push 0x4096a8
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402480
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x4024e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4063a0]
test esi, esi
jle 0x4025cd
mov edi, dword [0x4063a4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x402514
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4025c6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x402500
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40260a
lea ebx, [esi + esi*2]
mov esi, dword [0x4063a4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4063a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4025ea
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4025bf
sub eax, 0x40
and eax, 0xffffffbf
je 0x4025bf
mov eax, dword [esp + 0x20]
add ebx, dword [0x4063a4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4025d4
add dword [0x4063a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40251e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x4063a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x402a70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ebx, dword [0x4063b0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test ebx, ebx
je 0x402ac5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x402abe
test esi, esi
je 0x402abe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402aa0
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret