joyce8/EMBER2024-capa huggingface dataset:
Function at 0x525e6a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x571f3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051785c
and dword [ebp - 0x14], 0
cmp dword [0x58e270], 0
mov dword [ebp - 0x18], eax
jne 0x525f1d
push 0x579328
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x525fc5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x575778
push ebx
call edi
test eax, eax
je 0x525fc5
mov esi, dword [0x573390]
push eax
call esi
push 0x579318
push ebx
mov dword [0x58e270], eax
call edi
push eax
call esi
push 0x579304
push ebx
mov dword [0x58e274], eax
call edi
push eax
call esi
push 0x5792e8
push ebx
mov dword [0x58e278], eax
call edi
push eax
call esi
mov dword [0x58e280], eax
test eax, eax
je 0x525f1d
push 0x5792d0
push ebx
call edi
push eax
call esi
mov dword [0x58e27c], eax
mov eax, dword [0x58e27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x573394]
cmp eax, ecx
je 0x525f76
cmp dword [0x58e280], ecx
je 0x525f76
push eax
call esi
push dword [0x58e280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x525f76
test ebx, ebx
je 0x525f76
call edi
test eax, eax
je 0x525f6d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x525f6d
test byte [ebp - 8], 1
jne 0x525f76
or dword [ebp + 0x10], 0x200000
jmp 0x525fa9
mov eax, dword [0x58e274]
cmp eax, dword [ebp - 0x18]
je 0x525fa9
push eax
call esi
test eax, eax
je 0x525fa9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x525fa9
mov eax, dword [0x58e278]
cmp eax, dword [ebp - 0x18]
je 0x525fa9
push eax
call esi
test eax, eax
je 0x525fa9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x58e270]
call esi
test eax, eax
je 0x525fc5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x525fc7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050dbce
leave
ret
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1000f1a6
Capabilities:
Parse pe header

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

Function at 0x1001310c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020fb4
push 0x10020fac
push str.FlsAlloc
push 0x1f
call fcn.10012f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013140
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d224]
call esi
jmp 0x10013146
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001318a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020fc4
push 0x10020fbc
push str.FlsGetValue
push 0x21
call fcn.10012f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100131c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d224]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100131c9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020fcc
push 0x10020fc4
push str.FlsSetValue
push 0x22
call fcn.10012f8b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013203
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001d224]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100170ee
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 0x1001718b
push ebx
push esi
call fcn.100170b7
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.100139b1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017138
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001718a
push edi
push eax
call fcn.100106ec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017158
call fcn.100106b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017189
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100139b1
add esp, 0x20
test eax, eax
jne 0x10017177
push edi
call fcn.100106b2
jmp 0x1001717f
push ebx
call fcn.100106b2
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 0x1001718e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1001719f
pop esi
ret
push ebx
push edi
push esi
call fcn.100170b7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100106ec
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100171c7
push ebx
push esi
push edi
call fcn.100064b0
add esp, 0xc
push 0
call fcn.100106b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10017597
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100171dc

Function at 0x1001c650
Capabilities:
Parse pe header

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

Function at 0x7ba6be
Capabilities:
Encode data using xor

Disassembly:
iretd
jle 0x7ba682
das
cmp al, 0xf1
pop eax
inc edx
cmp eax, 0x8eba62e
add al, ah
add eax, dword [eax]
add byte [eax], al
add byte [eax], al
pushal
call 0x7ba6c4
pop ebp
sub ebp, 0x10
sub ebp, 0x3ba6b4
jmp 0x7ba6da
mov eax, 0x3ba6b4
add eax, ebp
add eax, 0x4c
mov ecx, 0x60e
push cs
push es
add byte [eax], al
mov edx, 0x9bffbd69
xor byte [eax], dl
inc eax
dec ecx
jne 0x7ba6f1
jmp 0x7ba704
loop 0x7ba6aa
loop 0x7ba6e8
push ebp
imul ebp, dword [ecx + 0x69], 0x6991a8e8
imul ebp, dword [ecx + 0x6a], 0x696dd1a4
imul ebp, dword [ecx - 0x2d], 0x69696941
call 0x69e538b9
imul ebp, dword [edx - 0x5c], 0x69696dd1
imul edx, ebx, 0x69696941
sahf
mov ebp, dword [edx - 0x5f]
loop 0x7ba70c
imul ebp, dword gs:[ecx + 0x69], 0x3939ac6a
add dword [ecx + 0x1696712], edi
lea eax, [ebx + 0x44]
imul ebp, dword [eax + 0x45], 0x54eb014d
inc edi
iretd
Function at 0x401f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401fab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401fab
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401f98
cmp esi, edx
jae 0x401fab
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401f86
cmp esi, edx
jae 0x401fab
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x403220
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a1f5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.dictSendPlugRecv
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 8], eax
test eax, eax
je 0x403366
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 0xc], edi
test edi, edi
jne 0x403284
push dword [esi + 8]
jmp 0x403360
call fcn.00402120
mov ecx, eax
test ecx, ecx
je 0x40337a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00403550
test al, al
jne 0x4032d0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4032b7
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004038c0
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ebx, dword [edx]
sub ebx, 0x10
lea edi, [eax - 0x10]
cmp edi, ebx
je 0x40332e
cmp dword [ebx + 0xc], 0
jl 0x403323
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x403323
mov ecx, edi
call fcn.004037e0
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403319
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x40332e
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.004038c0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40334a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403358
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 8]
test eax, eax
je 0x403366
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401f00
int3
Function at 0x40b0b3
Capabilities:
Parse pe header

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

Function at 0x415922
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 0x415943
jl 0x41593a
test edi, edi
jne 0x415943
xor eax, eax
xor edx, edx
jmp 0x415a04
cmp dword [ebx + 0x38], 0
je 0x415958
push eax
push edi
push dword [ebp + 8]
call fcn.0040f780
jmp 0x415a04
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41599f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x41599f
cmp eax, edi
jb 0x415979
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00418580
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 0x4159a5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4159f9
mov ecx, ebx
call fcn.004151fc
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4159e4
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00428536
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 0x4159f9
jmp 0x4159b7
test edx, edx
je 0x4159f9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00428536
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 0x42e7c1
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 0x42e85e
push ebx
push esi
call fcn.0042e78a
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.0042e720
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42e80b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42e85d
push edi
push eax
call fcn.0042aa80
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42e82b
call fcn.0042aa30
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42e85c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042e720
add esp, 0x20
test eax, eax
jne 0x42e84a
push edi
call fcn.0042aa30
jmp 0x42e852
push ebx
call fcn.0042aa30
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 0x430b1f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042c2d1
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 0x430b8e
cmp esi, dword [ebp - 4]
je 0x430b89
cmp dword [ebp + 0xc], 0
je 0x430b89
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x430b66
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00430674
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x430b90
xor eax, eax
inc eax
jmp 0x430b90
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x430bfb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44a040]
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.0042c2d1
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.0042c2d1
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 0x430c72
cmp word [ecx], dx
je 0x430c72
mov eax, dword [0x440f9c]
push edi
dec eax
push eax
push 0x440e88
call fcn.00430b94
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x430ce5
cmp word [eax], dx
je 0x430ce5
mov eax, dword [edi]
test eax, eax
je 0x430c96
cmp word [eax], dx
je 0x430c96
lea eax, [ebp - 0x10]
push eax
call fcn.0043057a
jmp 0x430c9f
lea eax, [ebp - 0x10]
push eax
call fcn.00430615
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x430d0f
mov eax, dword [0x440e84]
push dword [ebp - 0x14]
dec eax
push eax
push 0x440b78
call fcn.00430b94
add esp, 0xc
test al, al
je 0x430d0f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x430cda
cmp word [eax], di
je 0x430cda
lea eax, [ebp - 0x10]
push eax
call fcn.0043057a
pop ecx
jmp 0x430d11
lea eax, [ebp - 0x10]
push eax
call fcn.00430615
jmp 0x430cd7
mov eax, dword [edi]
test eax, eax
je 0x430cfc
cmp word [eax], dx
je 0x430cfc
lea eax, [ebp - 0x10]
push eax
call fcn.0043052f
pop ecx
jmp 0x430d0f
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 0x430dda
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00430a19
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x430dda
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x430dda
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x430dda
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x430d67
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042cefb
test ebx, ebx
je 0x430dd5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042cefb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430dda
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 0x430dda
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004374a6
add esp, 0x10
xor eax, eax
inc eax
jmp 0x430ddc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a57b
leave
ret
Function at 0x4335b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00439c80
mov eax, dword [0x44a040]
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.004200c9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4335f4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43376b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00439a30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x44d028]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004345f8
mov ecx, dword [esi*4 + 0x44d028]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x433764
cmp eax, dword [edi + ecx + 0x24]
jne 0x433764
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x433764
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004345f8
add esp, 0x14
cmp edx, esi
jl 0x433764
jg 0x4336bf
cmp eax, esi
jb 0x433764
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x433764
jl 0x4336e1
cmp dword [ebp - 0x1008], eax
ja 0x433764
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x433706
cmp ebx, esi
je 0x43374b
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x43374b
mov al, byte [ecx]
cmp al, 0xd
jne 0x43372c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x433738
cmp byte [ecx + 1], 0xa
jne 0x433738
inc ecx
jmp 0x433738
movzx eax, al
movsx eax, byte [eax + 0x44a908]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x433712
cmp edx, ebx
jne 0x433712
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x433769
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a57b
leave
ret
Function at 0x4339ea
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x433a04
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x433a1b
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x433a73
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0042d3a4
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x433a73
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x433a73
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x433a73
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x433a6d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x433a6f
xor bl, bl
mov al, bl
jmp 0x433a75
xor al, al
pop esi
pop ebx
leave
ret