joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006bdd0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
jne 0x1006bde9
cmp byte [edi + 0x2e1d], 0
je 0x1006be00
push 0xf67
push 0x10144408
push str._g.Initialized___g.SettingsLoaded
call fcn.100e369b
add esp, 0xc
or edx, 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0x1014443c
mov esi, 0x101444c1
mov al, 0x57
or ebx, 0xffffffff
nop dword [eax + eax]
cmp al, 0x23
jne 0x1006be2e
cmp byte [esi], al
jne 0x1006be2e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x1014a540]
test al, al
jne 0x1006be20
mov esi, dword [edi + 0x2e30]
not edx
mov ecx, dword [edi + 0x2e34]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0x10078f30
mov dword [ebp - 0x14], 0x10078fd0
mov dword [ebp - 0x10], 0x10079080
mov dword [ebp - 0xc], 0x10079150
mov dword [ebp - 8], 0x10079210
cmp esi, ecx
jne 0x1006bf1c
inc esi
test ecx, ecx
je 0x1006be93
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1006be98
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1006bf1c
mov eax, dword [0x10199bf4]
test eax, eax
je 0x1006beb0
inc dword [eax + 0x374]
push dword [0x10199bf8]
lea eax, [esi + esi*8]
shl eax, 2
push eax
call fcn.100664c0
mov ebx, eax
add esp, 8
mov eax, dword [edi + 0x2e38]
test eax, eax
je 0x1006bf10
mov ecx, dword [edi + 0x2e30]
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push eax
push ebx
call fcn.100dc770
mov ecx, dword [edi + 0x2e38]
add esp, 0xc
test ecx, ecx
je 0x1006bf01
mov eax, dword [0x10199bf4]
test eax, eax
je 0x1006bf01
dec dword [eax + 0x374]
push dword [0x10199bf8]
push ecx
call fcn.100664d0
add esp, 8
mov dword [edi + 0x2e38], ebx
mov dword [edi + 0x2e34], esi
mov eax, dword [edi + 0x2e30]
movups xmm0, xmmword [ebp - 0x24]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x2e38]
movups xmmword [eax + ecx*4], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x20], 0
inc dword [edi + 0x2e30]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1006d3d0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x1006d40d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x1006d3f3
cmp byte [esi], bl
jne 0x1006d3f3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x1014a540]
test bl, bl
jne 0x1006d3e4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.1006d360
Function at 0x10072b30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10199bf4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1a18]
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 4], ecx
test eax, eax
jg 0x10072b6e
push 0x58d
push 0x1017bf28
push str.Size___0
call fcn.100e369b
mov eax, dword [edi]
add esp, 0xc
mov ebx, dword [edi + 8]
lea edx, [ebp - 4]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x1014a540]
sub esi, 1
jne 0x10072b80
mov esi, dword [edi + 4]
not ebx
mov ecx, dword [edi]
cmp ecx, esi
jne 0x10072bc9
inc ecx
test esi, esi
je 0x10072bb5
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10072bba
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10079d80
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10078700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x10199bf4]
push edi
cmp byte [esi + 0x2e48], 0
je 0x1007879e
cmp dword [esi + 0x2e50], 0
lea edi, [esi + 0x2e54]
je 0x10078790
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10078749
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1007a090
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.10067b10
mov edx, dword [edi]
mov ecx, 0x10199867
push dword [esi + 0x2e50]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2e5c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call fcn.100e4cc4
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.10067b10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100f3e8d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100f3e0f

Function at 0x100f4566
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100f43dc

Function at 0x100facb2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100fa92f

Function at 0x16023a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x927000]
push edi
or ebp, 0xffffffff
jmp 0x16023c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16023c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16023b8
mov eax, 1
add ebx, ebx
jne 0x16023db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16023ec
jne 0x160240b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x160240b
dec eax
add ebx, ebx
jne 0x16023f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16023d0
add ebx, ebx
jne 0x1602407
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x160245d
xor ecx, ecx
sub eax, 3
jb 0x1602423
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1602492
sar eax, 1
mov ebp, eax
jmp 0x160242e
add ebx, ebx
jne 0x160242e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16023fc
inc ecx
add ebx, ebx
jne 0x160243c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16023fc
add ebx, ebx
jne 0x1602449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x160243e
jne 0x160245a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x160243e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x160247c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x160246e
jmp 0x16023be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x160247c
add edi, ecx
jmp 0x16023be
pop esi
mov edi, esi
mov ecx, 0x4545a2
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x16024b7
cmp byte [edi], 0xb
jne 0x160249c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x160249a
lea edi, [esi + 0x11c3000]
mov eax, dword [edi]
or eax, eax
je 0x1602508
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x121a350]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x121a4b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16024bd
mov ecx, edi
jns 0x16024ec
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 + 0x121a4bc]
or eax, eax
je 0x1602502
mov dword [ebx], eax
add ebx, 4
jmp 0x16024da
call dword [esi + 0x121a4c4]
mov ebp, dword [esi + 0x121a4c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x160253c
sub esp, 0xffffff80
jmp 0x855358
Function at 0x4035e4
Capabilities:
Terminate process

Disassembly:
jmp 0x459724
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x459735
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405902
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403706
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a2fd1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a2fe2
pop esi
ret
push ebx
push edi
push esi
call fcn.004a2eb8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a300a
push ebx
push esi
push edi
call fcn.004056f0
add esp, 0xc
push 0
call fcn.00406249
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4057ae
Capabilities:
Parse pe header

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

Function at 0x44660b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0040376a
mov eax, dword [eax + 0x14]
test eax, eax
je 0x44664e
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44664e
sub eax, 1
je 0x446649
sub eax, 1
je 0x446645
xor eax, eax
leave
ret
push 3
jmp 0x446650
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48d365
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48d3a4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48d3a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48d3a4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48d3a4
cmp dword [ecx + 0x74], 0xe
jbe 0x48d3a4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x496b0d
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 + 0x4d7858]
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 0x496b4d
cmp byte [ebx], 0xa
jne 0x496b4d
or byte [edi + eax + 0x28], 4
jmp 0x496b52
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 0x496c51
mov dl, byte [eax]
cmp dl, 0x1a
je 0x496c34
inc eax
cmp dl, 0xd
je 0x496b7e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x496ba4
cmp eax, ecx
jae 0x496bb2
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 0x496b66
jmp 0x496c51
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 0x496c2f
cmp dword [ebp - 0x10], 0
je 0x496c2f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d7858]
test byte [eax + edi + 0x28], 0x48
je 0x496c09
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x496bf4
mov byte [esi], dl
jmp 0x496c05
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d7858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x496c51
cmp byte [ebp - 1], 0xa
jne 0x496c18
cmp esi, ebx
jne 0x496c18
mov byte [esi], 0xa
jmp 0x496c50
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x496c51
mov byte [esi], 0xd
jmp 0x496c50
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d7858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x496c4e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x496c51
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x496cad
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 + 0x4d7858]
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 0x496cf3
cmp word [ebx], dx
jne 0x496cf3
or byte [eax + edi + 0x28], 4
jmp 0x496cf8
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 0x496e5b
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 0x496e3b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x496d39
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x496d6f
cmp eax, edx
jae 0x496d7d
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 0x496d14
jmp 0x496e5b
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 0x496e36
cmp dword [ebp - 0x18], 0
je 0x496e36
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d7858]
test byte [eax + edi + 0x28], 0x48
je 0x496e0c
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 0x496dd0
mov word [esi], cx
jmp 0x496e07
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d7858]
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 + 0x4d7858]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d7858]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x496e5b
pop eax
cmp word [ebp - 4], ax
jne 0x496e1c
cmp esi, ebx
jne 0x496e1c
mov word [esi], ax
jmp 0x496e58
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x496e5b
push 0xd
pop eax
jmp 0x496e17
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d7858]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x496e55
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x496e5b
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 0x49d9cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d8e
mov eax, dword [0x4d4040]
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.00405e57
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49da0e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49db6a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fa6
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 + 0x4d7858]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403283
mov ecx, dword [esi*4 + 0x4d7858]
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 0x49db63
cmp eax, dword [ecx + edi + 0x24]
jne 0x49db63
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 0x49db63
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403283
add esp, 0x14
test edx, edx
jl 0x49db63
jg 0x49dad9
test eax, eax
jb 0x49db63
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49db63
jl 0x49daf3
cmp dword [ebp - 0x1008], eax
ja 0x49db63
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49db11
test ebx, ebx
je 0x49db4a
cmp ecx, edi
jae 0x49db4a
mov al, byte [ecx]
cmp al, 0xd
jne 0x49db2b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49db37
cmp byte [ecx + 1], 0xa
jne 0x49db37
inc ecx
jmp 0x49db37
movzx eax, al
movsx eax, byte [eax + 0x4d4360]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49db11
cmp edx, ebx
jne 0x49db11
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49db68
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040305d
leave
ret
Function at 0x4a1587
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d4040]
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 0x4a15d2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a1a3f
test al, al
jne 0x4a15cc
sub edx, 2
cmp edx, edi
jne 0x4a15b2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a15f4
lea eax, [edi + 2]
cmp edx, eax
je 0x4a15f4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a1180
add esp, 0x10
jmp 0x4a16ee
push esi
lea ecx, [ebp - 0x255]
call fcn.004a1a3f
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 0x4a1637
push dword [ebp - 0x25c]
jmp 0x4a15e4
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 0x4a1674
cmp word [ebp - 0x226], 0
je 0x4a1695
cmp word [ebp - 0x226], ax
jne 0x4a1674
cmp word [ebp - 0x224], 0
je 0x4a1695
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a1180
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a16e1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a164e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a16c9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a16ee
push 0x4a0b68
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405547
add esp, 0x10
jmp 0x4a16be
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.0040305d
leave
ret

Function at 0x4a7050
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404309
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 0x4a70bf
cmp esi, dword [ebp - 4]
je 0x4a70ba
cmp dword [ebp + 0xc], 0
je 0x4a70ba
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a7097
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a6a78
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a70c1
xor eax, eax
inc eax
jmp 0x4a70c1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41f4d4
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4d1363]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
push 0x8000
push edi
mov esi, edx
call fcn.0042d945
pop ecx
push eax
call fcn.0042d766
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x45f274
lea ecx, [ebp - 0x18]
call fcn.00409ad3
mov ecx, esi
call fcn.00407510
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0041f6c9
push dword [ebp - 0x18]
push 0x49d158
push edi
call fcn.0041f574
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x45f294
lea ecx, [ebp - 0x18]
call fcn.0040988f
mov esi, dword [ebp - 8]
push edi
call fcn.0042dd89
push edi
call fcn.0042d945
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41f564
mov ebx, 0x4000
push ebx
push eax
call fcn.0042d766
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00471f06
push eax
push 1
call fcn.00471e96
push eax
call fcn.0042dba3
add esp, 0x10
mov esi, eax
jmp 0x41f54c
mov ecx, esi
call fcn.00407510
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
jmp 0x41f541