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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
or ebp, 0xffffffff
jmp 0x435752
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x435748
mov eax, 1
add ebx, ebx
jne 0x43576b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435760
jne 0x43577c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435760
xor ecx, ecx
sub eax, 3
jb 0x435790
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x435802
mov ebp, eax
add ebx, ebx
jne 0x43579b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4357a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4357cc
inc ecx
add ebx, ebx
jne 0x4357b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4357ad
jne 0x4357c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4357ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4357ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4357dd
jmp 0x43574e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4357ec
add edi, ecx
jmp 0x43574e
pop esi
mov edi, esi
mov ecx, 0xa28
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43580a
cmp byte [edi], 0x13
jne 0x43580a
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 0x43580f
lea edi, [esi + 0x32000]
mov eax, dword [edi]
or eax, eax
je 0x43587e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x363cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x36408]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43583c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x36410]
or eax, eax
je 0x435878
mov dword [ebx], eax
add ebx, 4
jmp 0x435859
call dword [esi + 0x3640c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4358af
cmp al, 0xef
ja 0x4358a2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x435884
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x435891
mov ebp, dword [esi + 0x36414]
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 0x4358e3
sub esp, 0xffffff80
jmp 0x407a55
Function at 0x1001d7fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001d673
Function at 0x4125d2
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x4125ef
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4125e0
add dl, dl
jne 0x4125fa
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x412646
xor eax, eax
add dl, dl
jne 0x412607
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4126e3
add dl, dl
jne 0x412616
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x412621
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41262c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x412637
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x412641
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x4125e6
mov eax, 1
add dl, dl
jne 0x412654
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41265f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41264b
sub eax, 2
jne 0x41268e
mov ecx, 1
add dl, dl
jne 0x412674
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41267f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41266b
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4125e6
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4126a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4126b0
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41269c
cmp eax, 0x7d00
jae 0x4126d3
cmp eax, 0x500
jb 0x4126ce
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4125e6
cmp eax, 0x7f
ja 0x4126d6
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4125e6
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4126ff
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4125e6
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x410498
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestSaturate.exe_gMozillaPoisonSize], eax
call fcn.0040d6f9
pop ecx
mov ecx, dword [sym.TestSaturate.exe_gMozillaPoisonSize]
mov dword [sym.TestSaturate.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x4104d0
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSaturate.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x401e1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4a4fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x4800b8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
mov eax, 0x47fd28
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 8]
push eax
push 0x4a93b8
push 0x47fce4
lea eax, [ebp - 0xcc]
push 0x18
push eax
mov dword [ebp - 0xcc], 0x4800ac
mov dword [ebp - 0xc8], 0x480094
mov dword [ebp - 0xc4], 0x48008c
mov dword [ebp - 0xc0], 0x480078
mov dword [ebp - 0xbc], 0x480070
mov dword [ebp - 0xb8], 0x48005c
mov dword [ebp - 0xb4], 0x480054
mov dword [ebp - 0xb0], 0x48003c
mov dword [ebp - 0xac], 0x480038
mov dword [ebp - 0xa8], 0x480028
mov dword [ebp - 0xa4], 0x48001c
mov dword [ebp - 0xa0], 0x480004
mov dword [ebp - 0x9c], 0x47fff8
mov dword [ebp - 0x98], 0x47ffe0
mov dword [ebp - 0x94], 0x47ffd4
mov dword [ebp - 0x90], 0x47ffb8
mov dword [ebp - 0x8c], 0x47ffac
mov dword [ebp - 0x88], 0x47ff94
mov dword [ebp - 0x84], 0x47ff84
mov dword [ebp - 0x80], 0x47ff68
mov dword [ebp - 0x7c], 0x47ff54
mov dword [ebp - 0x78], 0x47ff3c
mov dword [ebp - 0x74], 0x47ff2c
mov dword [ebp - 0x70], 0x47ff10
mov dword [ebp - 0x6c], 0x47ff00
mov dword [ebp - 0x68], 0x47fee4
mov dword [ebp - 0x64], 0x47fed0
mov dword [ebp - 0x60], 0x47feb0
mov dword [ebp - 0x5c], 0x47fea4
mov dword [ebp - 0x58], 0x47fe8c
mov dword [ebp - 0x54], 0x47fe74
mov dword [ebp - 0x50], 0x47fe50
mov dword [ebp - 0x4c], 0x47fe40
mov dword [ebp - 0x44], 0x47fe2c
mov dword [ebp - 0x3c], 0x47fe20
mov dword [ebp - 0x38], 0x47fe08
mov dword [ebp - 0x34], 0x47fdf8
mov dword [ebp - 0x30], 0x47fddc
mov dword [ebp - 0x2c], 0x47fdcc
mov dword [ebp - 0x28], 0x47fdb0
mov dword [ebp - 0x24], 0x47fda4
mov dword [ebp - 0x20], 0x47fd8c
mov dword [ebp - 0x1c], 0x47fd80
mov dword [ebp - 0x18], 0x47fd68
mov dword [ebp - 0x14], 0x47fd5c
mov dword [ebp - 0x10], 0x47fd44
call fcn.00401da4
mov ecx, dword [ebp - 4]
add esp, 0x14
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0043cac0
leave
ret
Function at 0x405950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x405971
jl 0x405968
test edi, edi
jne 0x405971
xor eax, eax
xor edx, edx
jmp 0x405a32
cmp dword [ebx + 0x38], 0
je 0x405986
push eax
push edi
push dword [ebp + 8]
call fcn.00405a40
jmp 0x405a32
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4059cd
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4059cd
cmp eax, edi
jb 0x4059a7
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406fe0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4059d3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405a27
mov ecx, ebx
call fcn.004050c4
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x405a12
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040edb0
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405a27
jmp 0x4059e5
test edx, edx
je 0x405a27
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040edb0
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406e10
Capabilities:
Parse pe header

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

Function at 0x4155eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426808
push 0x426800
push str.FlsAlloc
push 0x1f
call fcn.00415475
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41561f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42214c]
call esi
jmp 0x415625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426818
push 0x426810
push str.FlsGetValue
push 0x21
call fcn.00415475
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4156a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x42214c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4156a8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426820
push 0x426818
push str.FlsSetValue
push 0x22
call fcn.00415475
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4156e2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42214c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4176df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406f80
mov eax, dword [0x42d018]
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.00414e6d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417721
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41787d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421090
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 + 0x42e9e8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004186dc
mov ecx, dword [esi*4 + 0x42e9e8]
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 0x417876
cmp eax, dword [ecx + edi + 0x24]
jne 0x417876
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 0x417876
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004186dc
add esp, 0x14
test edx, edx
jl 0x417876
jg 0x4177ec
test eax, eax
jb 0x417876
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417876
jl 0x417806
cmp dword [ebp - 0x1008], eax
ja 0x417876
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417824
test ebx, ebx
je 0x41785d
cmp ecx, edi
jae 0x41785d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41783e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41784a
cmp byte [ecx + 1], 0xa
jne 0x41784a
inc ecx
jmp 0x41784a
movzx eax, al
movsx eax, byte [eax + 0x42d2a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417824
cmp edx, ebx
jne 0x417824
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41787b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406175
leave
ret
Function at 0x417b74
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 + 0x42e9e8]
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 0x417bb4
cmp byte [ebx], 0xa
jne 0x417bb4
or byte [edi + eax + 0x28], 4
jmp 0x417bb9
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 0x417cb8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x417c9b
inc eax
cmp dl, 0xd
je 0x417be5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x417c0b
cmp eax, ecx
jae 0x417c19
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 0x417bcd
jmp 0x417cb8
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 0x417c96
cmp dword [ebp - 0x10], 0
je 0x417c96
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42e9e8]
test byte [eax + edi + 0x28], 0x48
je 0x417c70
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417c5b
mov byte [esi], dl
jmp 0x417c6c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42e9e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417cb8
cmp byte [ebp - 1], 0xa
jne 0x417c7f
cmp esi, ebx
jne 0x417c7f
mov byte [esi], 0xa
jmp 0x417cb7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004186fa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417cb8
mov byte [esi], 0xd
jmp 0x417cb7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42e9e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417cb5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417cb8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417cc1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42e9e8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417d07
cmp word [ebx], dx
jne 0x417d07
or byte [eax + edi + 0x28], 4
jmp 0x417d0c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x417e6f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x417e4f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x417d4d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417d83
cmp eax, edx
jae 0x417d91
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x417d28
jmp 0x417e6f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417e4a
cmp dword [ebp - 0x18], 0
je 0x417e4a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42e9e8]
test byte [eax + edi + 0x28], 0x48
je 0x417e20
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x417de4
mov word [esi], cx
jmp 0x417e1b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42e9e8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42e9e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42e9e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x417e6f
pop eax
cmp word [ebp - 4], ax
jne 0x417e30
cmp esi, ebx
jne 0x417e30
mov word [esi], ax
jmp 0x417e6c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004186fa
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x417e6f
push 0xd
pop eax
jmp 0x417e2b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42e9e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x417e69
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x417e6f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419184
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42d018]
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 0x4191cf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041931f
test al, al
jne 0x4191c9
sub edx, 2
cmp edx, edi
jne 0x4191af
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4191f1
lea eax, [edi + 2]
cmp edx, eax
je 0x4191f1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004190d0
add esp, 0x10
jmp 0x4192eb
push esi
lea ecx, [ebp - 0x255]
call fcn.0041931f
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 0x419234
push dword [ebp - 0x25c]
jmp 0x4191e1
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 0x419271
cmp word [ebp - 0x226], 0
je 0x419292
cmp word [ebp - 0x226], ax
jne 0x419271
cmp word [ebp - 0x224], 0
je 0x419292
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004190d0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4192de
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41924b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4192c6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4192eb
push 0x418f00
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041ef70
add esp, 0x10
jmp 0x4192bb
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.00406175
leave
ret

Function at 0x419bf7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x419c08
pop esi
ret
push ebx
push edi
push esi
call fcn.00419bc0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00414029
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x419c30
push ebx
push esi
push edi
call fcn.00406fe0
add esp, 0xc
push 0
call fcn.00413bf4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x41a000
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419c45

Function at 0x41c2ff
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412ea9
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 0x41c36e
cmp esi, dword [ebp - 4]
je 0x41c369
cmp dword [ebp + 0xc], 0
je 0x41c369
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41c346
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041be3c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41c370
xor eax, eax
inc eax
jmp 0x41c370
xor eax, eax
pop edi
pop esi
leave
ret