joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4321c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
jmp 0x4321da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4321e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4321d0
mov eax, 1
add ebx, ebx
jne 0x4321f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4321e8
jne 0x432204
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4321e8
xor ecx, ecx
sub eax, 3
jb 0x432218
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43228a
mov ebp, eax
add ebx, ebx
jne 0x432223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x432230
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x432254
inc ecx
add ebx, ebx
jne 0x432240
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x432235
jne 0x432251
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x432235
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x432274
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x432265
jmp 0x4321d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x432274
add edi, ecx
jmp 0x4321d6
pop esi
mov edi, esi
mov ecx, 0xa88
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x432292
cmp byte [edi], 0x12
jne 0x432292
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x432297
lea edi, [esi + 0x30000]
mov eax, dword [edi]
or eax, eax
je 0x43230f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x36c2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x36d0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4322c4
mov ecx, edi
jns 0x4322f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x36d14]
or eax, eax
je 0x432309
mov dword [ebx], eax
add ebx, 4
jmp 0x4322e1
call dword [esi + 0x36d10]
mov ebp, dword [esi + 0x36d18]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x432343
sub esp, 0xffffff80
jmp 0x41c35f

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00404530
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.kernel32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x4068b6
jmp 0x4068f5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x4068b3
cmp al, 0x20
je 0x4068b3
cmp al, 0x22
jne 0x4068d9
jmp 0x406944
cmp al, 0x20
lea esi, [esi]
je 0x4068e0
test al, al
je 0x4068f5
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x4068c7
movzx eax, byte [ebx]
cmp al, 0x20
jne 0x40695a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x4068e7
cmp al, 0x20
je 0x4068e7
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x406904
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401803
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
je 0x40694e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x406940
cmp al, 0x22
sete al
movzx eax, al
add ebx, eax
jmp 0x4068e0
cmp al, 9
je 0x4068e7
jmp 0x4068f5

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x7d45330
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x785b000]
push edi
jmp 0x7d4534a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7d45351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d45340
mov eax, 1
add ebx, ebx
jne 0x7d45363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7d45374
jne 0x7d45393
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d45393
dec eax
add ebx, ebx
jne 0x7d45380
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7d45358
add ebx, ebx
jne 0x7d4538f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7d453e5
xor ecx, ecx
sub eax, 3
jb 0x7d453ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7d4541a
sar eax, 1
mov ebp, eax
jmp 0x7d453b6
add ebx, ebx
jne 0x7d453b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d45384
inc ecx
add ebx, ebx
jne 0x7d453c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7d45384
add ebx, ebx
jne 0x7d453d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7d453c6
jne 0x7d453e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7d453c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7d45404
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7d453f6
jmp 0x7d45346
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7d45404
add edi, ecx
jmp 0x7d45346
pop esi
mov edi, esi
mov ecx, 0xaf2e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7d45422
cmp byte [edi], 0x7a
jne 0x7d45422
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7d45427
lea edi, [esi + 0x7942000]
mov eax, dword [edi]
or eax, eax
je 0x7d4549f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7947054]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x79471c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7d45454
mov ecx, edi
jns 0x7d45483
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x79471cc]
or eax, eax
je 0x7d45499
mov dword [ebx], eax
add ebx, 4
jmp 0x7d45471
call dword [esi + 0x79471c8]
mov ebp, dword [esi + 0x79471d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7d454d3
sub esp, 0xffffff80
jmp 0x691680
Function at 0x402f5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x402f87
mov ecx, dword [0x423778]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4168dc], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403064
cmp eax, esi
jl 0x40305e
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.00405b4e
test eax, eax
je 0x40304e
push dword [ebp + 8]
add dword [0x4168dc], 4
call fcn.00403064
mov ebx, eax
cmp ebx, esi
jl 0x40305c
cmp dword [ebp + 0x10], esi
jne 0x40302a
cmp dword [ebp + 8], esi
jle 0x40305c
mov esi, 0x4128d8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x402fec
mov eax, 0x4000
push eax
push esi
push dword [0x40901c]
mov dword [ebp - 4], eax
call fcn.00405b4e
test eax, eax
je 0x40304e
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405b7d
test eax, eax
je 0x403026
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4168dc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x402fdb
jmp 0x40305c
push 0xfffffffffffffffe
jmp 0x403050
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403035
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403053
push 0xfffffffffffffffd
pop eax
jmp 0x40305e
mov ebx, dword [ebp - 4]
add dword [0x4168dc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x405b05
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093c4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405b4a
test edi, edi
jne 0x405b10
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b44
Function at 0x40edd1
Capabilities:
Delete registry value

Disassembly:
push ebx
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40edd7
call fcn.00470d10
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00411000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00411000
mov edx, dword [esp + 0x30]
lea ecx, [esp + 8]
call fcn.00411000
push dword [esp]
call fcn.0040d58b
push dword [esp + 8]
mov edx, 0x55039e
pop ecx
call fcn.00411b60
je 0x40ee7b
cmp dword [0x18127c0], 0
je 0x40ee5f
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x18127d8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x18127a0]
push dword [0x18127bc]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x40ee79
lea eax, [esp + 0x10]
push eax
push dword [0x18127a0]
push dword [0x18127bc]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x40eee0
lea eax, [esp + 0x18]
push eax
push dword [0x18127bc]
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x18127c0], 0
je 0x40eec8
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x18127d8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x18127a0]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x40eee0
lea eax, [esp + 0x10]
push eax
push dword [0x18127a0]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x40ef14
mov eax, dword [esp + 4]
push eax
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegDeleteValueW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x40ef0c
mov dword [esp + 0x1c], 1
jmp 0x40ef14
mov dword [esp + 0x1c], 0
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [esp + 0x1c]
jmp 0x40ef25
push dword [esp + 8]
call fcn.00470d80
push dword [esp]
call fcn.00470d80
push dword [esp + 4]
call fcn.00470d80
add esp, 0x20
pop ebx
ret 0xc

Function at 0x415ef7
Capabilities:
Parse pe header

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

Function at 0x4189bd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x51cca0
push str.FlsAlloc
push 0x1f
call fcn.0041868f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4189f1
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4189f7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418a3b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x51ccc4
push str.FlsGetValue
push 0x21
call fcn.0041868f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418a72
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 0x41af2b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x180dddc]
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 0x41af76
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041b187
test al, al
jne 0x41af70
sub edx, 2
cmp edx, edi
jne 0x41af56
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41af98
lea eax, [edi + 2]
cmp edx, eax
je 0x41af98
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041abf2
add esp, 0x10
jmp 0x41b092
push esi
lea ecx, [ebp - 0x255]
call fcn.0041b187
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 0x41afdb
push dword [ebp - 0x25c]
jmp 0x41af88
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 0x41b018
cmp word [ebp - 0x226], 0
je 0x41b039
cmp word [ebp - 0x226], ax
jne 0x41b018
cmp word [ebp - 0x224], 0
je 0x41b039
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041abf2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41b085
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41aff2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41b06d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41b092
push 0x41a642
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00422650
add esp, 0x10
jmp 0x41b062
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.0041298f
leave
ret

Function at 0x41dd95
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041726b
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 0x41de04
cmp esi, dword [ebp - 4]
je 0x41ddff
cmp dword [ebp + 0xc], 0
je 0x41ddff
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41dddc
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041d8e7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41de06
xor eax, eax
inc eax
jmp 0x41de06
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41de6b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x180dddc]
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.0041726b
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.0041726b
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 0x41dee2
cmp word [ecx], dx
je 0x41dee2
mov eax, dword [0x51dfac]
push edi
dec eax
push eax
push 0x51de98
call fcn.0041de0a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41df55
cmp word [eax], dx
je 0x41df55
mov eax, dword [edi]
test eax, eax
je 0x41df06
cmp word [eax], dx
je 0x41df06
lea eax, [ebp - 0x10]
push eax
call fcn.0041d7ed
jmp 0x41df0f
lea eax, [ebp - 0x10]
push eax
call fcn.0041d888
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41df7f
mov eax, dword [0x51de94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x51db88
call fcn.0041de0a
add esp, 0xc
test al, al
je 0x41df7f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41df4a
cmp word [eax], di
je 0x41df4a
lea eax, [ebp - 0x10]
push eax
call fcn.0041d7ed
pop ecx
jmp 0x41df81
lea eax, [ebp - 0x10]
push eax
call fcn.0041d888
jmp 0x41df47
mov eax, dword [edi]
test eax, eax
je 0x41df6c
cmp word [eax], dx
je 0x41df6c
lea eax, [ebp - 0x10]
push eax
call fcn.0041d784
pop ecx
jmp 0x41df7f
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 0x41e04a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041dc8f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41e04a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41e04a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41e04a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41dfd7
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00418bba
test ebx, ebx
je 0x41e045
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00418bba
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e04a
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 0x41e04a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004249d2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41e04c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041298f
leave
ret
Function at 0x4268ae
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 + 0x1813bf0]
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 0x4268ee
cmp byte [ebx], 0xa
jne 0x4268ee
or byte [edi + eax + 0x28], 4
jmp 0x4268f3
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 0x4269f2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4269d5
inc eax
cmp dl, 0xd
je 0x42691f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x426945
cmp eax, ecx
jae 0x426953
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 0x426907
jmp 0x4269f2
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 0x4269d0
cmp dword [ebp - 0x10], 0
je 0x4269d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1813bf0]
test byte [eax + edi + 0x28], 0x48
je 0x4269aa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x426995
mov byte [esi], dl
jmp 0x4269a6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1813bf0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4269f2
cmp byte [ebp - 1], 0xa
jne 0x4269b9
cmp esi, ebx
jne 0x4269b9
mov byte [esi], 0xa
jmp 0x4269f1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004279a7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4269f2
mov byte [esi], 0xd
jmp 0x4269f1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1813bf0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4269ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4269f2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret