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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov edi, eax
mov ebx, edi
cmp ebx, dword [ebp - 0xc]
jae 0x40a94e
cmp byte [ebx], 0x1a
je 0x40a903
cmp byte [ebx], 0xd
jne 0x40a86f
lea eax, [ebx + 1]
cmp eax, dword [ebp - 0xc]
jae 0x40a87c
cmp byte [ebx + 1], 0xa
jne 0x40a86f
mov byte [edi], 0xa
inc edi
add ebx, 2
jmp 0x40a945
inc edi
inc ebx
mov al, byte [ebx - 1]
mov byte [edi - 1], al
jmp 0x40a945
inc ebx
push esi
call fcn.004056d0
pop ecx
push 0
lea edx, [ebp - 8]
push edx
push 1
lea edx, [ebp - 1]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a96a
cmp dword [ebp - 8], 0
je 0x40a96a
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx], 0x48
je 0x40a8f3
cmp byte [ebp - 1], 0xa
je 0x40a8fe
mov byte [edi], 0xd
inc edi
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
mov cl, byte [ebp - 1]
mov byte [eax + edx + 2], cl
jmp 0x40a945
inc edi
jmp 0x40a945
cmp byte [ebp - 1], 0xa
jne 0x40a955
cmp edi, dword [ebp + 0xc]
jne 0x40a955
mov byte [edi], 0xa
jmp 0x40a8f0
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx], 0x40
jne 0x40a93d
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
or byte [eax + edx], 2
jmp 0x40a94e
inc edi
mov al, byte [ebx]
mov byte [edi - 1], al
jmp 0x40a94e
cmp ebx, dword [ebp - 0xc]
jb 0x40a847
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x40a96f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.00408010
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40a945
mov byte [edi], 0xd
jmp 0x40a8f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov edi, eax
mov ebx, edi
cmp ebx, dword [ebp - 0xc]
jae 0x40aaee
cmp word [ebx], 0x1a
je 0x40aa9f
cmp word [ebx], 0xd
jne 0x40a9d6
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x40a9e9
cmp word [ebx + 2], 0xa
jne 0x40a9d6
mov word [edi], 0xa
add edi, 2
add ebx, 4
jmp 0x40aae5
add edi, 2
add ebx, 2
mov ax, word [ebx - 2]
mov word [edi - 2], ax
jmp 0x40aae5
add ebx, 2
push esi
call fcn.004056d0
pop ecx
push 0
lea edx, [ebp - 8]
push edx
push 2
lea edx, [ebp - 2]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ab0e
cmp dword [ebp - 8], 0
je 0x40ab0e
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx], 0x48
je 0x40aa8c
cmp word [ebp - 2], 0xa
je 0x40aa98
mov word [edi], 0xd
add edi, 2
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
movzx ecx, word [ebp - 2]
mov byte [eax + edx + 2], cl
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
movzx ecx, word [ebp - 2]
sar ecx, 8
mov byte [eax + edx + 3], cl
jmp 0x40aae5
add edi, 2
jmp 0x40aae5
cmp word [ebp - 2], 0xa
jne 0x40aaf5
cmp edi, dword [ebp + 0xc]
jne 0x40aaf5
mov word [edi], 0xa
jmp 0x40aa87
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx], 0x40
jne 0x40aad9
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
or byte [eax + edx], 2
jmp 0x40aaee
add edi, 2
mov ax, word [ebx]
mov word [edi - 2], ax
jmp 0x40aaee
cmp ebx, dword [ebp - 0xc]
jb 0x40a9a7
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x40ab18
push 1
push 0xffffffffffffffff
push 0xfffffffe
push esi
call fcn.00408010
add esp, 0x10
cmp word [ebp - 2], 0xa
je 0x40aae5
mov word [edi], 0xd
jmp 0x40aa87
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, esi
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, esi
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx], 0x48
je 0x40ad6f
push ebx
push edi
push esi
call fcn.0040aba0
add esp, 0xc
mov dword [ebp - 0xc], eax
add edi, eax
sub ebx, eax
push esi
call fcn.004056d0
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ad94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x40ad9a
mov eax, dword [ebp - 4]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b230
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp eax, dword [0xbb0960]
jae 0x40b327
mov eax, dword [ebp + 8]
shr eax, 6
mov eax, dword [eax*4 + 0xbb0964]
mov edx, dword [ebp + 8]
and edx, 0x3f
lea edx, [edx + edx*2]
shl edx, 2
test byte [eax + edx], 1
je 0x40b327
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00408010
add esp, 0x10
mov esi, eax
mov edi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
cmp edx, 0xffffffff
jne 0x40b294
cmp eax, 0xffffffff
je 0x40b339
push 2
push 0
push 0
push dword [ebp + 8]
call fcn.00408010
add esp, 0x10
cmp edx, 0xffffffff
jne 0x40b2b3
cmp eax, 0xffffffff
je 0x40b339
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
test edi, edi
jg 0x40b341
jl 0x40b2cb
test esi, esi
ja 0x40b341
test edi, edi
jg 0x40b3d3
jl 0x40b2dd
test esi, esi
jae 0x40b3d3
push 0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push edx
push eax
push dword [ebp + 8]
call fcn.00408010
add esp, 0x10
cmp edx, 0xffffffff
jne 0x40b300
cmp eax, 0xffffffff
je 0x40b3ce
push dword [ebp + 8]
call fcn.004056d0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40b3d3
mov dword [0xbb0958], 0xd
jmp 0x40b3ce
mov dword [0xbb0958], 9
or eax, 0xffffffff
jmp 0x40b3ec
or eax, 0xffffffff
jmp 0x40b3ec
push 0x1000
push 1
call fcn.004093d0
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x40b3ce
push 0x8000
push dword [ebp + 8]
call fcn.0040b4b0
add esp, 8
mov dword [ebp - 0xc], eax
test edi, edi
jl 0x40b380
jg 0x40b377
cmp esi, 0x1000
jb 0x40b380
mov eax, 0x1000
xor edx, edx
jmp 0x40b384
mov eax, esi
mov edx, edi
push eax
push ebx
push dword [ebp + 8]
call fcn.00404d30
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b3b4
cdq
neg eax
adc edx, 0
neg edx
add eax, esi
adc edx, edi
mov esi, eax
mov edi, edx
test edx, edx
jg 0x40b369
jl 0x40b3b0
test eax, eax
ja 0x40b369
xor esi, esi
jmp 0x40b3b7
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0040b4b0
add esp, 8
push ebx
call fcn.00402f40
pop ecx
jmp 0x40b3d5
or esi, 0xffffffff
jmp 0x40b3d5
xor esi, esi
push 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
push edx
push eax
push dword [ebp + 8]
call fcn.00408010
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50e040
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb9000]
push edi
jmp 0x50e05a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50e061
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e050
mov eax, 1
add ebx, ebx
jne 0x50e073
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50e084
jne 0x50e0a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e0a3
dec eax
add ebx, ebx
jne 0x50e090
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50e068
add ebx, ebx
jne 0x50e09f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50e0f5
xor ecx, ecx
sub eax, 3
jb 0x50e0bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50e12a
sar eax, 1
mov ebp, eax
jmp 0x50e0c6
add ebx, ebx
jne 0x50e0c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e094
inc ecx
add ebx, ebx
jne 0x50e0d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e094
add ebx, ebx
jne 0x50e0e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50e0d6
jne 0x50e0f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50e0d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50e114
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50e106
jmp 0x50e056
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50e114
add edi, ecx
jmp 0x50e056
pop esi
mov edi, esi
mov ecx, 0x3eef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50e132
cmp byte [edi], 0x11
jne 0x50e132
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50e137
lea edi, [esi + 0x107000]
mov eax, dword [edi]
or eax, eax
je 0x50e1af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1449e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x144b5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50e164
mov ecx, edi
jns 0x50e193
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x144b60]
or eax, eax
je 0x50e1a9
mov dword [ebx], eax
add ebx, 4
jmp 0x50e181
call dword [esi + 0x144b70]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x50e1e0
cmp al, 0xef
ja 0x50e1d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50e1b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x50e1c2
mov ebp, dword [esi + 0x144b64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50e214
sub esp, 0xffffff80
jmp 0x426bf7
Function at 0x401080
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x4020b8
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4dd70], edi
mov dword [esi + 4], edi
mov ecx, 0x13757
xor eax, eax
lea edi, [esi + 0x10]
mov dword [esi + 8], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401230
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x401253
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov edi, eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4012b6
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0xc]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40125e
push 0
push 0
push esi
push 0x4012e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8

Function at 0x401400
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push esi
push 0x40
push 0x3000
push 0x4dd5c
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40141d
pop esi
ret
push edi
push 0
push 0
push eax
mov ecx, 0x13757
add esi, 0x4dd74
mov edi, eax
push eax
push 0
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020c0
push 0x40179e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403650], 0xffffffff
or dword [0x403654], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403648]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403644]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40364c], eax
call fcn.0040179d
cmp dword [0x403630], 0
jne 0x4016e3
push 0x40179a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401788
push 0x40301c
push 0x403018
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403640]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40363c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403014
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401500
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x655030a1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x413917a2
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x417260
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x4172bc
push ebx
mov ebx, edi
and ebx, 1
nop word [eax + eax]
movzx eax, byte [esi + ebp]
mov ecx, 0x528c90
xor al, 0x73
sub al, 0x58
push ebx
mov byte [esi + ebp], al
call fcn.004061bd
push eax
call fcn.0040605a
movzx eax, byte [esi + ebp]
add esp, 4
sub al, 0x14
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [esi + ebp], al
inc esi
cmp esi, edi
jb 0x417280
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x40488b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jmp 0x4149a0
sub esp, 0x220
mov eax, dword [0x526940]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
xor ecx, ecx
push ebp
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [esp + 0x238]
mov dword [esp + 0x24], eax
mov eax, ecx
mov byte [esp + ecx + 0x28], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x128], al
inc ecx
cmp ecx, 0x100
jl 0x4149d2
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x28]
movzx eax, byte [esp + esi + 0x128]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x414a15
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jl 0x4149f2
mov ebp, dword [esp + 0x234]
xor ecx, ecx
xor eax, eax
xor edi, edi
test ebp, ebp
jle 0x414b26
mov dword [esp + 0x20], eax
push ebx
inc ecx
and ecx, 0x800000ff
jns 0x414a55
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x2c]
movzx esi, bl
add eax, esi
mov dword [esp + 0x10], ecx
and eax, 0x800000ff
jns 0x414a70
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0
push eax
push 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.00405fe2
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
movzx eax, byte [esp + edx + 0x2c]
mov byte [esp + ecx + 0x2c], al
mov byte [esp + edx + 0x2c], bl
movzx eax, byte [esp + ecx + 0x2c]
mov edx, dword [esp + 0x28]
add eax, esi
movzx eax, al
movzx eax, byte [esp + eax + 0x2c]
xor byte [edx + edi], al
mov edx, dword [esp + 0x18]
test edx, edx
je 0x414b17
mov eax, dword [esp + 0x20]
mov ecx, edx
sub eax, edx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x414af1
mov edx, dword [ecx - 4]
add eax, 0x23
sub ecx, edx
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x414b3e
push eax
push edx
call fcn.00401a28
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
inc edi
cmp edi, ebp
jge 0x414b25
mov eax, dword [esp + 0x14]
jmp 0x414a44
pop ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040303a
add esp, 0x220
ret
call fcn.0040472d
int3

Function at 0x405709
Capabilities:
Parse pe header

Disassembly:
jmp 0x443f59
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x443f98
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x443f98
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x443f98
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x443f98
cmp dword [ecx + 0x74], 0xe
jbe 0x443f98
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x415aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4159e0
sub esp, 0x6c
mov eax, dword [0x526940]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040134d
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], ebx
call fcn.004026bc
add esp, 4
mov edi, 0x4b7203
cmp byte [esp + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x6c], xmm0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x74], eax
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jne 0x415a56
mov edi, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
call fcn.004026bc
mov ecx, edi
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415a68
sub ecx, edx
push 1
lea ebx, [ecx + 1]
push ebx
call fcn.0040332d
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x415b72
test ebx, ebx
je 0x415a98
push ebx
push edi
push ebp
call fcn.00405641
add esp, 0xc
lea eax, [esp + 0x4c]
mov dword [esi + 8], ebp
push eax
push 0
push str.false
call fcn.00403157
mov dword [esi + 0x10], eax
lea eax, [esp + 0x58]
push eax
push 0
push str.true
call fcn.00403157
add esp, 0x18
mov dword [esi + 0x14], eax
cmp byte [esp + 0x84], 0
je 0x415b45
lea eax, [esp + 0x4c]
mov byte [esp + 0x10], 0x2e
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x28], xmm0
push eax
call fcn.00403c2e
movzx eax, word [esp + 0x28]
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x28], 0x2c
push eax
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x3c], xmm0
push eax
call fcn.00403c2e
movzx eax, word [esp + 0x3c]
add esp, 0x28
jmp 0x415b59
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
movzx eax, word [eax]
mov word [esi + 0xc], ax
mov eax, dword [ecx + 0x34]
movzx eax, word [eax]
mov ecx, dword [esp + 0x78]
pop edi
mov word [esi + 0xe], ax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040303a
add esp, 0x6c
ret 8
call fcn.004010aa
int3

Function at 0x4425c2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403738
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 0x442601
sub eax, 1
je 0x4425fc
sub eax, 1
je 0x4425f8
xor eax, eax
leave
ret
push 3
jmp 0x442603
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4965d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dac
mov eax, dword [0x526940]
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.00405da8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49661b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x496777
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405efc
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 + 0x52a160]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040324c
mov ecx, dword [esi*4 + 0x52a160]
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 0x496770
cmp eax, dword [edi + ecx + 0x24]
jne 0x496770
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 0x496770
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040324c
add esp, 0x14
test edx, edx
jl 0x496770
jg 0x4966e6
test eax, eax
jb 0x496770
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x496770
jl 0x496700
cmp dword [ebp - 0x1008], eax
ja 0x496770
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49671e
test ebx, ebx
je 0x496757
cmp ecx, edi
jae 0x496757
mov al, byte [ecx]
cmp al, 0xd
jne 0x496738
lea eax, [edi - 1]
cmp ecx, eax
jae 0x496744
cmp byte [ecx + 1], 0xa
jne 0x496744
inc ecx
jmp 0x496744
movzx eax, al
movsx eax, byte [eax + 0x5274e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49671e
cmp edx, ebx
jne 0x49671e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x496775
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040303a
leave
ret