joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a900
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x10]
push ebx
push eax
push edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
mov esi, dword [esp + 0x14]
je 0x41aa15
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41aa1c
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x18], eax
cmp eax, ecx
jbe 0x41a945
mov eax, ecx
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41a9e6
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x20]
push eax
push ecx
add eax, ebx
push edx
push eax
push 5
push edi
push esi
call fcn.0041a770
test al, al
je 0x41a9dd
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41a9c6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
cmp eax, 0xffffffff
je 0x41a9b8
lea edx, [esp + 0x14]
push 0
push edx
push ecx
mov ecx, dword [esi + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a9d4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x41a9d4
mov eax, dword [esp + 0xc]
add ebx, ecx
sub eax, ecx
mov dword [esp + 0xc], eax
jmp 0x41a9ca
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41a934
jmp 0x41a9f5
mov dword [esi + 0x1c], 0xa0000008
jmp 0x41a9ed
mov dword [esi + 0x1c], 0xa0000001
jmp 0x41a9ed
mov dword [esi + 0x1c], 0xa0000007
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41aa1c
push 0
lea edx, [esp + 0x10]
push 0
push edx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x41a928
mov dword [esi + 0x1c], 0xa0000007
mov eax, dword [esp + 0x20]
cmp ebx, eax
jne 0x41aa5a
push 0
push 0
push eax
push ebx
push 6
push edi
push esi
call fcn.0041a770
test al, al
je 0x41aa4a
mov dword [esi + 0x1c], 0x20000000
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0x10
mov dword [esi + 0x1c], 0xa0000001
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
cmp dword [esi + 0x1c], 0xa0ffffff
jne 0x41aa6a
mov dword [esi + 0x1c], 0xa0000009
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0x10
Function at 0x41b7d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov edx, dword [esp + 0x4c]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], 0x3c
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x58]
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
add esp, 0x3c
ret 0x18

Function at 0x41c010
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x41c09a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp eax, 0x102
ja 0x41c080
je 0x41c057
test eax, eax
je 0x41c04a
cmp eax, 0x80
jne 0x41c085
mov ecx, dword [esp + 0x14]
mov al, 1
mov dword [ecx], esi
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41c077
push 0
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x41c077
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x102
call ebx
jmp 0x41c086
cmp eax, 0xffffffff
je 0x41c086
int3
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
pop edi
mov edx, dword [esp + 0x14]
pop esi
xor al, al
pop ebx
mov dword [edx], 0
ret 0xc

Function at 0x41d230
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, 0x696e4942
mov cl, byte [edx]
test cl, cl
je 0x41d254
shl eax, 3
and ecx, 0xff
xor eax, ecx
mov cl, byte [edx + 1]
inc edx
test cl, cl
not eax
jne 0x41d23f
ret 4

Function at 0x41ecf0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.0042d600
mov ecx, dword [esp + 0x1004]
lea eax, [esp + 0x1008]
push eax
push ecx
lea edx, [esp + 8]
push 0x1000
push edx
call fcn.0042d62f
add esp, 0x10
mov byte [esp + 0xfff], 0
test eax, eax
jle 0x41ed3a
cmp eax, 0x1000
jae 0x41ed3a
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1000
ret

Function at 0x41ed50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ebx
push ecx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ed8a
mov ebx, dword [ebp + 0xc]
mov esi, 0x439bb0
add ecx, ebx
not eax
movzx edi, byte ds:[ebx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword ds:[esi + edi*4]
inc ebx
cmp ebx, ecx
jne 0x41ed70
not eax
pop edi
pop esi
pop ecx
pop ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x421810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
xor esi, esi
mov dl, byte [esp + esi + 8]
mov al, 1
mov ecx, esi
shl al, cl
test dl, 0x40
je 0x42184a
or byte [esp + 0x10], al
test dl, 0x10
je 0x421853
or byte [esp + 0x11], al
test dl, 4
je 0x42185c
or byte [esp + 0x12], al
test dl, 1
je 0x421865
or byte [esp + 0x13], al
test dl, dl
jns 0x42186d
or byte [esp + 0x14], al
test dl, 0x20
je 0x421876
or byte [esp + 0x15], al
test dl, 8
je 0x42187f
or byte [esp + 0x16], al
test dl, 2
je 0x421888
or byte [esp + 0x17], al
inc esi
dec edi
jne 0x421837
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
push ebx
xor bl, bl
push ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov byte [esp + 0x18], bl
and edi, 1
mov eax, dword [esp + 0x18]
and eax, 0xff
lea ecx, [eax + eax*2]
lea eax, [esp + 0x10]
lea edx, [ebp + ecx*2]
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.00421980
mov eax, dword [esp + 0x2c]
xor eax, esi
mov esi, dword [esp + 0x10]
test edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
jne 0x4218ec
inc bl
cmp bl, 0x10
mov byte [esp + 0x18], bl
jb 0x4218ab
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], esi
pop ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
xor esi, esi
mov edi, 8
pop ebx
mov cl, byte [esp + esi + 8]
mov al, byte [esi + 0x43a150]
test cl, 1
je 0x42191a
or byte [esp + 0x10], al
test cl, 2
je 0x421923
or byte [esp + 0x11], al
test cl, 4
je 0x42192c
or byte [esp + 0x12], al
test cl, 8
je 0x421935
or byte [esp + 0x13], al
test cl, 0x10
je 0x42193e
or byte [esp + 0x14], al
test cl, 0x20
je 0x421947
or byte [esp + 0x15], al
test cl, 0x40
je 0x421950
or byte [esp + 0x16], al
test cl, cl
jns 0x421958
or byte [esp + 0x17], al
inc esi
dec edi
jne 0x421907
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x422200
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
test al, 1
je 0x422221
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.00421810
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, 8
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
xor esi, esi
mov dl, byte [esp + esi + 0x10]
mov al, 1
mov ecx, esi
shl al, cl
test dl, 0x40
je 0x422258
or byte [esp + 8], al
test dl, 0x10
je 0x422261
or byte [esp + 9], al
test dl, 4
je 0x42226a
or byte [esp + 0xa], al
test dl, 1
je 0x422273
or byte [esp + 0xb], al
test dl, dl
jns 0x42227b
or byte [esp + 0xc], al
test dl, 0x20
je 0x422284
or byte [esp + 0xd], al
test dl, 8
je 0x42228d
or byte [esp + 0xe], al
test dl, 2
je 0x422296
or byte [esp + 0xf], al
inc esi
dec edi
jne 0x422245
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 8]
push ebx
push ebp
mov dword [esp + 0x2c], edi
lea ebx, [ecx + 0x5a]
mov ebp, 0x10
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00421980
sub ebx, 6
mov eax, dword [esp + 0x28]
xor eax, esi
mov esi, edi
mov edi, eax
dec ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
jne 0x4222b4
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], esi
pop ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor esi, esi
mov edi, 8
pop ebx
mov cl, byte [esp + esi + 0x10]
mov al, byte [esi + 0x43a150]
test cl, 1
je 0x42230a
or byte [esp + 8], al
test cl, 2
je 0x422313
or byte [esp + 9], al
test cl, 4
je 0x42231c
or byte [esp + 0xa], al
test cl, 8
je 0x422325
or byte [esp + 0xb], al
test cl, 0x10
je 0x42232e
or byte [esp + 0xc], al
test cl, 0x20
je 0x422337
or byte [esp + 0xd], al
test cl, 0x40
je 0x422340
or byte [esp + 0xe], al
test cl, cl
jns 0x422348
or byte [esp + 0xf], al
inc esi
dec edi
jne 0x4222f7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
add esp, 0x10
ret 0xc

Function at 0x422610
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x44]
push edi
push 8
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x3c
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x42267a
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
mov eax, dword [edx + 0x1c]
push 0
push 0x69
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 1
call fcn.0041bf20
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 1
push 0x69
push esi
call fcn.0041bf20
pop edi
pop esi
add esp, 0x3c
ret 4
Function at 0x4243c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
ret 4

Function at 0x425e90
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x425ed6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call ebx
test eax, eax
jne 0x425ecc
push 0x1f4
call ebp
push esi
call edi
cmp eax, 0xffffffff
jne 0x425ebe
pop ebp
pop ebx
pop edi
pop esi
ret 4

Function at 0x426090
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Terminate process

Disassembly:
sub esp, 0x158
push esi
push edi
push str._UPDATE:
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040f150
test eax, eax
je 0x42617b
lea edx, [eax + 9]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x42617b
cmp byte [esi + edx - 1], 1
jne 0x42617b
cmp esi, 0x104
ja 0x42617b
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x60]
push edx
push eax
call fcn.0040f1e0
lea ecx, [esp + 0x5c]
mov byte [esp + esi + 0x5b], 0
push ecx
call fcn.00425e90
lea edx, [esp + 0x5c]
push 0
mov eax, dword [esp + 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x426173
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 0x10], 0
call esi
mov eax, dword [esp + 8]
mov dword [esp + 8], 0
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x164]
push ecx
call fcn.00425e90
pop edi
pop esi
add esp, 0x158
ret 4

Function at 0x426550
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x800
lea eax, [esp]
push esi
mov esi, dword [esp + 0x808]
push 0x800
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4265b4
cmp byte [esp + 4], 0x23
jne 0x4265b4
lea ecx, [esp + 4]
push 0x800
push ecx
push 0xa
lea edx, [esp + 0x11]
push 0
push edx
call fcn.0042ec21
add esp, 0xc
push eax
mov eax, dword [esp + 0x818]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x4265b4
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, 1
pop esi
add esp, 0x800
ret 8
Function at 0x427050
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x43aab8]
xor eax, edx
dec ecx
jne 0x427059
ret
Function at 0x4340dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x443930
cmp edx, dword [eax]
je 0x4340ff
add eax, 8
inc ecx
cmp eax, 0x4439c0
jl 0x4340f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x443930]
jne 0x43422d
mov eax, dword [0x4445a8]
cmp eax, 1
je 0x434207
test eax, eax
jne 0x434130
cmp dword [0x4411a4], 1
je 0x434207
cmp edx, 0xfc
je 0x43422d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x434167
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004339a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004307d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4341aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.004307d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x438b44
push edi
call fcn.004353f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004339a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004339b0
lea eax, [ebp - 0xa0]
push 0x43f420
push eax
call fcn.004339b0
push dword [esi + 0x443934]
lea eax, [ebp - 0xa0]
push eax
call fcn.004339b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00435603
add esp, 0x2c
pop edi
jmp 0x43422d
lea eax, [ebp + 8]
lea esi, [esi + 0x443934]
push 0
push eax
push dword [esi]
call fcn.004307d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x66460f
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
adc esp, ecx
inc ebx
push edx
xchg ecx, eax
insd dword es:[edi], dx
arpl word [edx], sp
mov ebx, 0xccc6f8a9
sbb dword [esi + 0x40e58c13], edi
inc esi
test eax, 0xc00fbc67
sub ch, cl
arpl word [edx + 0x105212d5], bp
xor dword [ebx - 0x2c], ecx
pop es
add dword [ebp + eax*8 - 0x735e642e], 0xed943c09
wait
mov eax, dword [0x943c098c]
in eax, dx
wait
mov eax, dword [0x943c098c]
in eax, dx
mov ecx, 0xc62b2fc2
push eax
jne 0x664604
out 0xcb, al
xor eax, 0x117e5379
and byte fs:[eax + 0x78], bh
cmp esp, eax
add bh, byte ss:[edi]
call [edi - 0x21efac9e]
pop esp
mov al, byte [0x9c30f956]
xor dword [ecx - 0x45], eax
ror ebp, cl
adc al, 0x33
ljmp 0x2ccc
Function at 0x40356c
Capabilities:
Terminate process

Disassembly:
jmp 0x45a044
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45a055
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004057e5
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 0x40368e
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a1751
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a1762
pop esi
ret
push ebx
push edi
push esi
call fcn.004a1638
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f17
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a178a
push ebx
push esi
push edi
call fcn.004055d8
add esp, 0xc
push 0
call fcn.004060ff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405696
Capabilities:
Parse pe header

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

Function at 0x446f36
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004036ed
mov eax, dword [eax + 0x14]
test eax, eax
je 0x446f79
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x446f79
sub eax, 1
je 0x446f74
sub eax, 1
je 0x446f70
xor eax, eax
leave
ret
push 3
jmp 0x446f7b
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48d417
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48d456
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48d456
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48d456
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48d456
cmp dword [ecx + 0x74], 0xe
jbe 0x48d456
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4988e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d61
mov eax, dword [0x4d2040]
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.00405d2b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x498929
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x498a85
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405e75
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 + 0x4d5958]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040320b
mov ecx, dword [esi*4 + 0x4d5958]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x498a7e
cmp eax, dword [ecx + edi + 0x24]
jne 0x498a7e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x498a7e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040320b
add esp, 0x14
test edx, edx
jl 0x498a7e
jg 0x4989f4
test eax, eax
jb 0x498a7e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x498a7e
jl 0x498a0e
cmp dword [ebp - 0x1008], eax
ja 0x498a7e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x498a2c
test ebx, ebx
je 0x498a65
cmp ecx, edi
jae 0x498a65
mov al, byte [ecx]
cmp al, 0xd
jne 0x498a46
lea eax, [edi - 1]
cmp ecx, eax
jae 0x498a52
cmp byte [ecx + 1], 0xa
jne 0x498a52
inc ecx
jmp 0x498a52
movzx eax, al
movsx eax, byte [eax + 0x4d23a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x498a2c
cmp edx, ebx
jne 0x498a2c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x498a83
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fef
leave
ret
Function at 0x4991c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4d5958]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x499204
cmp byte [ebx], 0xa
jne 0x499204
or byte [edi + eax + 0x28], 4
jmp 0x499209
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x499308
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4992eb
inc eax
cmp dl, 0xd
je 0x499235
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49925b
cmp eax, ecx
jae 0x499269
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49921d
jmp 0x499308
push 0
lea eax, [ebp - 0x10]
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 0x4992e6
cmp dword [ebp - 0x10], 0
je 0x4992e6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d5958]
test byte [eax + edi + 0x28], 0x48
je 0x4992c0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4992ab
mov byte [esi], dl
jmp 0x4992bc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d5958]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x499308
cmp byte [ebp - 1], 0xa
jne 0x4992cf
cmp esi, ebx
jne 0x4992cf
mov byte [esi], 0xa
jmp 0x499307
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401901
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x499308
mov byte [esi], 0xd
jmp 0x499307
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d5958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x499305
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x499308
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret