joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58fc47
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x690dfc]
jne 0x58fc51
repz ret
jmp fcn.005992bf

Function at 0x58fe6e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x58fe9f
call fcn.00596dfa
mov dword [eax], esi
call fcn.00596de7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00590ea6
add esp, 0x14
push 0x16
pop eax
jmp 0x58fef4
test dword [ebp + 0xc], 0xfffffff9
jne 0x58fe7b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58fecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00596e0d
pop ecx
call fcn.00596de7
mov eax, dword [eax]
jmp 0x58fef4
test al, 0x10
jne 0x58fef2
test al, 1
je 0x58fef2
test byte [ebp + 0xc], 2
je 0x58fef2
call fcn.00596dfa
mov dword [eax], 5
call fcn.00596de7
mov dword [eax], 0xd
jmp 0x58fec3
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5a4224
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.00599437
and dword [ebp - 4], 0
cmp dword [0x73beb0], 0
mov ebx, eax
jne 0x5a42d5
push 0x6586b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5a4386
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6586ac
push edi
call esi
test eax, eax
je 0x5a4386
push eax
call fcn.005993c5
mov dword [esp], 0x65869c
push edi
mov dword [0x73beb0], eax
call esi
push eax
call fcn.005993c5
mov dword [esp], 0x658688
push edi
mov dword [0x73beb4], eax
call esi
push eax
call fcn.005993c5
mov dword [esp], 0x65866c
push edi
mov dword [0x73beb8], eax
call esi
push eax
call fcn.005993c5
pop ecx
mov dword [0x73bec0], eax
test eax, eax
je 0x5a42d5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005993c5
pop ecx
mov dword [0x73bebc], eax
mov eax, dword [0x73bebc]
cmp eax, ebx
je 0x5a432d
cmp dword [0x73bec0], ebx
je 0x5a432d
push eax
call fcn.00599440
push dword [0x73bec0]
mov esi, eax
call fcn.00599440
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5a432d
test edi, edi
je 0x5a432d
call esi
test eax, eax
je 0x5a4324
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5a4324
test byte [ebp - 0xc], 1
jne 0x5a432d
or dword [ebp + 0x10], 0x200000
jmp 0x5a4366
mov eax, dword [0x73beb4]
cmp eax, ebx
je 0x5a4366
push eax
call fcn.00599440
pop ecx
test eax, eax
je 0x5a4366
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5a4366
mov eax, dword [0x73beb8]
cmp eax, ebx
je 0x5a4366
push eax
call fcn.00599440
pop ecx
test eax, eax
je 0x5a4366
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x73beb0]
call fcn.00599440
pop ecx
test eax, eax
je 0x5a4386
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5a4388
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ae5c0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x5ae63b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.005ad2c2
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x5ae5f7
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x5ae60e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.005ad2c2
add esp, 4
test eax, eax
jbe 0x5ae63b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.005ad2c2
add esp, 4
cmp esi, eax
jb 0x5ae620
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x5af770
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x73c4e0], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x5af806
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x73c4e0
mov dword [0x73c4e0], 0x11c
mov dword [0x73c4e4], 6
mov dword [0x73c4e8], 1
mov word [0x73c5f4], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x6922b4], eax
jmp 0x5af80b
mov eax, dword [0x6922b4]
cmp eax, esi
je 0x5af81a
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x5af93a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x5af938
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x5af938
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x5af938
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x5af870
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x5af8ef
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x5af938
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x5af938
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x5af938
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x5af8d6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x6419d0
push 0x26
jmp 0x5af8f5
cmp word [esi + edi*2 - 4], 0x5c
je 0x5af903
push 0x662c78
add edi, 1
push edi
push esi
call fcn.005af5c0
jmp 0x5af903
push 0x6419d0
push eax
call fcn.005af660
mov esi, eax
add esp, 8
test esi, esi
je 0x5af938
push esi
call fcn.005ad2c2
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.005b09e4
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x5af938
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x5af870
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x5afce0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.005afb70
mov esi, eax
add esp, 4
test esi, esi
je 0x5afd22
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5afd04
test al, 0x50
je 0x5afd22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x5afd17
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x1408058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14081a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x140807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x140806a
add dl, dl
jne 0x1408089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x14080dc
xor eax, eax
add dl, dl
jne 0x1408096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x140817d
add dl, dl
jne 0x14080a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x14080d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1408075
mov eax, 1
add dl, dl
jne 0x14080ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x14080e1
sub eax, ebx
mov ebx, 1
jne 0x1408128
mov ecx, 1
add dl, dl
jne 0x140810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1408105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1408075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1408136
cmp eax, 0x7d00
jae 0x140816d
cmp eax, 0x500
jb 0x1408168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1408075
cmp eax, 0x7f
ja 0x1408170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1408075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x140819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1408075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430006
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x1001e34
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x10011e0
call fcn.01002c88
mov edi, 0x94
mov eax, edi
call 0x1002df0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x10010a8]
mov ecx, dword [esi + 0x10]
mov dword [0x10062b8], ecx
mov eax, dword [esi + 4]
mov dword [0x10062c4], eax
mov edx, dword [esi + 8]
mov dword [0x10062c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10062bc], esi
cmp ecx, 2
je 0x1001e94
or esi, 0x8000
mov dword [0x10062bc], esi
shl eax, 8
add eax, edx
mov dword [0x10062c0], eax
cmp word [0x1000000], 0x5a4d
jne 0x1001ed0
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1001ed0
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1001ee9
cmp ecx, 0x20b
je 0x1001ed6
and dword [ebp - 0x1c], 0
jmp 0x1001efd
cmp dword [eax + 0x84], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1001ef7
cmp dword [eax + 0x74], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01002c2a
pop ecx
test eax, eax
jne 0x1001f2a
cmp dword [0x10062a8], 1
jne 0x1001f17
call fcn.01002406
push 0x1c
call fcn.01002219
push 0xff
call fcn.01002078
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01002a5a
test eax, eax
jge 0x1001f3f
push 0x1b
call fcn.01001e05
pop ecx
call dword [0x10010ac]
mov dword [0x1006854], eax
call fcn.0100292d
mov dword [0x10062a0], eax
call fcn.01002884
test eax, eax
jge 0x1001f65
push 8
call fcn.01001e05
pop ecx
call fcn.0100262a
test eax, eax
jge 0x1001f76
push 9
call fcn.01001e05
pop ecx
call fcn.010020d2
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001f89
push eax
call fcn.01001e05
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x10010b0]
call fcn.010025bc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1001fab
movzx eax, word [ebp - 0x40]
jmp 0x1001fae
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01001c3d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1001fcf
push esi
call fcn.010021b2
call fcn.010021ea
jmp 0x1002001
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call 0x1002cc3
ret
Function at 0x40605a
Capabilities:
Parse pe header

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

Function at 0x408b20
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x445ca0
push str.FlsAlloc
push 0x1f
call fcn.004087f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b54
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x408b5a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408b9e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x445cc4
push str.FlsGetValue
push 0x21
call fcn.004087f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408bd5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408bdd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x445cd8
push str.FlsSetValue
push 0x22
call fcn.004087f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408c17
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b083
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4500f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40b0ce
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040b2df
test al, al
jne 0x40b0c8
sub edx, 2
cmp edx, edi
jne 0x40b0ae
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40b0f0
lea eax, [edi + 2]
cmp edx, eax
je 0x40b0f0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040ad4a
add esp, 0x10
jmp 0x40b1ea
push esi
lea ecx, [ebp - 0x255]
call fcn.0040b2df
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b133
push dword [ebp - 0x25c]
jmp 0x40b0e0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40b170
cmp word [ebp - 0x226], 0
je 0x40b191
cmp word [ebp - 0x226], ax
jne 0x40b170
cmp word [ebp - 0x224], 0
je 0x40b191
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040ad4a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40b1dd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40b14a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40b1c5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40b1ea
push 0x40a79a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00412730
add esp, 0x10
jmp 0x40b1ba
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b1f
leave
ret

Function at 0x40deed
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004073ce
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 0x40df5c
cmp esi, dword [ebp - 4]
je 0x40df57
cmp dword [ebp + 0xc], 0
je 0x40df57
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40df34
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040da3f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40df5e
xor eax, eax
inc eax
jmp 0x40df5e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40dfc3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4500f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004073ce
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004073ce
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40e03a
cmp word [ecx], dx
je 0x40e03a
mov eax, dword [0x446fac]
push edi
dec eax
push eax
push 0x446e98
call fcn.0040df62
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40e0ad
cmp word [eax], dx
je 0x40e0ad
mov eax, dword [edi]
test eax, eax
je 0x40e05e
cmp word [eax], dx
je 0x40e05e
lea eax, [ebp - 0x10]
push eax
call fcn.0040d945
jmp 0x40e067
lea eax, [ebp - 0x10]
push eax
call fcn.0040d9e0
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40e0d7
mov eax, dword [0x446e94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x446b88
call fcn.0040df62
add esp, 0xc
test al, al
je 0x40e0d7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40e0a2
cmp word [eax], di
je 0x40e0a2
lea eax, [ebp - 0x10]
push eax
call fcn.0040d945
pop ecx
jmp 0x40e0d9
lea eax, [ebp - 0x10]
push eax
call fcn.0040d9e0
jmp 0x40e09f
mov eax, dword [edi]
test eax, eax
je 0x40e0c4
cmp word [eax], dx
je 0x40e0c4
lea eax, [ebp - 0x10]
push eax
call fcn.0040d8dc
pop ecx
jmp 0x40e0d7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40e1a2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040dde7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40e1a2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40e1a2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40e1a2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40e12f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00408d1d
test ebx, ebx
je 0x40e19d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00408d1d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40e1a2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40e1a2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00414a4a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40e1a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b1f
leave
ret
Function at 0x4168ef
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 + 0x452570]
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 0x41692f
cmp byte [ebx], 0xa
jne 0x41692f
or byte [edi + eax + 0x28], 4
jmp 0x416934
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 0x416a33
mov dl, byte [eax]
cmp dl, 0x1a
je 0x416a16
inc eax
cmp dl, 0xd
je 0x416960
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x416986
cmp eax, ecx
jae 0x416994
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 0x416948
jmp 0x416a33
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 0x416a11
cmp dword [ebp - 0x10], 0
je 0x416a11
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x452570]
test byte [eax + edi + 0x28], 0x48
je 0x4169eb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4169d6
mov byte [esi], dl
jmp 0x4169e7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x452570]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416a33
cmp byte [ebp - 1], 0xa
jne 0x4169fa
cmp esi, ebx
jne 0x4169fa
mov byte [esi], 0xa
jmp 0x416a32
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041795b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416a33
mov byte [esi], 0xd
jmp 0x416a32
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x452570]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416a30
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416a33
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret