joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b7ed
Capabilities:
Parse pe header

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

Function at 0x4217ef
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c328
push 0x42c320
push str.FlsAlloc
push 0x1f
call fcn.004216ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421823
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a144]
call esi
jmp 0x421829
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42186d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c338
push 0x42c330
push str.FlsGetValue
push 0x21
call fcn.004216ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4218a4
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4218ac
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c340
push 0x42c338
push str.FlsSetValue
push 0x22
call fcn.004216ae
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4218e6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42a144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42309e
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 0x42313b
push ebx
push esi
call fcn.00423067
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.00422ffb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4230e8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42313a
push edi
push eax
call fcn.00421ab1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x423108
call fcn.00421aff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x423139
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00422ffb
add esp, 0x20
test eax, eax
jne 0x423127
push edi
call fcn.00421aff
jmp 0x42312f
push ebx
call fcn.00421aff
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 0x429380
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4293ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4293ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4057f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x4000
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004052e5
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x40586a
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x3ffe], ax
pop esi
jne 0x40586a
cmp dword [ebp + 0x18], 1
je 0x40586f
cmp dword [ebp + 0x18], 2
je 0x40586f
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x405874
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x4058d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405921
test edi, edi
jne 0x4058e4
mov word [esi], ax
jmp 0x405923
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x4059b7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4059d9
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406106
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x406115
pop dword [ebp - 0x40]
mov eax, 0x2000a8e4
add eax, 0xe03fb831
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x3498bd5b
add dword [ebp - 0x50], 0x19b987f0
mov dword [ebp - 0x4c], 0x925189b9
sub dword [ebp - 0x4c], 0x601e3d74
mov dword [ebp - 0x48], 0x11506239
sub dword [ebp - 0x48], 0xc5041e0b
mov dword [ebp - 0x44], 0xba7c1e6c
add dword [ebp - 0x44], 0x4583e194
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xc017017d
add dword [ebp - 0x50], 0xb45b67d9
mov dword [ebp - 0x4c], 0x9626a4ac
add dword [ebp - 0x4c], 0xab45bcc9
mov dword [ebp - 0x48], 0xe13bf68f
sub dword [ebp - 0x48], 0x7dcc8a23
mov dword [ebp - 0x44], 0xfbf4cbba
add dword [ebp - 0x44], 0x40b3446
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3831f
push 0
call eax
mov ecx, 0x375faa6e
add ecx, 0xc8a0a251
xor edi, edi
add edi, eax
mov ebx, 0x450400
add ebx, dword [ebp - 0x40]
mov edx, 0xa21d1d52
sub edx, 0xc6b59323
xor dword [ebp - 0x34], ecx
mov esi, dword [ebx]
xor dword [ebp - 0x10], 0x9e28a226
xor esi, edx
mov dword [edi], esi
add edi, 4
add ebx, 0xcfadb402
sub ebx, 0xcfadb3fe
loop 0x406229
add eax, 0x125cf
mov ebx, eax
add eax, 0xc795796f
sub eax, 0xc795796a
mov ecx, 0x5841c35c
add ecx, 0xa7fe3ca4
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x40656f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4065a6
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406580
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40657b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065d7
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4065b9
pop edi
not eax
pop esi
ret 0xc
Function at 0x40360c
Capabilities:
Terminate process

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

Disassembly:
jmp 0x49f561
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49f572
pop esi
ret
push ebx
push edi
push esi
call fcn.0049f448
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fee
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49f59a
push ebx
push esi
push edi
call fcn.0040571d
add esp, 0xc
push 0
call fcn.00406271
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4057db
Capabilities:
Parse pe header

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

Function at 0x444ba4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403788
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 0x444be3
sub eax, 1
je 0x444bde
sub eax, 1
je 0x444bda
xor eax, eax
leave
ret
push 3
jmp 0x444be5
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48b2c7
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401da2
mov eax, dword [0x4d1040]
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.00405e84
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496826
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x496982
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fdd
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 + 0x4d4b58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403292
mov ecx, dword [esi*4 + 0x4d4b58]
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 0x49697b
cmp eax, dword [ecx + edi + 0x24]
jne 0x49697b
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 0x49697b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403292
add esp, 0x14
test edx, edx
jl 0x49697b
jg 0x4968f1
test eax, eax
jb 0x49697b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49697b
jl 0x49690b
cmp dword [ebp - 0x1008], eax
ja 0x49697b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496929
test ebx, ebx
je 0x496962
cmp ecx, edi
jae 0x496962
mov al, byte [ecx]
cmp al, 0xd
jne 0x496943
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49694f
cmp byte [ecx + 1], 0xa
jne 0x49694f
inc ecx
jmp 0x49694f
movzx eax, al
movsx eax, byte [eax + 0x4d1398]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496929
cmp edx, ebx
jne 0x496929
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x496980
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403067
leave
ret
Function at 0x4970c1
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 + 0x4d4b58]
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 0x497101
cmp byte [ebx], 0xa
jne 0x497101
or byte [edi + eax + 0x28], 4
jmp 0x497106
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 0x497205
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4971e8
inc eax
cmp dl, 0xd
je 0x497132
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x497158
cmp eax, ecx
jae 0x497166
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 0x49711a
jmp 0x497205
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 0x4971e3
cmp dword [ebp - 0x10], 0
je 0x4971e3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d4b58]
test byte [eax + edi + 0x28], 0x48
je 0x4971bd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4971a8
mov byte [esi], dl
jmp 0x4971b9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d4b58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x497205
cmp byte [ebp - 1], 0xa
jne 0x4971cc
cmp esi, ebx
jne 0x4971cc
mov byte [esi], 0xa
jmp 0x497204
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x497205
mov byte [esi], 0xd
jmp 0x497204
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d4b58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x497202
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497205
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497261
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 + 0x4d4b58]
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 0x4972a7
cmp word [ebx], dx
jne 0x4972a7
or byte [eax + edi + 0x28], 4
jmp 0x4972ac
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 0x49740f
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 0x4973ef
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4972ed
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x497323
cmp eax, edx
jae 0x497331
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 0x4972c8
jmp 0x49740f
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 0x4973ea
cmp dword [ebp - 0x18], 0
je 0x4973ea
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d4b58]
test byte [eax + edi + 0x28], 0x48
je 0x4973c0
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 0x497384
mov word [esi], cx
jmp 0x4973bb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d4b58]
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 + 0x4d4b58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d4b58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49740f
pop eax
cmp word [ebp - 4], ax
jne 0x4973d0
cmp esi, ebx
jne 0x4973d0
mov word [esi], ax
jmp 0x49740c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49740f
push 0xd
pop eax
jmp 0x4973cb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d4b58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x497409
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49740f
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 0x49db17
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d1040]
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 0x49db62
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049dfcf
test al, al
jne 0x49db5c
sub edx, 2
cmp edx, edi
jne 0x49db42
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49db84
lea eax, [edi + 2]
cmp edx, eax
je 0x49db84
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049d710
add esp, 0x10
jmp 0x49dc7e
push esi
lea ecx, [ebp - 0x255]
call fcn.0049dfcf
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 0x49dbc7
push dword [ebp - 0x25c]
jmp 0x49db74
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 0x49dc04
cmp word [ebp - 0x226], 0
je 0x49dc25
cmp word [ebp - 0x226], ax
jne 0x49dc04
cmp word [ebp - 0x224], 0
je 0x49dc25
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049d710
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49dc71
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49dbde
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49dc59
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49dc7e
push 0x49d0f8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040557e
add esp, 0x10
jmp 0x49dc4e
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.00403067
leave
ret

Function at 0x4a35e0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404313
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 0x4a364f
cmp esi, dword [ebp - 4]
je 0x4a364a
cmp dword [ebp + 0xc], 0
je 0x4a364a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a3627
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a3008
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a3651
xor eax, eax
inc eax
jmp 0x4a3651
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40b57d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410920
cmp edx, dword [eax]
je 0x40b59f
add eax, 8
inc ecx
cmp eax, 0x4109b0
jl 0x40b590
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410920]
jne 0x40b6cd
mov eax, dword [0xf0f8b4]
cmp eax, 1
je 0x40b6a7
test eax, eax
jne 0x40b5d0
cmp dword [0x410248], 1
je 0x40b6a7
cmp edx, 0xfc
je 0x40b6cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b607
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004088e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408ab0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b64a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408ab0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f48c
push edi
call fcn.00409000
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004088e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004088f0
lea eax, [ebp - 0xa0]
push 0x40f46c
push eax
call fcn.004088f0
push dword [esi + 0x410924]
lea eax, [ebp - 0xa0]
push eax
call fcn.004088f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d753
add esp, 0x2c
pop edi
jmp 0x40b6cd
lea eax, [ebp + 8]
lea esi, [esi + 0x410924]
push 0
push eax
push dword [esi]
call fcn.00408ab0
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx