joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403550
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40357a
add eax, dword [0x472e18]
push edi
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033d2
cmp eax, edi
jl 0x403673
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp dword [ebp - 4], esi
jne 0x40366f
push dword [ebp + 8]
add dword [0x42f1e4], esi
call fcn.004033d2
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403672
cmp dword [ebp + 0x10], edi
jne 0x40363e
cmp dword [ebp + 8], edi
jle 0x40366a
mov esi, 0x42f1e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4035ee
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp edi, dword [ebp - 4]
jne 0x40366f
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40363a
cmp dword [ebp + 0x14], edi
jne 0x40363a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1e4], eax
cmp dword [ebp + 8], 0
jg 0x4035e1
jmp 0x40366a
push 0xfffffffffffffffe
jmp 0x403671
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403649
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
mov eax, dword [ebp - 4]
add dword [0x42f1e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403672
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x4050d2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00404d0f
push eax
push esi
push dword [ebp + 8]
call fcn.00404cc4
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00404d0f
push eax
push esi
push dword [ebp + 8]
call fcn.00404cc4
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00404cff
aas
hlt
Function at 0x40616a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
invalid
test eax, ebx
clc
invalid
invalid

Function at 0x406883
Capabilities:
Contain obfuscated stackstrings

Disassembly:
movsb byte es:[edi], byte [esi]
add byte [eax], al
add byte [eax - 0x78b5b], al
inc dword [eax]
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
invalid
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x403580
Capabilities:
Terminate process

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

Disassembly:
jmp 0x49ae31
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49ae42
pop esi
ret
push ebx
push edi
push esi
call fcn.0049ad18
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f44
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49ae6a
push ebx
push esi
push edi
call fcn.00405619
add esp, 0xc
push 0
call fcn.00406140
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4056d2
Capabilities:
Parse pe header

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

Function at 0x440549
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004036f7
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 0x440588
sub eax, 1
je 0x440583
sub eax, 1
je 0x44057f
xor eax, eax
leave
ret
push 3
jmp 0x44058a
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x486b9b
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7a
mov eax, dword [0x4cc040]
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.00405d58
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492009
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x492165
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405eac
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 + 0x4cf960]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040321a
mov ecx, dword [esi*4 + 0x4cf960]
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 0x49215e
cmp eax, dword [ecx + edi + 0x24]
jne 0x49215e
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 0x49215e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040321a
add esp, 0x14
test edx, edx
jl 0x49215e
jg 0x4920d4
test eax, eax
jb 0x49215e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49215e
jl 0x4920ee
cmp dword [ebp - 0x1008], eax
ja 0x49215e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49210c
test ebx, ebx
je 0x492145
cmp ecx, edi
jae 0x492145
mov al, byte [ecx]
cmp al, 0xd
jne 0x492126
lea eax, [edi - 1]
cmp ecx, eax
jae 0x492132
cmp byte [ecx + 1], 0xa
jne 0x492132
inc ecx
jmp 0x492132
movzx eax, al
movsx eax, byte [eax + 0x4cc3a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49210c
cmp edx, ebx
jne 0x49210c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x492163
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402ffe
leave
ret
Function at 0x4928a4
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 + 0x4cf960]
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 0x4928e4
cmp byte [ebx], 0xa
jne 0x4928e4
or byte [edi + eax + 0x28], 4
jmp 0x4928e9
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 0x4929e8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4929cb
inc eax
cmp dl, 0xd
je 0x492915
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49293b
cmp eax, ecx
jae 0x492949
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 0x4928fd
jmp 0x4929e8
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 0x4929c6
cmp dword [ebp - 0x10], 0
je 0x4929c6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4cf960]
test byte [eax + edi + 0x28], 0x48
je 0x4929a0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49298b
mov byte [esi], dl
jmp 0x49299c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cf960]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4929e8
cmp byte [ebp - 1], 0xa
jne 0x4929af
cmp esi, ebx
jne 0x4929af
mov byte [esi], 0xa
jmp 0x4929e7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4929e8
mov byte [esi], 0xd
jmp 0x4929e7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4cf960]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4929e5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4929e8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492a44
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 + 0x4cf960]
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 0x492a8a
cmp word [ebx], dx
jne 0x492a8a
or byte [eax + edi + 0x28], 4
jmp 0x492a8f
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 0x492bf2
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 0x492bd2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x492ad0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x492b06
cmp eax, edx
jae 0x492b14
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 0x492aab
jmp 0x492bf2
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 0x492bcd
cmp dword [ebp - 0x18], 0
je 0x492bcd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4cf960]
test byte [eax + edi + 0x28], 0x48
je 0x492ba3
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 0x492b67
mov word [esi], cx
jmp 0x492b9e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4cf960]
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 + 0x4cf960]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4cf960]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x492bf2
pop eax
cmp word [ebp - 4], ax
jne 0x492bb3
cmp esi, ebx
jne 0x492bb3
mov word [esi], ax
jmp 0x492bef
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 0x492bf2
push 0xd
pop eax
jmp 0x492bae
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4cf960]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x492bec
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x492bf2
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 0x4993e7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cc040]
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 0x499432
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049989f
test al, al
jne 0x49942c
sub edx, 2
cmp edx, edi
jne 0x499412
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x499454
lea eax, [edi + 2]
cmp edx, eax
je 0x499454
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00498fe0
add esp, 0x10
jmp 0x49954e
push esi
lea ecx, [ebp - 0x255]
call fcn.0049989f
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 0x499497
push dword [ebp - 0x25c]
jmp 0x499444
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 0x4994d4
cmp word [ebp - 0x226], 0
je 0x4994f5
cmp word [ebp - 0x226], ax
jne 0x4994d4
cmp word [ebp - 0x224], 0
je 0x4994f5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00498fe0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x499541
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4994ae
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499529
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49954e
push 0x4989c8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040547a
add esp, 0x10
jmp 0x49951e
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.00402ffe
leave
ret

Function at 0x49eeb0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040425a
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 0x49ef1f
cmp esi, dword [ebp - 4]
je 0x49ef1a
cmp dword [ebp + 0xc], 0
je 0x49ef1a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49eef7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049e8d8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x49ef21
xor eax, eax
inc eax
jmp 0x49ef21
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x414e89
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040beaf
and dword [ebp - 4], 0
cmp dword [0x42308c], 0
mov ebx, eax
jne 0x414f3a
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414feb
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x414feb
push eax
call fcn.0040be3d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42308c], eax
call esi
push eax
call fcn.0040be3d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423090], eax
call esi
push eax
call fcn.0040be3d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423094], eax
call esi
push eax
call fcn.0040be3d
pop ecx
mov dword [0x42309c], eax
test eax, eax
je 0x414f3a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040be3d
pop ecx
mov dword [0x423098], eax
mov eax, dword [0x423098]
cmp eax, ebx
je 0x414f92
cmp dword [0x42309c], ebx
je 0x414f92
push eax
call fcn.0040beb8
push dword [0x42309c]
mov esi, eax
call fcn.0040beb8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414f92
test edi, edi
je 0x414f92
call esi
test eax, eax
je 0x414f89
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414f89
test byte [ebp - 0xc], 1
jne 0x414f92
or dword [ebp + 0x10], 0x200000
jmp 0x414fcb
mov eax, dword [0x423090]
cmp eax, ebx
je 0x414fcb
push eax
call fcn.0040beb8
pop ecx
test eax, eax
je 0x414fcb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414fcb
mov eax, dword [0x423094]
cmp eax, ebx
je 0x414fcb
push eax
call fcn.0040beb8
pop ecx
test eax, eax
je 0x414fcb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42308c]
call fcn.0040beb8
pop ecx
test eax, eax
je 0x414feb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414fed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a4b0
Capabilities:
Create process on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
mov eax, dword [0x421194]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.00407a00
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x180]
push ecx
call fcn.00407a00
add esp, 0xc
mov dword [ebp - 0x180], 0x44
mov dword [ebp - 0x154], 0x41
mov edx, 1
mov word [ebp - 0x150], dx
push 0xa
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [0x4231e0]
push ecx
call fcn.00402d30
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x138]
call fcn.00401680
push str.iwinbundler
push str.ownerprocess
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41a575
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 0x41e8a4
call fcn.00409876
add esp, 8
mov byte [ebp - 0x381], 0
lea ecx, [ebp - 0x138]
call fcn.00401700
mov al, byte [ebp - 0x381]
jmp 0x41a6b2
lea eax, [ebp - 0x108]
push eax
push str.ownerwnd
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41a5bc
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.SetEnvironmentVariable_failed___d__n
call fcn.00409876
add esp, 8
mov byte [ebp - 0x382], 0
lea ecx, [ebp - 0x138]
call fcn.00401700
mov al, byte [ebp - 0x382]
jmp 0x41a6b2
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x380]
push edx
call fcn.00402d50
add esp, 8
lea eax, [ebp - 0x380]
push eax
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x180]
push edx
lea eax, [ebp - 0x380]
push eax
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.00401760
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
jne 0x41a630
mov byte [ebp - 0x383], 0
lea ecx, [ebp - 0x138]
call fcn.00401700
mov al, byte [ebp - 0x383]
jmp 0x41a6b2
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
push str.iWin_Games_Manager
push str.32770
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x41a69a
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41a69a
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
push 0x779
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 0x384], 1
lea ecx, [ebp - 0x138]
call fcn.00401700
mov al, byte [ebp - 0x384]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004079e3
mov esp, ebp
pop ebp
ret