joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00465519
test eax, eax
jne 0x46a1f1
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, 0x4a382c
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + edx - 0x100], 0x5c
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
lea edi, [ebp + edx - 0xff]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x100]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00465534
test eax, eax
jl 0x46a1f3
mov ecx, ebx
call fcn.0046552d
cmp eax, 0x100000
jbe 0x46a1f1
mov ecx, ebx
call fcn.0046572d
lea eax, [ebp - 0x100]
mov ecx, ebx
push eax
call fcn.00465534
test eax, eax
jl 0x46a1f3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46f049
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4eb328
cmp edx, dword [eax]
je 0x46f06b
add eax, 8
inc ecx
cmp eax, 0x4eb3b8
jl 0x46f05c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4eb328]
jne 0x46f199
mov eax, dword [0xfde3e8]
cmp eax, 1
je 0x46f173
test eax, eax
jne 0x46f09c
cmp dword [0x4eb160], 1
je 0x46f173
cmp edx, 0xfc
je 0x46f199
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46f0d3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00472530
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0046de50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x46f116
lea eax, [ebp - 0x1a4]
push eax
call fcn.0046de50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a3c70
push edi
call fcn.0046af30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00472530
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00472540
lea eax, [ebp - 0xa0]
push 0x4a3c50
push eax
call fcn.00472540
push dword [esi + 0x4eb32c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00472540
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00473c6d
add esp, 0x2c
pop edi
jmp 0x46f199
lea eax, [ebp + 8]
lea esi, [esi + 0x4eb32c]
push 0
push eax
push dword [esi]
call fcn.0046de50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4029e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425520
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x44e040]
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.00408fd8
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00408331
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00402980
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 0x403140
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42560b
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x44fd9c], 0
je 0x40317f
mov al, 1
jmp 0x40337d
push 0x118
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], 0x11c
push 0
push eax
call fcn.0040acd0
xorps xmm0, xmm0
mov dword [ebp - 0x154], 0
add esp, 0xc
movq qword [ebp - 0x150], xmm0
mov dword [ebp - 0x148], 0
xor eax, eax
mov word [ebp - 0x144], 0
nop dword [eax]
mov cl, byte [eax + str.RtlGetVersion]
xor cl, 7
mov byte [ebp + eax - 0x150], cl
inc eax
cmp eax, 0xd
jb 0x4031d0
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x140]
movq xmm0, qword [ebp - 0x150]
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x143], 0
movzx eax, word [ebp - 0x144]
push 0x528b0207
movq qword [ebp - 0x140], xmm0
mov word [ebp - 0x134], ax
call fcn.00402fe0
add esp, 4
mov dword [ebp - 4], 0
lea esi, [ebp - 0x184]
cmp dword [ebp - 0x170], 0xf
lea edx, [ebp - 0x14c]
mov dword [ebp - 0x140], 0x6b637369
lea ecx, [ebp - 0x16c]
cmova esi, dword [ebp - 0x184]
mov dword [ebp - 0x13c], 0x6b63296b
movq xmm0, qword [ebp - 0x140]
mov word [ebp - 0x138], 0x6b
movzx eax, word [ebp - 0x138]
push 0x528b0207
movq qword [ebp - 0x14c], xmm0
mov word [ebp - 0x144], ax
call fcn.00402fe0
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x158], 0xf
lea ecx, [ebp - 0x154]
push esi
cmova eax, dword [ebp - 0x16c]
push eax
call fcn.00404b60
lea ecx, [ebp - 0x130]
push ecx
call eax
mov ecx, dword [ebp - 0x158]
test eax, eax
sete al
mov byte [0x44fd9c], al
cmp ecx, 0xf
jbe 0x403316
mov edx, dword [ebp - 0x16c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403307
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403398
push ecx
push edx
call fcn.0040900d
mov al, byte [0x44fd9c]
add esp, 8
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0xf
mov byte [ebp - 0x16c], 0
cmp ecx, 0xf
jbe 0x40336c
mov edx, dword [ebp - 0x184]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40335d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403398
push ecx
push edx
call fcn.0040900d
mov al, byte [0x44fd9c]
add esp, 8
test al, al
je 0x40337d
mov ecx, 0x47
lea esi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408fc5
mov esp, ebp
pop ebp
ret
call fcn.0040fe67
int3
Function at 0x404fb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 8], ecx
mov esi, 0x811c9dc5
mov edx, dword [eax + 0xc]
xor ecx, ecx
mov ebx, dword [eax + 8]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], edi
test edx, edx
je 0x404fea
movzx eax, byte [ebx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x404fd6
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [eax]
mov edx, 0x811c9dc5
mov dword [ebp - 4], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x405016
mov edi, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x405002
mov edi, dword [ebp - 0xc]
lea eax, [esi + esi]
mov esi, dword [ebp - 8]
xor eax, edx
mov ecx, esi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.004055e0
mov eax, dword [eax + 4]
test eax, eax
jne 0x405037
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4069a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, 0x1fffffff
mov esi, 1
push edi
mov edi, ecx
bsr ecx, eax
mov eax, esi
mov dword [ebp - 4], edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x406aec
lea eax, [ecx - 1]
mov ebx, dword [edi + 4]
or eax, esi
mov dword [ebp - 0xc], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00404e30
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x406ac7
mov eax, ecx
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
movzx edx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, edx
movzx edx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, edx
imul edx, esi, 0x1000193
mov esi, dword [edi + 0x18]
and esi, edx
mov edx, dword [edi + 0xc]
lea ebx, [edx + esi*8]
mov esi, dword [ebx]
mov dword [ebp - 8], ebx
cmp esi, dword [ebp - 0xc]
jne 0x406a54
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x406abc
mov edx, dword [ebx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x406a8b
mov edx, dword [edx]
mov dword [ebp - 0x10], edx
cmp edx, eax
je 0x406a86
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0x10]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp - 8]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x406ab9
cmp esi, edx
je 0x406a9c
nop
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x406ad0
cmp esi, edx
jne 0x406a90
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov edi, dword [ebp - 4]
mov eax, ecx
cmp ecx, dword [ebp - 0xc]
jne 0x406a02
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x406ab9
push str.invalid_hash_bucket_count
call fcn.00407545
int3
Function at 0x407fff
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 0x408024
jl 0x40801b
test ebx, ebx
jne 0x408024
xor eax, eax
xor edx, edx
jmp 0x4080e1
cmp dword [esi + 0x38], 0
je 0x408039
push eax
push ebx
push dword [ebp + 8]
call fcn.00402320
jmp 0x4080e1
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40807c
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x40807c
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.0040a6e0
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 0x408082
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [esi + 0x4c], 0
je 0x4080d6
mov ecx, esi
call fcn.0040795d
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x4080c1
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.00410bf4
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 0x4080d6
jmp 0x408094
test edx, edx
je 0x4080d6
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.00410bf4
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 0x40911e
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 0x409153
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x409150
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40915c
add edx, 0x28
cmp edx, esi
jne 0x40913e
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x409159

Function at 0x409e3a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409e79
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409e79
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409e79
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409e79
cmp dword [ecx + 0x74], 0xe
jbe 0x409e79
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41a0eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040a0a0
mov eax, dword [0x44e040]
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.00416d37
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a12d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a2a4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424ba0
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 + 0x44faf0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b131
mov ecx, dword [esi*4 + 0x44faf0]
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 0x41a29d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41a29d
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 0x41a29d
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b131
add esp, 0x14
cmp edx, esi
jl 0x41a29d
jg 0x41a1f8
cmp eax, esi
jb 0x41a29d
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x41a29d
jl 0x41a21a
cmp dword [ebp - 0x1008], eax
ja 0x41a29d
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 0x41a23f
cmp ebx, esi
je 0x41a284
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x41a284
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a265
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a271
cmp byte [ecx + 1], 0xa
jne 0x41a271
inc ecx
jmp 0x41a271
movzx eax, al
movsx eax, byte [eax + 0x44e480]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a24b
cmp edx, ebx
jne 0x41a24b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x41a2a2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408fc5
leave
ret
Function at 0x41a523
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 0x41a53d
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 0x41a554
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x41a5ac
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0041db4d
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x41a5ac
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 0x41a5ac
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41a5ac
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41a5a6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x41a5a8
xor bl, bl
mov al, bl
jmp 0x41a5ae
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x41a5bd
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 + 0x44faf0]
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 0x41a5ff
cmp byte [ebx], 0xa
jne 0x41a5ff
or byte [edi + eax + 0x28], 4
jmp 0x41a604
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41a707
mov cl, byte [eax]
cmp cl, 0x1a
je 0x41a6e2
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x41a633
mov eax, dword [ebp - 8]
jmp 0x41a653
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x41a66f
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x41a64d
add eax, 2
mov cl, 0xa
jmp 0x41a650
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 0x41a615
jmp 0x41a707
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 0x41a6dd
cmp dword [ebp - 0x10], 0
je 0x41a6dd
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x44faf0]
test byte [eax + edi + 0x28], 0x48
je 0x41a6bc
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x41a6ac
mov byte [esi], 0xa
jmp 0x41a706
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x44faf0]
mov byte [eax + edi + 0x2a], cl
jmp 0x41a706
cmp byte [ebp - 1], 0xa
jne 0x41a6c6
cmp esi, ebx
je 0x41a6a7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b14f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a707
mov byte [esi], 0xd
jmp 0x41a706
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x44faf0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x41a704
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x41a707
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a710
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 + 0x44faf0]
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 0x41a754
push 0xa
pop esi
cmp word [ebx], si
jne 0x41a754
or byte [eax + edi + 0x28], 4
jmp 0x41a759
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 0x41a8c4
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 0x41a89c
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x41a7a6
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x41a7d0
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x41a7ef
push 0xa
pop ebx
cmp word [edx], bx
jne 0x41a7bd
push ebx
add eax, 4
pop edx
jmp 0x41a7c5
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 0x41a76b
jmp 0x41a8c4
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 0x41a897
cmp dword [ebp - 0x14], 0
je 0x41a897
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x44faf0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x41a873
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x41a83b
mov word [esi], ax
jmp 0x41a8c1
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 + 0x44faf0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x44faf0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x44faf0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x41a8c1
cmp word [ebp - 4], ax
jne 0x41a87d
cmp esi, ebx
je 0x41a833
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b14f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41a8c4
push 0xd
pop eax
jmp 0x41a833
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x44faf0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x41a8be
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x41a8c4
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 0x41d236
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 0x41d2d3
push ebx
push esi
call fcn.0041d1ff
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.00417734
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41d280
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d2d2
push edi
push eax
call fcn.00415a40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41d2a0
call fcn.004159f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d2d1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417734
add esp, 0x20
test eax, eax
jne 0x41d2bf
push edi
call fcn.004159f0
jmp 0x41d2c7
push ebx
call fcn.004159f0
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 0x41fb46
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00417280
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 0x41fbb5
cmp esi, dword [ebp - 4]
je 0x41fbb0
cmp dword [ebp + 0xc], 0
je 0x41fbb0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41fb8d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041f69b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41fbb7
xor eax, eax
inc eax
jmp 0x41fbb7
xor eax, eax
pop edi
pop esi
leave
ret