joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d980
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4976b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x48d830
push 0
push 0
call fcn.004623d4
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x48d9eb
lea ecx, [esp + 0x10]
call fcn.004602a7
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00412250
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x48da11
cmp eax, 0xffffffff
je 0x48da11
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x48e480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x48e48f
mov eax, dword [eax + 4]
jmp 0x48e492
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x48e52a
push esi
call fcn.0048c660
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x48e50f
cmp eax, 3
je 0x48e50f
cmp eax, 0x7b
je 0x48e50f
cmp eax, 0xf
je 0x48e50f
cmp eax, 0x15
je 0x48e50f
cmp eax, 0x57
je 0x48e50f
cmp eax, 0xa1
je 0x48e50f
cmp eax, 0x35
je 0x48e50f
cmp eax, 0x20
jne 0x48e504
mov eax, dword [0x4b3cb0]
mov dword [ecx], eax
mov edx, dword [0x4b3cb4]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4b3cb0]
mov dword [ecx], eax
mov edx, dword [0x4b3cb4]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4b3cb0]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4b3cb4]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x48e557
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x48e580
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49774b
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x168], eax
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18c]
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x1a0]
mov edi, dword [esp + 0x190]
mov ebp, dword [esp + 0x198]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x198]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00404870
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x184], 0
je 0x48e673
lea esi, [eax - 1]
cmp esi, eax
jbe 0x48e636
call fcn.004606a6
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x48e645
lea ecx, [esp + 0x20]
cmp byte [ecx + esi], 0x5c
je 0x48e66c
lea esi, [eax - 1]
cmp esi, eax
jbe 0x48e657
call fcn.004606a6
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x48e666
lea eax, [esp + 0x20]
cmp byte [eax + esi], 0x3a
jne 0x48e673
mov edx, 0x49c150
jmp 0x48e678
mov edx, 0x49fee0
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x48e680
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00406050
mov eax, dword [esp + 0x20]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jae 0x48e6a9
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x48e6fa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
call esi
cmp eax, 2
je 0x48e6dc
call esi
cmp eax, 0x12
je 0x48e6dc
call esi
mov esi, eax
jmp 0x48e6de
xor esi, esi
call fcn.0048c660
cmp dword [esp + 0x34], 0x10
mov edi, dword [esp + 0x10]
mov dword [edi], esi
mov dword [edi + 4], eax
jb 0x48e771
mov edx, dword [esp + 0x20]
push edx
jmp 0x48e769
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x48e701
sub eax, edx
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
call fcn.00404950
test byte [esp + 0x38], 0x10
je 0x48e736
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 3
mov dword [edx], 3
jmp 0x48e74a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax], 2
mov dword [ecx], 2
cmp dword [esp + 0x34], esi
mov edx, dword [0x4b3cb0]
mov edi, dword [esp + 0x10]
mov dword [edi], edx
mov eax, dword [0x4b3cb4]
mov dword [edi + 4], eax
jb 0x48e771
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00460238
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004601ff
add esp, 0x178
ret
Function at 0x1000111b
Capabilities:
Enumerate gui resources
Set global application hook

Disassembly:
cmp dword [0x10003344], 0
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
jne 0x1000114e
push 0
push dword [0x100033ac]
push 0x100024b0
push 0xc
call esi
push 1
push 0x10002650
mov dword [0x10003344], eax
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x10003348], 0
jne 0x1000116d
push 0
push dword [0x100033ac]
push 0x10002200
push 3
call esi
mov dword [0x10003348], eax
pop esi
ret

Function at 0x10001d80
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
mov al, byte [ebx]
push edi
cmp al, 0x25
jne 0x10001df7
mov al, byte [ebx + 1]
lea ebp, [ebx + 1]
cmp al, 0x25
je 0x10001df7
push 0x25
push ebp
call sub.MSVCRT.dll_strchr
mov esi, eax
sub eax, ebx
add eax, 2
push eax
call sub.MSVCRT.dll_malloc
add esp, 0xc
mov edi, eax
test esi, esi
je 0x10001df7
mov byte [esi], 0
inc esi
lea ecx, [esp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
call esi
push ebp
push edi
call esi
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call sub.MSVCRT.dll_free
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4012c0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x204
mov ebx, dword [esp + 0x224]
mov ebp, dword [esp + 0x220]
mov esi, dword [esp + 0x218]
mov eax, dword [0x431880]
xor eax, esp
mov dword [esp + 0x200], eax
xor ecx, ecx
nop
mov byte [esp + ecx + 0x100], cl
mov eax, ecx
cdq
idiv ebx
movzx eax, byte [ebp + edx]
mov byte [esp + ecx], al
lea eax, [ecx + 1]
mov byte [esp + ecx + 0x101], al
cdq
idiv ebx
movzx eax, byte [ebp + edx]
mov byte [esp + ecx + 1], al
add ecx, 2
cmp ecx, 0x100
jne 0x4012f0
mov eax, 1
xor ecx, ecx
nop dword [eax]
movzx edx, byte [esp + eax + 0xff]
add cl, dl
add cl, byte [esp + eax - 1]
movzx ebx, cl
mov dh, byte [esp + ebx + 0x100]
mov byte [esp + eax + 0xff], dh
mov byte [esp + ebx + 0x100], dl
movzx edx, byte [esp + eax + 0x100]
add cl, dl
add cl, byte [esp + eax]
movzx ebx, cl
mov dh, byte [esp + ebx + 0x100]
mov byte [esp + eax + 0x100], dh
mov byte [esp + ebx + 0x100], dl
add eax, 2
cmp eax, 0x101
jne 0x401330
cmp dword [esp + 0x21c], 0
jle 0x40142c
xor ebx, ebx
xor ebp, ebp
xor edi, edi
nop dword [eax]
push str.Soviet
push 0x4327d0
call fcn.00401450
add esp, 8
mov ecx, eax
push 1
call fcn.00401730
mov ecx, eax
push 0x3f800000
call fcn.004018b0
lea eax, [ebx + 1]
lea ecx, [ebx + 0x100]
test eax, eax
cmovns ecx, eax
and ecx, 0xffffff00
neg ecx
add ebx, ecx
inc ebx
movzx eax, byte [esp + ebx + 0x100]
mov ecx, edi
add cl, al
mov edi, ecx
movzx ecx, cl
movzx edx, byte [esp + ecx + 0x100]
mov byte [esp + ebx + 0x100], dl
mov byte [esp + ecx + 0x100], al
add al, byte [esp + ebx + 0x100]
movzx eax, al
movzx eax, byte [esp + eax + 0x100]
xor byte [esi + ebp], al
mov eax, dword [esp + 0x21c]
inc ebp
cmp eax, ebp
jne 0x4013a0
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00406623
add esp, 0x204
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401ed0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
sub esp, 0x58
mov eax, dword [0x431880]
xor eax, esp
mov dword [esp + 0x54], eax
mov byte [esp + 0x50], 0
mov dword [esp + 0x4c], 0x6f77494f
mov dword [esp + 0x48], 0x20697541
mov dword [esp + 0x44], 0x786e6e5a
xorps xmm0, xmm0
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0x401e60
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x44]
mov dword [esp + 0x40], esi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x401fd4
mov eax, dword [esp + 0x2c]
sub esp, 0x30
mov dword [esp + 0x28], eax
movaps xmm0, xmmword [0x427030]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 4], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 8], str.Window
mov dword [esp], 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
je 0x401fd4
mov esi, dword [esp + 0x64]
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp], xmm0
push 0x42c37a
push 0x432890
call fcn.00401ff0
add esp, 8
push dword [esi]
call fcn.00401b00
add esp, 4
mov eax, esp
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401fe6
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00406623
xor eax, eax
add esp, 0x58
pop esi
ret
push 1
call fcn.0040fb91
int3

Function at 0x4068f4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x406929
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x406926
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x406932
add edx, 0x28
cmp edx, esi
jne 0x406914
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40692f
Function at 0x407e37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], esi
test eax, eax
jg 0x407e5c
jl 0x407e53
test ebx, ebx
jne 0x407e5c
xor eax, eax
xor edx, edx
jmp 0x407f19
cmp dword [esi + 0x38], 0
je 0x407e71
push eax
push ebx
push dword [ebp + 8]
call fcn.0040779a
jmp 0x407f19
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x407eb4
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x407eb4
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.0040cb60
mov ecx, dword [ebp - 8]
sub edi, esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x407eba
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x407f0e
mov ecx, esi
call fcn.0040834d
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x407ef9
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.0041371b
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x407f0e
jmp 0x407ecc
test edx, edx
je 0x407f0e
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0041371b
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub ebx, edi
mov eax, ebx
sbb edx, 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a2fe
Capabilities:
Parse pe header

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

Function at 0x415fd0
Capabilities:
Parse pe header

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

Function at 0x416ead
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429da8
push 0x429da0
push str.FlsAlloc
push 0x1f
call fcn.004172c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416ee1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f86c]
call esi
jmp 0x416ee7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416f2b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429db8
push 0x429db0
push str.FlsGetValue
push 0x21
call fcn.004172c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416f62
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f86c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x416f6a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429dc0
push 0x429db8
push str.FlsSetValue
push 0x22
call fcn.004172c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416fa4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42f86c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41b558
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x431880]
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.00416513
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.00416513
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 0x41b5cf
cmp word [ecx], dx
je 0x41b5cf
mov eax, dword [0x42a234]
push edi
dec eax
push eax
push 0x42a120
call fcn.0041b748
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41b642
cmp word [eax], dx
je 0x41b642
mov eax, dword [edi]
test eax, eax
je 0x41b5f3
cmp word [eax], dx
je 0x41b5f3
lea eax, [ebp - 0x10]
push eax
call fcn.0041b7a9
jmp 0x41b5fc
lea eax, [ebp - 0x10]
push eax
call fcn.0041ba97
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41b66c
mov eax, dword [0x42a11c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x429e10
call fcn.0041b748
add esp, 0xc
test al, al
je 0x41b66c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41b637
cmp word [eax], di
je 0x41b637
lea eax, [ebp - 0x10]
push eax
call fcn.0041b7a9
pop ecx
jmp 0x41b66e
lea eax, [ebp - 0x10]
push eax
call fcn.0041ba97
jmp 0x41b634
mov eax, dword [edi]
test eax, eax
je 0x41b659
cmp word [eax], dx
je 0x41b659
lea eax, [ebp - 0x10]
push eax
call fcn.0041bbcb
pop ecx
jmp 0x41b66c
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 0x41b737
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041bcbd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41b737
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41b737
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41b737
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41b6c4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00417107
test ebx, ebx
je 0x41b732
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00417107
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b737
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 0x41b737
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00423659
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41b739
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406623
leave
ret
Function at 0x41bdc3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00416513
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 0x41be32
cmp esi, dword [ebp - 4]
je 0x41be2d
cmp dword [ebp + 0xc], 0
je 0x41be2d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41be0a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041be8c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41be34
xor eax, eax
inc eax
jmp 0x41be34
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41cecc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ab00
mov eax, dword [0x431880]
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.004199c0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41cf0e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d06a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004232d0
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 + 0x4332c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041cc74
mov ecx, dword [esi*4 + 0x4332c0]
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 0x41d063
cmp eax, dword [ecx + edi + 0x24]
jne 0x41d063
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 0x41d063
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cc74
add esp, 0x14
test edx, edx
jl 0x41d063
jg 0x41cfd9
test eax, eax
jb 0x41d063
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d063
jl 0x41cff3
cmp dword [ebp - 0x1008], eax
ja 0x41d063
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d011
test ebx, ebx
je 0x41d04a
cmp ecx, edi
jae 0x41d04a
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d02b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d037
cmp byte [ecx + 1], 0xa
jne 0x41d037
inc ecx
jmp 0x41d037
movzx eax, al
movsx eax, byte [eax + 0x4321f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d011
cmp edx, ebx
jne 0x41d011
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d068
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406623
leave
ret
Function at 0x41d472
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 0x41d50f
push ebx
push esi
call fcn.0041d512
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.004163d1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d4bc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d50e
push edi
push eax
call fcn.004162c1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d4dc
call fcn.00416287
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d50d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004163d1
add esp, 0x20
test eax, eax
jne 0x41d4fb
push edi
call fcn.00416287
jmp 0x41d503
push ebx
call fcn.00416287
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 0x41f793
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 + 0x4332c0]
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 0x41f7d3
cmp byte [ebx], 0xa
jne 0x41f7d3
or byte [edi + eax + 0x28], 4
jmp 0x41f7d8
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 0x41f8d7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41f8ba
inc eax
cmp dl, 0xd
je 0x41f804
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41f82a
cmp eax, ecx
jae 0x41f838
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 0x41f7ec
jmp 0x41f8d7
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 0x41f8b5
cmp dword [ebp - 0x10], 0
je 0x41f8b5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4332c0]
test byte [eax + edi + 0x28], 0x48
je 0x41f88f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f87a
mov byte [esi], dl
jmp 0x41f88b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4332c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f8d7
cmp byte [ebp - 1], 0xa
jne 0x41f89e
cmp esi, ebx
jne 0x41f89e
mov byte [esi], 0xa
jmp 0x41f8d6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cc16
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f8d7
mov byte [esi], 0xd
jmp 0x41f8d6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4332c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f8d4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f8d7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret