joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
lea edi, [ebp - 0x100]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4380d6
call fcn.0041169a
mov dword [ebp - 0x28], 0xfffffdea
mov dword [ebp - 0x24], 0xffffffff
mov esi, esp
push 2
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp esi, esp
call fcn.004116a9
test eax, eax
jne 0x417b7d
xor eax, eax
jmp 0x417c59
mov esi, esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0x20c
mov ecx, dword [ebp + 8]
add ecx, 0x84
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x417bba
cmp dword [ebp - 0xc], 0x20c
je 0x417bc1
xor eax, eax
jmp 0x417c59
mov esi, esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x417bf2
cmp dword [ebp - 0xc], 0xa
je 0x417bf6
xor eax, eax
jmp 0x417c59
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov al, byte [ebp + ecx - 0x3c]
mov byte [edx + 0x40], al
mov eax, 1
shl eax, 0
mov ecx, dword [ebp + 8]
mov dl, byte [ebp + eax - 0x3c]
mov byte [ecx + 0x41], dl
push 8
lea eax, [ebp - 0x3a]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
call fcn.00411005
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp esi, esp
call fcn.004116a9
push edx
mov ecx, ebp
push eax
lea edx, [0x417c88]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0x100
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret
Function at 0x417d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
lea edi, [ebp - 0xf4]
mov ecx, 0x3d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4380d6
call fcn.0041169a
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
je 0x417de4
mov esi, esp
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.004116a9
test eax, eax
je 0x417dc3
cmp dword [ebp - 0x18], 0
jne 0x417dc7
xor eax, eax
jmp 0x417de9
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
jmp 0x417d8d
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x417e18]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0xf4
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret

Function at 0x418610
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea edi, [ebp - 0x140]
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x438125
call fcn.0041169a
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
xor eax, eax
jne 0x418649
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], eax
xor eax, eax
jne 0x41865a
mov esi, esp
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp esi, esp
call fcn.004116a9
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x64]
push eax
push 0
call fcn.004111ea
add esp, 8
test eax, eax
jne 0x4186a3
mov eax, 1
jmp 0x41871b
push 0
call fcn.00411681
add esp, 4
test eax, eax
jne 0x4186b8
mov eax, 1
jmp 0x41871b
mov eax, dword [ebp - 0x70]
push eax
push 1
call fcn.004111ea
add esp, 8
test eax, eax
jne 0x4186d1
mov eax, 1
jmp 0x41871b
push 1
call fcn.00411681
add esp, 4
test eax, eax
jne 0x4186e6
mov eax, 1
jmp 0x41871b
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str.C:users_tohaDesktop_test
call fcn.00411145
call fcn.0041146a
add esp, 0x20
push 0
call fcn.004115cd
add esp, 4
push 1
call fcn.004115cd
add esp, 4
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x41874c]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0x140
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret
Function at 0x4194a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
push esi
push edi
lea edi, [ebp - 0xe8]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4381c7
call fcn.0041169a
mov esi, esp
push 0
push 0
push 0x7010
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x419500
xor eax, eax
jmp 0x419548
mov dword [ebp - 0x24], 4
mov esi, esp
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x700c
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x419539
xor eax, eax
jmp 0x419548
cmp dword [ebp - 0x18], 0xffffffff
jne 0x419543
xor eax, eax
jmp 0x419548
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x419578]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0xe8
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret
Function at 0x419c50
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
lea edi, [ebp - 0x100]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4381c7
call fcn.0041169a
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x419ca7
xor eax, eax
jmp 0x419d3f
mov dword [ebp - 0x3c], 0x25a207b9
mov eax, 0xddf3
mov word [ebp - 0x38], ax
mov eax, 0x4660
mov word [ebp - 0x36], ax
mov byte [ebp - 0x34], 0x8e
mov byte [ebp - 0x33], 0xe9
mov byte [ebp - 0x32], 0x76
mov byte [ebp - 0x31], 0xe5
mov byte [ebp - 0x30], 0x8c
mov byte [ebp - 0x2f], 0x74
mov byte [ebp - 0x2e], 6
mov byte [ebp - 0x2d], 0x3e
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 4
push 0x435030
push 0x10
lea ecx, [ebp - 0x3c]
push ecx
push 0xc8000006
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x419d1a
xor eax, eax
jmp 0x419d3f
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x419d3a
xor eax, eax
jmp 0x419d3f
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x419d70]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0x100
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret

Function at 0x419df0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push ebx
push esi
push edi
lea edi, [ebp - 0x1d8]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x434d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4381c7
call fcn.0041169a
mov esi, esp
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp esi, esp
call fcn.004116a9
cmp eax, 0xffffffff
jne 0x419e46
xor eax, eax
jmp 0x419e70
mov esi, esp
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp esi, esp
call fcn.004116a9
mov dword [0x43502c], eax
cmp dword [0x43502c], 0
jne 0x419e6e
xor eax, eax
jmp 0x419e70
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x419ea0]
call fcn.00411703
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004115f0
add esp, 0x1d8
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret
Function at 0x425ed0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
push ebx
push esi
push edi
lea edi, [ebp - 0x1e4]
mov ecx, 0x79
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x438267
call fcn.0041169a
mov esi, esp
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
lea ecx, [ebp - 0x108]
call fcn.00411136
mov ecx, eax
call fcn.00411389
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x425f3f
mov eax, 1
jmp 0x426001
mov esi, esp
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
lea ecx, [ebp - 0x148]
call fcn.004113a2
mov ecx, eax
call fcn.0041187f
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x425f83
mov eax, 1
jmp 0x426001
mov esi, esp
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
lea ecx, [ebp - 0x194]
call fcn.00411069
mov ecx, eax
call fcn.00411965
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x425fc7
mov eax, 1
jmp 0x426001
mov esi, esp
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
lea ecx, [ebp - 0x1e0]
call fcn.004112b2
mov ecx, eax
call fcn.004112a8
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004116a9
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0x1e4
cmp ebp, esp
call fcn.004116a9
mov esp, ebp
pop ebp
ret
Function at 0x1010a9b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102ec20]
jne 0x1010aa5
repz ret
jmp fcn.01013d5b

Function at 0x101b0fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.01014cfe
and dword [ebp - 4], 0
cmp dword [0x1032a8c], 0
mov ebx, eax
jne 0x101b1ac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101b25d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101b25d
push eax
call fcn.01014c8c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1032a8c], eax
call esi
push eax
call fcn.01014c8c
mov dword [esp], 0x1024bcc
push edi
mov dword [0x1032a90], eax
call esi
push eax
call fcn.01014c8c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1032a94], eax
call esi
push eax
call fcn.01014c8c
pop ecx
mov dword [0x1032a9c], eax
test eax, eax
je 0x101b1ac
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.01014c8c
pop ecx
mov dword [0x1032a98], eax
mov eax, dword [0x1032a98]
cmp eax, ebx
je 0x101b204
cmp dword [0x1032a9c], ebx
je 0x101b204
push eax
call fcn.01014d07
push dword [0x1032a9c]
mov esi, eax
call fcn.01014d07
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101b204
test edi, edi
je 0x101b204
call esi
test eax, eax
je 0x101b1fb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101b1fb
test byte [ebp - 0xc], 1
jne 0x101b204
or dword [ebp + 0x10], 0x200000
jmp 0x101b23d
mov eax, dword [0x1032a90]
cmp eax, ebx
je 0x101b23d
push eax
call fcn.01014d07
pop ecx
test eax, eax
je 0x101b23d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101b23d
mov eax, dword [0x1032a94]
cmp eax, ebx
je 0x101b23d
push eax
call fcn.01014d07
pop ecx
test eax, eax
je 0x101b23d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1032a8c]
call fcn.01014d07
pop ecx
test eax, eax
je 0x101b25d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101b25f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c404
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407115
mov dword [ebp - 0x14], eax
cmp dword [0x415f0c], esi
jne 0x40c4f7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c484
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c5d7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c5d7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c5d7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x415f0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x415f10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x415f14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x415f1c], eax
test eax, eax
je 0x40c4f4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x415f18], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c51c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c50f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c531
push 4
pop eax
jmp 0x40c5d9
cmp dword [ebp - 0x14], esi
je 0x40c531
push dword [0x415f0c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c516
mov eax, dword [0x415f18]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c58f
cmp dword [0x415f1c], edi
je 0x40c58f
push eax
call ebx
push dword [0x415f1c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c58f
test eax, eax
je 0x40c58f
call ecx
test eax, eax
je 0x40c584
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 0x40c584
test byte [ebp - 8], 1
jne 0x40c58f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c5bf
mov eax, dword [0x415f10]
cmp eax, edi
je 0x40c5bc
push eax
call ebx
test eax, eax
je 0x40c5bc
call eax
mov esi, eax
test esi, esi
je 0x40c5bc
mov eax, dword [0x415f14]
cmp eax, edi
je 0x40c5bc
push eax
call ebx
test eax, eax
je 0x40c5bc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x415f0c]
call ebx
test eax, eax
je 0x40c5d7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c5d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401c33
mov esp, ebp
pop ebp
ret
Function at 0x45b01e
Capabilities:
Encode data using xor

Disassembly:
jmp 0x471e66
push edi
mov edi, dword [esp + 0x14]
lea ecx, [esp + 8]
call fcn.0045c10d
test eax, eax
je 0x471ef3
push esi
xor esi, esi
cmp dword [esp + 0x1c], esi
jbe 0x471ef2
push ebx
push ebp
mov ebx, 0x45649c
mov ebp, 0x589018
mov al, byte [edi + esi]
xor al, 0x73
push ebx
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.00458d6e
pop ecx
pop ecx
mov ecx, eax
call fcn.0045cccf
mov al, byte [edi + esi]
push ebx
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.00458d6e
pop ecx
pop ecx
mov ecx, eax
call fcn.0045cccf
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x5165e4
mov byte [edi + esi], al
call fcn.0045818e
xor byte [edi + esi], al
inc esi
pop ecx
cmp esi, dword [esp + 0x24]
jb 0x471e8d
pop ebp
pop ebx
pop esi
lea ecx, [esp + 8]
call fcn.00459b7e
pop edi
ret 0x14

Function at 0x45b933
Capabilities:
Parse pe header

Disassembly:
jmp 0x4a1780
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a17bf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a17bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a17bf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a17bf
cmp dword [ecx + 0x74], 0xe
jbe 0x4a17bf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x49f952
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004590fc
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x49f991
sub eax, 1
je 0x49f98c
sub eax, 1
je 0x49f988
xor eax, eax
leave
ret
push 3
jmp 0x49f993
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4f6c36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00457108
mov eax, dword [0x585dc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0045c176
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f6c78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f6dd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045c2fc
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x58a620]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00458ab7
mov ecx, dword [esi*4 + 0x58a620]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4f6dcd
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f6dcd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f6dcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00458ab7
add esp, 0x14
test edx, edx
jl 0x4f6dcd
jg 0x4f6d43
test eax, eax
jb 0x4f6dcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f6dcd
jl 0x4f6d5d
cmp dword [ebp - 0x1008], eax
ja 0x4f6dcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f6d7b
test ebx, ebx
je 0x4f6db4
cmp ecx, edi
jae 0x4f6db4
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f6d95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f6da1
cmp byte [ecx + 1], 0xa
jne 0x4f6da1
inc ecx
jmp 0x4f6da1
movzx eax, al
movsx eax, byte [eax + 0x586130]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f6d7b
cmp edx, ebx
jne 0x4f6d7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f6dd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045880f
leave
ret
Function at 0x4f6fd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x58a620]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f7019
cmp byte [ebx], 0xa
jne 0x4f7019
or byte [eax + edi + 0x28], 4
jmp 0x4f701e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4f711c
mov al, byte [edx]
cmp al, 0x1a
je 0x4f70fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4f704d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4f7072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4f707c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4f702f
jmp 0x4f711c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f70f9
cmp dword [ebp - 0xc], 0
je 0x4f70f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x58a620]
test byte [eax + edi + 0x28], 0x48
je 0x4f70d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f70be
mov byte [esi], dl
jmp 0x4f70cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x58a620]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f711c
cmp byte [ebp - 1], 0xa
jne 0x4f70e2
cmp esi, ebx
jne 0x4f70e2
mov byte [esi], 0xa
jmp 0x4f711b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00456ba4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f711c
mov byte [esi], 0xd
jmp 0x4f711b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x58a620]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f7118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f711c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret