joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 8], 0x82858487
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x43d5fd
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0xc1]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x2c7950c1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov ecx, eax
xor ecx, 0xb8
and eax, 0x38
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x43d5b0
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [0x449d18]
test edx, edx
je 0x43d658
mov ecx, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x449d1c]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x3bebd150
je 0x43d630
inc edi
cmp edx, edi
jne 0x43d620
jmp 0x43d658
mov edx, dword [ebx + edi*8 + 4]
cmp edx, eax
je 0x43d658
lea eax, [esp + 8]
lea edi, [esp + 0x24]
push 5
push 0x18
push eax
push edi
push ecx
push 5
push dword [0x449d20]
push edx
call fcn.0043ab10
add esp, 0x20
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x43d665
mov edx, dword [esp + 0x10]
mov dword [esi], edx
test ecx, ecx
je 0x43d671
cmp byte [esp + 0x1d], 0
setne byte [ecx]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43d680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 8], 0x82858487
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x43d708
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0xc1]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x2c7950c1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
xor ecx, 0xb8
and eax, 0x38
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x43d6c0
mov eax, dword [esp + 8]
mov edi, dword [0x449d18]
test edi, edi
je 0x43d76d
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [0x449d1c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + ebx*8], 0xb0852ef6
je 0x43d740
inc ebx
cmp edi, ebx
jne 0x43d730
jmp 0x43d76d
mov edi, dword [esi + ebx*8 + 4]
cmp edi, eax
je 0x43d76d
lea eax, [esp + 0x1c]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [ebp + 8]
push 9
push dword [0x449d20]
push edi
call fcn.0043ab10
add esp, 0x30
mov edi, dword [ebp + 0x14]
cmp eax, 0x103
jne 0x43d858
mov dword [esp + 8], 0x82858487
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x43d7fb
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0xc1]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x2c7950c1
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, eax
xor ecx, 0xb8
and eax, 0x38
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x43d7b0
mov eax, dword [esp + 8]
mov ecx, dword [0x449d18]
test ecx, ecx
je 0x43d850
xor edx, edx
mov esi, dword [0x449d1c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xb33e16a3
je 0x43d830
inc edx
cmp ecx, edx
jne 0x43d820
jmp 0x43d850
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43d850
push 0
push 0
push dword [ebp + 8]
push 3
push dword [0x449d20]
push ecx
call fcn.0043ab10
add esp, 0x18
test eax, eax
js 0x43d858
mov eax, dword [esp + 0x1c]
test edi, edi
je 0x43d86b
xor ecx, ecx
cmp eax, 0xc0000011
je 0x43d869
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43d880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 8], 0x82858487
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x43d908
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0xc1]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x2c7950c1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
xor ecx, 0xb8
and eax, 0x38
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x43d8c0
mov eax, dword [esp + 8]
mov edi, dword [0x449d18]
test edi, edi
je 0x43d96d
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [0x449d1c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + ebx*8], 0x58c2bab5
je 0x43d940
inc ebx
cmp edi, ebx
jne 0x43d930
jmp 0x43d96d
mov edi, dword [esi + ebx*8 + 4]
cmp edi, eax
je 0x43d96d
lea eax, [esp + 0x1c]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [ebp + 8]
push 9
push dword [0x449d20]
push edi
call fcn.0043ab10
add esp, 0x30
mov edi, dword [ebp + 0x14]
cmp eax, 0x103
jne 0x43da58
mov dword [esp + 8], 0x82858487
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x43d9fb
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0xc1]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x2c7950c1
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, eax
xor ecx, 0xb8
and eax, 0x38
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x43d9b0
mov eax, dword [esp + 8]
mov ecx, dword [0x449d18]
test ecx, ecx
je 0x43da50
xor edx, edx
mov esi, dword [0x449d1c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xb33e16a3
je 0x43da30
inc edx
cmp ecx, edx
jne 0x43da20
jmp 0x43da50
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43da50
push 0
push 0
push dword [ebp + 8]
push 3
push dword [0x449d20]
push ecx
call fcn.0043ab10
add esp, 0x18
test eax, eax
js 0x43da58
mov eax, dword [esp + 0x1c]
test edi, edi
je 0x43da62
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43da70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x43da90
sar ebx, 1
mov ecx, ebx
and ecx, 2
mov edx, ebx
or ebx, 2
imul ebx, ecx
xor ecx, 2
and edx, 0xfffd
imul edx, ecx
lea ecx, [edx + ebx]
mov word [esp + 4], cx
lea ecx, [edx + ebx]
add ecx, 2
mov word [esp + 6], cx
mov dword [esp + 8], edi
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0x40
lea eax, [esp + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0x82858487
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x43db78
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0xc1]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x2c7950c1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, eax
xor ecx, 0xb8
and eax, 0x38
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x43db30
mov eax, dword [esp + 0x10]
mov edi, dword [0x449d18]
test edi, edi
je 0x43dbc5
xor ebx, ebx
mov ecx, dword [0x449d1c]
nop
nop
cmp dword [ecx + ebx*8], 0x850a6e6
je 0x43dba0
inc ebx
cmp edi, ebx
jne 0x43db90
jmp 0x43dbc5
mov ecx, dword [ecx + ebx*8 + 4]
cmp ecx, eax
je 0x43dbc5
lea eax, [esp + 0x24]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 4
push dword [0x449d20]
push ecx
call fcn.0043ab10
add esp, 0x1c
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x63d744c5
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x42484310
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x7d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007d81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7d807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d806a
add dl, dl
jne 0x7d8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d80dc
xor eax, eax
add dl, dl
jne 0x7d8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d817d
add dl, dl
jne 0x7d80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7d80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7d8075
mov eax, 1
add dl, dl
jne 0x7d80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d80e1
sub eax, ebx
mov ebx, 1
jne 0x7d8128
mov ecx, 1
add dl, dl
jne 0x7d810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7d813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8136
cmp eax, 0x7d00
jae 0x7d816d
cmp eax, 0x500
jb 0x7d8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
cmp eax, 0x7f
ja 0x7d8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7d819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7d8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4036de
Capabilities:
Terminate process

Disassembly:
jmp 0x45bcd4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45bce5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a92
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 0x403805
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a6421
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a6432
pop esi
ret
push ebx
push edi
push esi
call fcn.004a6308
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040f2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a645a
push ebx
push esi
push edi
call fcn.00405876
add esp, 0xc
push 0
call fcn.00406410
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40593e
Capabilities:
Parse pe header

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

Function at 0x448c7d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403864
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x448cbc
sub eax, 1
je 0x448cb7
sub eax, 1
je 0x448cb3
xor eax, eax
leave
ret
push 3
jmp 0x448cbe
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x491e28
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401db6
mov eax, dword [0x4d8100]
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.00405ffb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49ccf3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49ce4f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040614f
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 + 0x4dbb08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403355
mov ecx, dword [esi*4 + 0x4dbb08]
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 0x49ce48
cmp eax, dword [ecx + edi + 0x24]
jne 0x49ce48
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 0x49ce48
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403355
add esp, 0x14
test edx, edx
jl 0x49ce48
jg 0x49cdbe
test eax, eax
jb 0x49ce48
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49ce48
jl 0x49cdd8
cmp dword [ebp - 0x1008], eax
ja 0x49ce48
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49cdf6
test ebx, ebx
je 0x49ce2f
cmp ecx, edi
jae 0x49ce2f
mov al, byte [ecx]
cmp al, 0xd
jne 0x49ce10
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49ce1c
cmp byte [ecx + 1], 0xa
jne 0x49ce1c
inc ecx
jmp 0x49ce1c
movzx eax, al
movsx eax, byte [eax + 0x4d8458]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49cdf6
cmp edx, ebx
jne 0x49cdf6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49ce4d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403120
leave
ret
Function at 0x49d58e
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 + 0x4dbb08]
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 0x49d5ce
cmp byte [ebx], 0xa
jne 0x49d5ce
or byte [edi + eax + 0x28], 4
jmp 0x49d5d3
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 0x49d6d2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49d6b5
inc eax
cmp dl, 0xd
je 0x49d5ff
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49d625
cmp eax, ecx
jae 0x49d633
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 0x49d5e7
jmp 0x49d6d2
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 0x49d6b0
cmp dword [ebp - 0x10], 0
je 0x49d6b0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4dbb08]
test byte [eax + edi + 0x28], 0x48
je 0x49d68a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49d675
mov byte [esi], dl
jmp 0x49d686
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4dbb08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49d6d2
cmp byte [ebp - 1], 0xa
jne 0x49d699
cmp esi, ebx
jne 0x49d699
mov byte [esi], 0xa
jmp 0x49d6d1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49d6d2
mov byte [esi], 0xd
jmp 0x49d6d1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4dbb08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49d6cf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49d6d2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49d72e
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 + 0x4dbb08]
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 0x49d774
cmp word [ebx], dx
jne 0x49d774
or byte [eax + edi + 0x28], 4
jmp 0x49d779
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 0x49d8dc
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 0x49d8bc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49d7ba
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49d7f0
cmp eax, edx
jae 0x49d7fe
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 0x49d795
jmp 0x49d8dc
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 0x49d8b7
cmp dword [ebp - 0x18], 0
je 0x49d8b7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4dbb08]
test byte [eax + edi + 0x28], 0x48
je 0x49d88d
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 0x49d851
mov word [esi], cx
jmp 0x49d888
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4dbb08]
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 + 0x4dbb08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4dbb08]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49d8dc
pop eax
cmp word [ebp - 4], ax
jne 0x49d89d
cmp esi, ebx
jne 0x49d89d
mov word [esi], ax
jmp 0x49d8d9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49d8dc
push 0xd
pop eax
jmp 0x49d898
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4dbb08]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49d8d6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49d8dc
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 0x4a49d7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d8100]
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 0x4a4a22
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a4e8f
test al, al
jne 0x4a4a1c
sub edx, 2
cmp edx, edi
jne 0x4a4a02
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a4a44
lea eax, [edi + 2]
cmp edx, eax
je 0x4a4a44
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a45d0
add esp, 0x10
jmp 0x4a4b3e
push esi
lea ecx, [ebp - 0x255]
call fcn.004a4e8f
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 0x4a4a87
push dword [ebp - 0x25c]
jmp 0x4a4a34
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 0x4a4ac4
cmp word [ebp - 0x226], 0
je 0x4a4ae5
cmp word [ebp - 0x226], ax
jne 0x4a4ac4
cmp word [ebp - 0x224], 0
je 0x4a4ae5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a45d0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a4b31
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a4a9e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a4b19
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a4b3e
push 0x4a3fb8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056c3
add esp, 0x10
jmp 0x4a4b0e
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.00403120
leave
ret

Function at 0x4aa4a0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040442b
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 0x4aa50f
cmp esi, dword [ebp - 4]
je 0x4aa50a
cmp dword [ebp + 0xc], 0
je 0x4aa50a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4aa4e7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a9ec8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4aa511
xor eax, eax
inc eax
jmp 0x4aa511
xor eax, eax
pop edi
pop esi
leave
ret