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

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002482d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
jmp 0x1002468a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10024691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10024680
mov eax, 1
add ebx, ebx
jne 0x100246a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10024698
jne 0x100246b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10024698
xor ecx, ecx
sub eax, 3
jb 0x100246c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002473a
mov ebp, eax
add ebx, ebx
jne 0x100246d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100246e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10024704
inc ecx
add ebx, ebx
jne 0x100246f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100246e5
jne 0x10024701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100246e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10024724
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10024715
jmp 0x10024686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10024724
add edi, ecx
jmp 0x10024686
pop esi
mov edi, esi
mov ecx, 0x6dd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10024742
cmp byte [edi], 0x11
jne 0x10024742
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 0x10024747
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x100247bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x24000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2403c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10024774
mov ecx, edi
jns 0x100247a3
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 + 0x24040]
or eax, eax
je 0x100247b9
mov dword [ebx], eax
add ebx, 4
jmp 0x10024791
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100247f0
cmp al, 0xef
ja 0x100247e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100247c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100247d2
mov ebp, dword [esi + 0x24044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x10024824
sub esp, 0xffffff80
jmp 0x100099dd
Function at 0x407e90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4098f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 4]
mov dword [esp + 0x114], 1
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407f1a
mov edx, dword [esp + 0x124]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x407f1a
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x12c]
call fcn.004084e8
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x120]
mov byte [esp + 0x114], 0
call fcn.004084dc
lea ecx, [esp + 0x124]
mov dword [esp + 0x114], 0xffffffff
call fcn.004084dc
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 0x10

Function at 0x407f70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov edx, dword [esp + 0x28]
mov esi, eax
add esi, edx
mov dword [esp + 0x28], esi
call edi
cmp eax, esi
jae 0x407ff2
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebp
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x407fe4
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call ebx
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
jne 0x407fc3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x30]
jb 0x407fa9
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 4

Function at 0x411014
Capabilities:
Terminate process

Disassembly:
jmp 0x413220
jmp fcn.00413260
cmp ecx, dword [0x41702c]
jne 0x41322a
repz ret
jmp 0x411082
Function at 0x406c60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x406c92
jl 0x406c85
test ecx, ecx
jne 0x406c92
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x406d6f
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x406cc2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x406cc4
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x406d18
jg 0x406cd5
test esi, esi
je 0x406d18
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x406ce9
jl 0x406ce3
cmp ecx, esi
jae 0x406ce9
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.0042c200
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x406d3c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x406d58
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x406ca7
jl 0x406d58
test ecx, ecx
jne 0x406ca7
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x406dad
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x406dad
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0042c200
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x406e17
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x406dd3
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x406e02
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00439e50
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x406e17
cmp edi, eax
ja 0x406de0
test edi, edi
je 0x406e17
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00439e50
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bed0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4532d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0042a826
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040fe2e
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0040be70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414c50
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x4703d8], 0
jne 0x414c5e
call fcn.004284a0
cmp byte [0x4703e1], 0
je 0x414c7c
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00428830
add esp, 0x10
ret
jmp fcn.00413000

Function at 0x415710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454120
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46c140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0041a720
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x415774
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x415785
push 0x48
push esi
call fcn.0042a856
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x42b8c5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b904
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b904
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b904
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b904
cmp dword [ecx + 0x74], 0xe
jbe 0x42b904
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x442211
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 0x44222b
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 0x442242
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x44229a
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00449c88
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x44229a
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 0x44229a
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x44229a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x442294
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x442296
xor bl, bl
mov al, bl
jmp 0x44229c
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x445be7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0042ba30
mov eax, dword [0x46c140]
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.00442022
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x445c29
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x445da0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004523f0
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 + 0x470b10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00446b4a
mov ecx, dword [esi*4 + 0x470b10]
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 0x445d99
cmp eax, dword [edi + ecx + 0x24]
jne 0x445d99
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 0x445d99
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00446b4a
add esp, 0x14
cmp edx, esi
jl 0x445d99
jg 0x445cf4
cmp eax, esi
jb 0x445d99
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x445d99
jl 0x445d16
cmp dword [ebp - 0x1008], eax
ja 0x445d99
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 0x445d3b
cmp ebx, esi
je 0x445d80
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x445d80
mov al, byte [ecx]
cmp al, 0xd
jne 0x445d61
lea eax, [edi - 1]
cmp ecx, eax
jae 0x445d6d
cmp byte [ecx + 1], 0xa
jne 0x445d6d
inc ecx
jmp 0x445d6d
movzx eax, al
movsx eax, byte [eax + 0x46c420]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x445d47
cmp edx, ebx
jne 0x445d47
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x445d9e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042a807
leave
ret
Function at 0x445fd6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x470b10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x446018
cmp byte [ebx], 0xa
jne 0x446018
or byte [edi + eax + 0x28], 4
jmp 0x44601d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x446120
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4460fb
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x44604c
mov eax, dword [ebp - 8]
jmp 0x44606c
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x446088
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x446066
add eax, 2
mov cl, 0xa
jmp 0x446069
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x44602e
jmp 0x446120
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 0x4460f6
cmp dword [ebp - 0x10], 0
je 0x4460f6
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x470b10]
test byte [eax + edi + 0x28], 0x48
je 0x4460d5
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4460c5
mov byte [esi], 0xa
jmp 0x44611f
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x470b10]
mov byte [eax + edi + 0x2a], cl
jmp 0x44611f
cmp byte [ebp - 1], 0xa
jne 0x4460df
cmp esi, ebx
je 0x4460c0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00446b68
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x446120
mov byte [esi], 0xd
jmp 0x44611f
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x470b10]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x44611d
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x446120
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x446129
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x470b10]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x44616d
push 0xa
pop esi
cmp word [ebx], si
jne 0x44616d
or byte [eax + edi + 0x28], 4
jmp 0x446172
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4462dd
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4462b5
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4461bf
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4461e9
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x446208
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4461d6
push ebx
add eax, 4
pop edx
jmp 0x4461de
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x446184
jmp 0x4462dd
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4462b0
cmp dword [ebp - 0x14], 0
je 0x4462b0
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x470b10]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x44628c
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x446254
mov word [esi], ax
jmp 0x4462da
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x470b10]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x470b10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x470b10]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4462da
cmp word [ebp - 4], ax
jne 0x446296
cmp esi, ebx
je 0x44624c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00446b68
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4462dd
push 0xd
pop eax
jmp 0x44624c
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x470b10]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4462d7
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4462dd
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4497d2
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 0x44986f
push ebx
push esi
call fcn.0044979b
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.00447c55
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44981c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44986e
push edi
push eax
call fcn.00443a80
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44983c
call fcn.00443690
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44986d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00447c55
add esp, 0x20
test eax, eax
jne 0x44985b
push edi
call fcn.00443690
jmp 0x449863
push ebx
call fcn.00443690
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 0x44bc81
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00442691
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 0x44bcf0
cmp esi, dword [ebp - 4]
je 0x44bceb
cmp dword [ebp + 0xc], 0
je 0x44bceb
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44bcc8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044b7d6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44bcf2
xor eax, eax
inc eax
jmp 0x44bcf2
xor eax, eax
pop edi
pop esi
leave
ret