joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40224e
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor esi, esi
push 0x18
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
push 0xc
lea eax, [ebp - 0x14]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push esi
push esi
push esi
push 1
pop edi
push edi
push str.WinHTTP_AutoProxy
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x4022a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpen_failed.Error:_d
call fcn.00401598
pop ecx
xor eax, eax
pop ecx
jmp 0x40231c
lea ecx, [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 2
push ecx
push str.http:__www.microsoft.com_
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x4022e9
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], edi
jmp 0x40230f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x2ee6
jne 0x402300
push ebx
push str._S_Url_unvalid_not_http:___
jmp 0x402308
call esi
push eax
push str.WinHttpGetProxyForUrl_failed.Error:_d
call fcn.00401598
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x402395
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x14
or dword [esp], 0xffffffff
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x10
lea eax, [esp + 0x18]
push ebp
mov esi, ecx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x404800], ebp
mov word [esp + 0x14], 2
jle 0x402476
mov ebx, 0x404804
mov edi, 0x40481c
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x402450
mov ax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40246e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274d
je 0x402437
cmp eax, 0x2751
je 0x402437
push eax
push str.localtoproxy_sock
push str._s_d_n
call fcn.00401598
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
inc ebp
inc edi
inc edi
add ebx, 4
cmp ebp, dword [0x404800]
jl 0x4023d2
jmp 0x402476
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.localtoproxy_sock_create_error__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
or eax, 0xffffffff
jmp 0x40247a
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x402482
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
and byte [ebp - 0x12c], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x4a
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, ebx
mov eax, edi
shl eax, 6
add eax, 0x40483a
push eax
call fcn.00402634
mov ecx, edi
push eax
shl ecx, 4
lea esi, [ecx + 0x4048ba]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push esi
call sub.MSVCRT.dll_strcpy
push esi
call sub.MSVCRT.dll_strlen
add esp, 0xc
test eax, eax
je 0x40255a
push str.0.0.0.0
push esi
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40255a
movzx eax, word [edi*2 + reloc.crtdll.dll_sscanf]
push eax
push esi
lea eax, [ebp - 0x12c]
push str.CONNECT__s:_d_HTTP_1.1_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0.1.3__Windows_NT_5.0.3__r_nPragma:_no_cache__r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
push 0
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40255f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_con_info_failed__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x402562
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
and byte [ebp - 0x650], 0
mov edx, ecx
push edi
mov ecx, 0x18f
xor eax, eax
lea edi, [ebp - 0x64f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x10], 0
push 0
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x650]
push 0x640
push eax
push dword [edx + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
pop edi
jg 0x4025be
or eax, 0xffffffff
leave
ret
lea eax, [ebp - 0x650]
push 0x10
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x10]
push 0x4043d0
push eax
call sub.MSVCRT.dll_strstr
add esp, 0x14
neg eax
sbb eax, eax
and eax, 2
dec eax
leave
ret

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

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
inc eax
neg eax
sbb eax, eax
and eax, 2
dec eax
ret 8

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

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x402631
or eax, 0xffffffff
ret 8
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x415156
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x79
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8c
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x6d
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa9
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x89
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x89
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa3
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x45
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbd
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x69
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xde
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 9
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xec
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb7
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x403a10
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.ThunderRT6FormDC
push 0
push 0
call esi
push 0
test eax, eax
je 0x403a50
push 0
push 0
push 0x4039e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.ProcessHacker
push 0
push 0
call esi
push 0
test eax, eax
jne 0x403a2a
push str.PhTreeNew
push eax
push eax
call esi
push 0
test eax, eax
jne 0x403a2a
push str.SysListView32
push eax
push eax
call esi
push 0
test eax, eax
jne 0x403a2a
push str.TformSettings
push eax
push eax
call esi
push 0
test eax, eax
jne 0x403a2a
push str.TWildProxyMain
push eax
push eax
call esi
push 0
test eax, eax
jne 0x403a2a
push str.TUserdefinedform
push eax
push eax
call esi
push 0
test eax, eax
jne 0x403a2a
push str.TformAddressChange
push eax
push eax
call esi
push 0
test eax, eax
jne 0x403a2a
push str.TMemoryBrowser
push eax
push eax
call esi
push 0
test eax, eax
jne 0x403a2a
push str.TFoundCodeDialog
push eax
push eax
call esi
pop esi
test eax, eax
je 0x403aeb
push 0
jmp 0x403a2a
ret
Function at 0x403fe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.0041d750
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
mov dword [0x65cdc8], eax
call ebx
mov edi, eax
push 7
add edi, edi
call ebx
mov esi, eax
push 4
add esi, esi
call ebx
lea ecx, [esi + eax]
mov esi, dword [0x698dd4]
xor edx, edx
mov eax, esi
div dword [0x698360]
mov eax, dword [0x698364]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x40403b
lea ecx, [ecx]
cmp dword [edx], esi
je 0x404083
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x404030
mov edx, dword [ebp + 8]
push 0
push edx
push 0
push 0
add ecx, 0x300
push ecx
add edi, 0x400
push edi
push 0
push closesocket
push 0x2ca0000
push 0x65cbc8
push 0x65c9c8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov dword [0x65c9c4], esi
test esi, esi
jne 0x4040a2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov edx, dword [edx + 4]
test edx, edx
je 0x40403b
mov eax, dword [ebp + 8]
push 0
push eax
mov eax, dword [edx + 8]
push 0
add eax, ecx
mov ecx, dword [edx + 4]
push 0
push eax
add ecx, edi
push ecx
jmp 0x404053
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, 1
push edi
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, esi
call fcn.00406cb0
cmp dword [0x64f5c8], 0
mov dword [0x65fb34], edi
mov dword [0x65fb38], edi
je 0x4040ee
mov dword [0x65fb38], 2
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4052a0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ecx, ecx
mov eax, 1
push edi
lea ecx, [ecx]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
lea esi, [eax + eax]
and edx, 0x1b
mov dword [ebp + ecx*4 - 0x804], eax
mov dword [ebp + eax*4 - 0x404], ecx
xor edx, esi
xor eax, edx
inc ecx
and eax, 0xff
cmp ecx, 0x100
jl 0x4052c0
mov eax, 1
mov ecx, 0x65cef8
lea esp, [esp]
mov edx, eax
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
mov dword [ecx], eax
add eax, eax
and edx, 0x1b
xor eax, edx
add ecx, 4
and eax, 0xff
cmp ecx, 0x65cf20
jl 0x405300
mov byte [0x65f020], 0x63
mov byte [0x65df83], 0
mov ebx, 1
jmp 0x405340
mov ecx, dword [ebp + ebx*4 - 0x404]
add ecx, ecx
add ecx, ecx
lea edx, [ebp - 0x408]
sub edx, ecx
mov eax, dword [edx]
mov ecx, eax
sar ecx, 7
lea edx, [eax + eax]
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
and edx, 0xff
xor eax, edx
mov ecx, edx
add edx, edx
sar ecx, 7
or ecx, edx
and ecx, 0xff
xor eax, ecx
mov edx, ecx
sar edx, 7
add ecx, ecx
or edx, ecx
xor edx, 0x63
and edx, 0xff
xor eax, edx
mov byte [ebx + 0x65f020], al
mov byte [eax + 0x65df20], bl
inc ebx
cmp ebx, 0x100
jl 0x405340
xor ecx, ecx
movzx esi, byte [ecx + 0x65f020]
mov edx, esi
and dl, 0x80
movsx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea eax, [esi + esi]
xor edx, eax
and edx, 0xff
mov eax, edx
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, edx
mov dword [ecx*4 + 0x65ec20], eax
rol eax, 8
mov dword [ecx*4 + 0x65e820], eax
rol eax, 8
mov dword [ecx*4 + 0x65e420], eax
rol eax, 8
mov dword [ecx*4 + 0x65e020], eax
movzx eax, byte [ecx + 0x65df20]
test eax, eax
je 0x405482
mov esi, dword [ebp + eax*4 - 0x404]
mov edx, dword [ebp - 0x3cc]
lea eax, [esi + edx]
cdq
mov edi, 0xff
idiv edi
mov eax, dword [ebp + edx*4 - 0x804]
mov edx, dword [ebp - 0x3e0]
mov dword [ebp - 0x808], eax
lea eax, [esi + edx]
cdq
idiv edi
mov eax, dword [ebp - 0x3d0]
add eax, esi
mov ebx, dword [ebp + edx*4 - 0x804]
cdq
idiv edi
mov edi, dword [ebp + edx*4 - 0x804]
mov edx, dword [ebp - 0x3d8]
lea eax, [esi + edx]
cdq
mov esi, 0xff
idiv esi
mov eax, dword [ebp - 0x808]
mov edx, dword [ebp + edx*4 - 0x804]
jmp 0x40548a
xor eax, eax
xor ebx, ebx
xor edi, edi
xor edx, edx
shl edx, 8
xor edx, edi
shl edx, 8
xor edx, ebx
shl edx, 8
xor edx, eax
mov dword [ecx*4 + 0x65db20], edx
rol edx, 8
mov dword [ecx*4 + 0x65d720], edx
rol edx, 8
mov dword [ecx*4 + 0x65d320], edx
rol edx, 8
mov dword [ecx*4 + 0x65cf20], edx
inc ecx
cmp ecx, 0x100
jl 0x4053b4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005762ee
mov esp, ebp
pop ebp
ret
Function at 0x405a00
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push eax
lea esi, [edi + 8]
lea eax, [ebp - 0x124]
mov dword [edi], 0xe
mov dword [edi + 4], esi
call fcn.004054e0
mov eax, dword [ebp - 0x124]
shl eax, 4
add eax, dword [ebp - 0x120]
add esp, 4
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov ecx, dword [edi]
dec ecx
add esi, 0x10
sub eax, 0x10
test ecx, ecx
jle 0x405bbd
jmp 0x405a70
movzx edx, byte [eax + 3]
movzx edx, byte [edx + 0x65f020]
mov edx, dword [edx*4 + 0x65cf20]
movzx edi, byte [eax + 2]
movzx edi, byte [edi + 0x65f020]
xor edx, dword [edi*4 + 0x65d320]
movzx edi, byte [eax + 1]
movzx edi, byte [edi + 0x65f020]
xor edx, dword [edi*4 + 0x65d720]
mov edi, dword [eax]
and edi, 0xff
movzx edi, byte [edi + 0x65f020]
xor edx, dword [edi*4 + 0x65db20]
dec ecx
mov dword [esi], edx
mov edx, dword [eax + 4]
movzx edi, byte [eax + 7]
movzx edi, byte [edi + 0x65f020]
and edx, 0xff
movzx edx, byte [edx + 0x65f020]
mov edx, dword [edx*4 + 0x65db20]
xor edx, dword [edi*4 + 0x65cf20]
movzx edi, byte [eax + 6]
movzx edi, byte [edi + 0x65f020]
xor edx, dword [edi*4 + 0x65d320]
movzx edi, byte [eax + 5]
movzx edi, byte [edi + 0x65f020]
xor edx, dword [edi*4 + 0x65d720]
add esi, 0x10
mov dword [esi - 0xc], edx
mov edx, dword [eax + 8]
movzx edi, byte [eax + 0xb]
movzx edi, byte [edi + 0x65f020]
and edx, 0xff
movzx edx, byte [edx + 0x65f020]
mov edx, dword [edx*4 + 0x65db20]
xor edx, dword [edi*4 + 0x65cf20]
movzx edi, byte [eax + 0xa]
movzx edi, byte [edi + 0x65f020]
xor edx, dword [edi*4 + 0x65d320]
movzx edi, byte [eax + 9]
movzx edi, byte [edi + 0x65f020]
xor edx, dword [edi*4 + 0x65d720]
sub eax, 0x10
mov dword [esi - 8], edx
mov edx, dword [eax + 0x1c]
movzx edi, byte [eax + 0x1f]
movzx edi, byte [edi + 0x65f020]
and edx, 0xff
movzx edx, byte [edx + 0x65f020]
mov edx, dword [edx*4 + 0x65db20]
xor edx, dword [edi*4 + 0x65cf20]
movzx edi, byte [eax + 0x1e]
movzx edi, byte [edi + 0x65f020]
xor edx, dword [edi*4 + 0x65d320]
movzx edi, byte [eax + 0x1d]
movzx edi, byte [edi + 0x65f020]
xor edx, dword [edi*4 + 0x65d720]
mov dword [esi - 4], edx
test ecx, ecx
jg 0x405a70
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 0xc], edx
xor ecx, ebp
pop esi
call fcn.005762ee
mov esp, ebp
pop ebp
ret
Function at 0x406290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x738
mov eax, dword [0x5b107c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x734], eax
mov dword [ebp - 0x738], ecx
test eax, eax
je 0x40647e
test ecx, ecx
je 0x40647e
push eax
push 1
lea eax, [ebp - 0x728]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
push 0x200
xor ebx, ebx
lea ecx, [ebp - 0x60c]
push ebx
push ecx
add esi, 0x10
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.MSVCR100.dll_sscanf]
add esp, 0x1c
lea edx, [ebp - 0x730]
push edx
push str._02X
push esi
call edi
add esp, 0xc
test eax, eax
jle 0x40633f
nop
cmp ebx, 0x200
jge 0x40633f
mov al, byte [ebp - 0x730]
lea ecx, [ebp - 0x730]
push ecx
add esi, 2
push str._02X
mov byte [ebp + ebx - 0x60c], al
push esi
inc ebx
call edi
add esp, 0xc
test eax, eax
jg 0x406310
lea edx, [ebp - 0x60c]
push edx
lea ecx, [ebp - 0x724]
call fcn.00405a00
mov al, byte [ebp + 0x10]
xor edi, edi
add esp, 4
mov byte [ebp - 0x725], al
cmp dword [ebp + 0xc], edi
jle 0x406421
mov ecx, dword [ebp - 0x734]
push ecx
push 0x10
lea edx, [ebp - 0x40c]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 0x10
jne 0x40646a
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x724]
push ecx
call fcn.00405bf0
mov ecx, dword [ebp - 0x738]
xor eax, eax
add esp, 8
xor dl, dl
mov byte [ebp - 0x727], al
mov byte [ebp - 0x726], al
lea esi, [ecx + edi + 1]
mov cl, byte [ebp + eax - 0x40c]
add byte [ebp - 0x725], cl
mov byte [esi + eax - 1], cl
mov cl, byte [ebp + eax - 0x40b]
add byte [ebp - 0x726], cl
mov byte [esi + eax], cl
mov cl, byte [ebp + eax - 0x40a]
add byte [ebp - 0x727], cl
mov byte [esi + eax + 1], cl
mov cl, byte [ebp + eax - 0x409]
mov byte [esi + eax + 2], cl
add eax, 4
add dl, cl
cmp eax, 0x10
jl 0x4063bc
add dl, byte [ebp - 0x727]
add edi, 0x10
add dl, byte [ebp - 0x726]
add byte [ebp - 0x725], dl
cmp edi, dword [ebp + 0xc]
jl 0x406368
mov edx, dword [ebp - 0x734]
push edx
push 1
lea eax, [ebp - 0x729]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
mov al, byte [ebp - 0x728]
add esp, 0x10
cmp al, byte [ebp - 0x729]
jne 0x40646a
cmp al, byte [ebp - 0x725]
jne 0x40646a
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 0xc
push 0
push str.Error__
push str.Header_Version_Error__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005762ee
mov esp, ebp
pop ebp
ret 0xc