joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4690e4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4690fb
add esp, 0xfffffff0
call fcn.00404860
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f128
mov eax, dword [0x4988f4]
cmp word [eax + 2], 0
jne 0x469123
mov eax, dword [0x4988f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046ae44
mov eax, dword [0x4989bc]
cmp word [eax + 2], 0
jne 0x46913d
mov eax, dword [0x4989bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b050
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416e84]
call fcn.0040450c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416e84]
call fcn.0040450c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416e84]
call fcn.0040450c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4242cc]
call fcn.0042c5dc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4692f4
mov eax, dword [0x4987e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c9b0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46b714
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4987e4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e234
test eax, eax
je 0x469244
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a2dc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e268
test eax, eax
je 0x469258
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004055d8
mov byte [ebx + 0xd4], 0
push ebx
push 0x46a8b8
call fcn.004202b8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x498688]
cmp byte [eax], 0
jne 0x4692a9
mov eax, ebx
call fcn.00469438
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046b8f8
mov eax, ebx
call fcn.0046c45c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4692e9
call fcn.004048b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4696b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x469757
cmp dword [ebx + 0x94], 0
jne 0x469751
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x469640
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x469751
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x469717
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x469751
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419228
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x469726
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x469970
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x49dcd0]
cmp dword [eax + 0x30], 0
je 0x469acd
test bl, bl
jne 0x469a1e
cmp dword [esi + 0x9c], 0
jne 0x469a13
mov eax, esi
call fcn.0046c2d8
push eax
push 0x46989c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4699e4
mov eax, dword [0x49dcd0]
call fcn.0046c9b8
test al, al
je 0x4699e4
mov eax, dword [0x49dcf4]
call fcn.00406580
mov edi, eax
cmp edi, 0
jl 0x4699e4
push 0
mov eax, dword [0x49dcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4699ce
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x469a13
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419228
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4699f3
inc dword [esi + 0x9c]
jmp 0x469acd
cmp dword [esi + 0x9c], 0
jle 0x469acd
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x469acd
cmp dword [esi + 0x44], 0
je 0x469a79
mov eax, dword [0x49dcd0]
call fcn.0046c9b8
test al, al
je 0x469a79
mov eax, dword [0x49dcf4]
call fcn.00406580
mov edi, eax
cmp edi, 0
jl 0x469a79
push 5
mov eax, dword [0x49dcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x469a63
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x469aa8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00419228
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x469a88
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x49dcf4
mov ecx, 1
mov edx, dword [0x46987c]
call fcn.00406734
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46a5b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46a61e
mov eax, ebx
call fcn.0046c9b8
test al, al
jne 0x46a61e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405458
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x46a60b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46a62b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004053bc
jmp 0x46a62b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004053bc
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46badc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46bb4a
mov eax, esi
call fcn.00453f58
test al, al
je 0x46bb4a
mov eax, dword [ebx + 0x84]
call fcn.00453bb8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46bb4a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46bb3e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00453bb8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044b9f4
jmp 0x46bb4a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046b918
pop esi
pop ebx
ret
Function at 0x46dee4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4082b0]
call fcn.00405e80
xor eax, eax
push ebp
push 0x46e085
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4979c4], 0
jne 0x46df3f
mov ecx, dword [0x49869c]
mov dl, 1
mov eax, dword [0x408894]
call fcn.0040d490
call fcn.00404db0
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403ae0
mov eax, ebx
call fcn.00405d50
mov dword [ebp - 0x24], eax
mov esi, 0x46e094
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406e18
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405d60
test eax, eax
jle 0x46e028
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46e014
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004055d8
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46dfba
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004055f0
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x46dfd0
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004055f0
mov eax, dword [ebp - 0x54]
call fcn.004057f8
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.004055d8
mov eax, dword [ebp - 0x58]
call fcn.004057f8
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46e016
xor eax, eax
test al, al
je 0x46e021
mov ebx, 0x15
jmp 0x46e02d
mov ebx, 0x10
jmp 0x46e02d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4979c4]
call fcn.0046dd64
mov eax, dword [ebp - 4]
call fcn.0046dd64
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e08c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.0040538c
lea eax, [ebp - 0xc]
mov edx, dword [0x4082b0]
call fcn.00405f50
ret
Function at 0x480ba0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x480bce
mov eax, ebx
call fcn.00481654
cmp dword [ebx + 0x40], 0
je 0x480bc7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x480c3f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x480c31
cmp dword [ebx + 8], 0
je 0x480bf0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x480c02
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x480c31
cmp dword [ebx + 8], 0
je 0x480be3
cmp eax, 3
je 0x480c15
dec eax
jne 0x480be3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x480be3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x480be3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x480c5d
cmp dword [ebx + 0x14], 0xcc
je 0x480c5d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00480c68
pop ebx
ret
Function at 0x408835
Capabilities:
Parse pe header

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

Function at 0x416f55
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a0e8
push 0x42a0e0
push str.FlsAlloc
push 0x1f
call fcn.00416dc0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416f89
push dword [ebp + 8]
mov ecx, esi
call dword [0x42615c]
call esi
jmp 0x416f8f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416fd4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a0f8
push 0x42a0f0
push str.FlsGetValue
push 0x21
call fcn.00416dc0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41700b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42615c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x417013
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42a100
push 0x42a0f8
push str.FlsSetValue
push 0x22
call fcn.00416dc0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41704d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42615c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41942a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408bb0
mov eax, dword [0x435014]
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.0041570a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41946c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4195c8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004245d0
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 + 0x4368f0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041984f
mov ecx, dword [esi*4 + 0x4368f0]
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 0x4195c1
cmp eax, dword [ecx + edi + 0x24]
jne 0x4195c1
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 0x4195c1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041984f
add esp, 0x14
test edx, edx
jl 0x4195c1
jg 0x419537
test eax, eax
jb 0x4195c1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4195c1
jl 0x419551
cmp dword [ebp - 0x1008], eax
ja 0x4195c1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41956f
test ebx, ebx
je 0x4195a8
cmp ecx, edi
jae 0x4195a8
mov al, byte [ecx]
cmp al, 0xd
jne 0x419589
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419595
cmp byte [ecx + 1], 0xa
jne 0x419595
inc ecx
jmp 0x419595
movzx eax, al
movsx eax, byte [eax + 0x435950]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41956f
cmp edx, ebx
jne 0x41956f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4195c6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407fd1
leave
ret
Function at 0x41cadf
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 0x41cb7c
push ebx
push esi
call fcn.0041caa8
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.0041b79a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cb29
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cb7b
push edi
push eax
call fcn.00414799
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cb49
call fcn.0041475f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cb7a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b79a
add esp, 0x20
test eax, eax
jne 0x41cb68
push edi
call fcn.0041475f
jmp 0x41cb70
push ebx
call fcn.0041475f
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 0x41f1a9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00415bd8
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 0x41f218
cmp esi, dword [ebp - 4]
je 0x41f213
cmp dword [ebp + 0xc], 0
je 0x41f213
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41f1f0
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041ecfb
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41f21a
xor eax, eax
inc eax
jmp 0x41f21a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41f27f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x435014]
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.00415bd8
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.00415bd8
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 0x41f2f6
cmp word [ecx], dx
je 0x41f2f6
mov eax, dword [0x42a714]
push edi
dec eax
push eax
push 0x42a600
call fcn.0041f21e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41f369
cmp word [eax], dx
je 0x41f369
mov eax, dword [edi]
test eax, eax
je 0x41f31a
cmp word [eax], dx
je 0x41f31a
lea eax, [ebp - 0x10]
push eax
call fcn.0041ec01
jmp 0x41f323
lea eax, [ebp - 0x10]
push eax
call fcn.0041ec9c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41f393
mov eax, dword [0x42a5fc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42a2f0
call fcn.0041f21e
add esp, 0xc
test al, al
je 0x41f393
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41f35e
cmp word [eax], di
je 0x41f35e
lea eax, [ebp - 0x10]
push eax
call fcn.0041ec01
pop ecx
jmp 0x41f395
lea eax, [ebp - 0x10]
push eax
call fcn.0041ec9c
jmp 0x41f35b
mov eax, dword [edi]
test eax, eax
je 0x41f380
cmp word [eax], dx
je 0x41f380
lea eax, [ebp - 0x10]
push eax
call fcn.0041ebb6
pop ecx
jmp 0x41f393
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 0x41f45e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041f0a3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41f45e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41f45e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41f45e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f3eb
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00417153
test ebx, ebx
je 0x41f459
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00417153
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f45e
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 0x41f45e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00423397
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41f460
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407fd1
leave
ret
Function at 0x42170b
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 + 0x4368f0]
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 0x42174b
cmp byte [ebx], 0xa
jne 0x42174b
or byte [edi + eax + 0x28], 4
jmp 0x421750
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 0x42184f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x421832
inc eax
cmp dl, 0xd
je 0x42177c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4217a2
cmp eax, ecx
jae 0x4217b0
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 0x421764
jmp 0x42184f
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 0x42182d
cmp dword [ebp - 0x10], 0
je 0x42182d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4368f0]
test byte [eax + edi + 0x28], 0x48
je 0x421807
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4217f2
mov byte [esi], dl
jmp 0x421803
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4368f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42184f
cmp byte [ebp - 1], 0xa
jne 0x421816
cmp esi, ebx
jne 0x421816
mov byte [esi], 0xa
jmp 0x42184e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041986d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42184f
mov byte [esi], 0xd
jmp 0x42184e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4368f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42184c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42184f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret