joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406977
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062d8
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4069e9
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x4069e9
cmp dword [ebp + 0x18], 1
je 0x4069ee
cmp dword [ebp + 0x18], 2
je 0x4069ee
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x4069f3
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406a56
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406aa0
test edi, edi
jne 0x406a63
mov word [esi], ax
jmp 0x406aa2
mov eax, esi
pop edi
pop esi
leave
ret 8

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406bbf
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x432414], 0
push esi
jne 0x406e76
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406e4d
mov dword [ecx*4 + 0x432410], edx
inc ecx
cmp ecx, 0x100
jl 0x406e48
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406ea0
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x432410]
inc esi
sub edx, 1
jne 0x406e88
not ecx
mov eax, ecx
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x408151
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x408160
pop dword [ebp - 0x44]
mov eax, 0x83e1d031
sub eax, 0x83a14ed1
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3f171
push 0
mov eax, 0x555c355c
add eax, 0xaae61cbc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x9c778ba2
sub ecx, 0x9c773e6c
mov edi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x44]
mov esi, 0x91b4e778
sub dword [ebp - 0x10], 0xb5a358ae
mov ebx, dword [edx]
xor dword [ebp - 0x34], 0xdc149a3f
add ebx, esi
mov dword [edi], ebx
xor dword [ebp - 0x24], 0xec8caa7f
add edi, 0x8fba5b14
add edi, 0x7045a4f0
add edx, 0x214231bb
sub edx, 0x214231b7
loop 0x4081b3
add eax, 0x127ab
mov ebx, eax
add eax, 0x5cf26b45
sub eax, 0x5cf26b40
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x8de2dc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de2e2
pop ebp
sub ebp, 6
sub ebp, 0x4de2dc
jmp 0x8de340
jmp 0x8de349
mov eax, 0x4de2dc
add eax, ebp
add eax, 0x93
mov ecx, 0x629
mov edx, 0xfc7b0bd1
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de360
jmp 0x8de373
mov ebx, 0xc1d1b991
rcl ecx, 1
mov ecx, 0xd1fd1dd1
push eax
and dword [esi + 0x50c58929], ebx
and dword [esi - 0x1d3a76d7], ebx
adc dword [ecx - 0xf12bbd2], eax
xchg ebp, eax
rol dword [ecx + 0x585a1c5a], 1
in eax, dx
rcl ecx, 1
rcl dword [eax + 0x10]
sub ecx, edx
rcl ecx, 1
rcr byte [ecx + ebp*2], cl
xlatb
rcl ecx, 1
shr dword [ebx - 7], 1
rcl ecx, 1
shl dword [esi], 1
xor edx, edx
sbb dword [edx + 0x50], ebx
fst st(1)
rcl ecx, 1
rcl byte [ecx + eax*4], cl
mov ecx, 0xd1d8e670
mov ecx, 0xd1957aea
sar ch, 1
rcl eax, 1
std
cmc
mov ecx, 0xd1d1d1d1
cmp esp, edx
rcl ecx, 1
sar dword [eax], 1
stc
rcl ecx, 1
rol dword [ebp + eax*4 - 0x26aba574], 1
rcl ecx, 1
rcr dword [edx + 0x44], 1
fst st(1)
rcl ecx, 1
pop edx
pop esp
rcl ecx, 0xd1
rcl dword [eax]
cmp bl, dl
loopne 0x8de3c5
push edx
adc edx, ebp
cwde
ficom word [ebp + 0x2e]
mov word cs:[ebx], ss
fst st(1)
pop edx
pop ebp
cmc
aad 0xd1
rcl ecx, 1
mov ecx, 0xd1d8e670
mov ecx, 0xd1957aea
sar ch, 1
cmc
cmp byte [ecx], 0xd4
rcl ecx, 1
sar dword [eax], 1
loop 0x8de3f0
rcl ecx, 1
test byte [ebp - 0x225bd174], al
movsb byte es:[edi], byte cs:[esi]
fnstcw word [ecx]
mov bh, 0xd1
rcl ecx, 1
pop edx
insb byte es:[edi], dx
invalid
Function at 0x4029d0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x3e8
push 1
push dword [0x46ac5c]
mov edi, ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x4029ff
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 1
xor eax, eax
pop ebp
ret 4
mov ecx, 0x438ed8
call fcn.00404c20
test eax, eax
jne 0x402a1d
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 2
xor eax, eax
pop ebp
ret 4
push 0x190
push 0
push edi
call fcn.00409850
add esp, 0xc
push edi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x402a4d
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 3
xor eax, eax
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x194], eax
cmp eax, 0xffffffff
jne 0x402a74
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 4
xor eax, eax
pop ebp
ret 4
push esi
mov eax, 2
lea esi, [edi + 0x198]
push 0
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi + 0x19c], eax
movzx eax, word [0x46acc4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
push esi
push dword [edi + 0x194]
mov word [edi + 0x19a], ax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x402acb
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], 5
xor eax, eax
pop ebp
ret 4
push accept
push dword [edi + 0x194]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x402af2
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], 6
xor eax, eax
pop ebp
ret 4
push 0x2b
push 0xb
push dword [0x46ac5c]
push dword [edi + 0x194]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x402b1e
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], 7
xor eax, eax
pop ebp
ret 4
push 0x4c90
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x4338a8], eax
test eax, eax
jne 0x402b45
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], 9
xor eax, eax
pop ebp
ret 4
xor ecx, ecx
nop word [eax + eax]
mov dword [ecx + eax + 0x20], 0
mov eax, dword [0x4338a8]
mov dword [ecx + eax + 0x28], 0
add ecx, 0x38
cmp ecx, 0x4c90
jge 0x402b77
mov eax, dword [0x4338a8]
jmp 0x402b50
xor esi, esi
nop dword [eax]
mov ecx, dword [0x4338a8]
push 0x186a0
push 0x186a0
lea ecx, [esi + ecx]
call fcn.00403150
test eax, eax
je 0x402bf0
add esi, 0x38
cmp esi, 0x4c90
jl 0x402b80
mov ecx, 0x4338b0
call fcn.00403450
test eax, eax
jne 0x402bc6
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], 0xb
xor eax, eax
pop ebp
ret 4
mov ecx, 0x4340b0
call fcn.00403c10
test eax, eax
jne 0x402be5
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], 0xc
xor eax, eax
pop ebp
ret 4
pop esi
mov eax, 1
pop edi
pop ebp
ret 4
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], 0xa
xor eax, eax
pop ebp
ret 4
Function at 0x403250
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f8
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x40343c
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x4032bd
mov ecx, dword [esi + 0x24]
mov eax, 0x186a0
mov ebx, dword [ebp + 0x10]
sub eax, ecx
cmp eax, ebx
jge 0x4032aa
push 0x7d1
mov ecx, esi
call fcn.004031a0
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bc
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x20]
push ebx
push edx
add eax, ecx
push eax
call fcn.00408d60
add esp, 0xc
add dword [esi + 0x24], ebx
cmp dword [esi + 0x24], 0
jle 0x40343a
mov ebx, dword [ebp - 0x4f4]
nop dword [eax]
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x4f8]
push ecx
push 0
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x4ec], eax
push ecx
push 0
inc eax
mov dword [ebp - 0x4f0], 1
push eax
mov dword [ebp - 0x4f8], 5
mov dword [ebp - 0x4f4], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x40335f
je 0x403421
lea eax, [ebp - 0x4f0]
push eax
push dword [esi + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40335f
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40337c
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
sub ecx, ebx
push ecx
lea ecx, [edx + ebx]
push ecx
push edx
call fcn.00408d60
add esp, 0xc
sub dword [esi + 0x24], ebx
cmp dword [esi + 0x24], 0
jg 0x4032d0
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bc
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40343a
cmp dword [esi], 0
je 0x40343a
mov eax, dword [esi + 0x30]
cmp eax, 3
je 0x4033e3
cmp eax, 4
je 0x4033e3
push dword [esi + 0x34]
push eax
lea eax, [esi + 0x10]
push eax
push 0x7d2
lea eax, [ebp - 0x3ec]
push str._ABNORMAL_FREE___d__::_SERVER_IP___s___SERVER_TYPE___d___SERVER_NUMBER___d_
push eax
call fcn.00402990
add esp, 0x18
lea eax, [ebp - 0x3ec]
push eax
push str.MyUser::Quit
push str.___s__:_error__s__n
call fcn.00402430
push eax
call fcn.004022b0
add esp, 0x10
push dword [esi + 8]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi], 0
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082bc
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.00408d60
add esp, 0xc
sub dword [esi + 0x24], ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004082bc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406ef2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x406f13
jl 0x406f0a
test edi, edi
jne 0x406f13
xor eax, eax
xor edx, edx
jmp 0x406fd4
cmp dword [ebx + 0x38], 0
je 0x406f28
push eax
push edi
push dword [ebp + 8]
call fcn.00406fda
jmp 0x406fd4
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x406f6f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x406f6f
cmp eax, edi
jb 0x406f49
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408d60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x406f75
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406fc9
mov ecx, ebx
call fcn.004065a8
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406fb4
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00410995
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406fc9
jmp 0x406f87
test edx, edx
je 0x406fc9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00410995
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x408a10
Capabilities:
Parse pe header

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

Function at 0x417128
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a7b0
push 0x42a7a8
push str.FlsAlloc
push 0x1f
call fcn.00416f93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41715c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42621c]
call esi
jmp 0x417162
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4171a6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a7c0
push 0x42a7b8
push str.FlsGetValue
push 0x21
call fcn.00416f93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4171dd
push dword [ebp + 8]
mov ecx, esi
call dword [0x42621c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4171e5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a7c8
push 0x42a7c0
push str.FlsSetValue
push 0x22
call fcn.00416f93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41721f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42621c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x419624
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004082d0
mov eax, dword [0x431040]
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.00416925
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419666
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4197c2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004253e0
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 + 0x46c508]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041a621
mov ecx, dword [esi*4 + 0x46c508]
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 0x4197bb
cmp eax, dword [ecx + edi + 0x24]
jne 0x4197bb
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 0x4197bb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a621
add esp, 0x14
test edx, edx
jl 0x4197bb
jg 0x419731
test eax, eax
jb 0x4197bb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4197bb
jl 0x41974b
cmp dword [ebp - 0x1008], eax
ja 0x4197bb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x419769
test ebx, ebx
je 0x4197a2
cmp ecx, edi
jae 0x4197a2
mov al, byte [ecx]
cmp al, 0xd
jne 0x419783
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41978f
cmp byte [ecx + 1], 0xa
jne 0x41978f
inc ecx
jmp 0x41978f
movzx eax, al
movsx eax, byte [eax + 0x431498]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x419769
cmp edx, ebx
jne 0x419769
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4197c0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004082bc
leave
ret
Function at 0x419ab9
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 + 0x46c508]
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 0x419af9
cmp byte [ebx], 0xa
jne 0x419af9
or byte [edi + eax + 0x28], 4
jmp 0x419afe
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 0x419bfd
mov dl, byte [eax]
cmp dl, 0x1a
je 0x419be0
inc eax
cmp dl, 0xd
je 0x419b2a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x419b50
cmp eax, ecx
jae 0x419b5e
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 0x419b12
jmp 0x419bfd
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 0x419bdb
cmp dword [ebp - 0x10], 0
je 0x419bdb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46c508]
test byte [eax + edi + 0x28], 0x48
je 0x419bb5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419ba0
mov byte [esi], dl
jmp 0x419bb1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46c508]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419bfd
cmp byte [ebp - 1], 0xa
jne 0x419bc4
cmp esi, ebx
jne 0x419bc4
mov byte [esi], 0xa
jmp 0x419bfc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a63f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419bfd
mov byte [esi], 0xd
jmp 0x419bfc
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46c508]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419bfa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419bfd
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419c06
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x46c508]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419c4c
cmp word [ebx], dx
jne 0x419c4c
or byte [eax + edi + 0x28], 4
jmp 0x419c51
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x419db4
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x419d94
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x419c92
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419cc8
cmp eax, edx
jae 0x419cd6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x419c6d
jmp 0x419db4
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419d8f
cmp dword [ebp - 0x18], 0
je 0x419d8f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46c508]
test byte [eax + edi + 0x28], 0x48
je 0x419d65
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x419d29
mov word [esi], cx
jmp 0x419d60
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46c508]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x46c508]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46c508]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x419db4
pop eax
cmp word [ebp - 4], ax
jne 0x419d75
cmp esi, ebx
jne 0x419d75
mov word [esi], ax
jmp 0x419db1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a63f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x419db4
push 0xd
pop eax
jmp 0x419d70
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46c508]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x419dae
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x419db4
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d452
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41d4ef
push ebx
push esi
call fcn.0041d41b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041c27d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d49c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d4ee
push edi
push eax
call fcn.00415a25
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d4bc
call fcn.004159eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d4ed
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c27d
add esp, 0x20
test eax, eax
jne 0x41d4db
push edi
call fcn.004159eb
jmp 0x41d4e3
push ebx
call fcn.004159eb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41fd39
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00415700
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41fda8
cmp esi, dword [ebp - 4]
je 0x41fda3
cmp dword [ebp + 0xc], 0
je 0x41fda3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41fd80
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041f88b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41fdaa
xor eax, eax
inc eax
jmp 0x41fdaa
xor eax, eax
pop edi
pop esi
leave
ret