joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10099e5f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10099eb8
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10099e5f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10099e6e
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1049fb11
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10099ebf
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10080d35
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10099f5e
add edi, 4
add eax, 2
dec ecx
jne 0x10099ea4
call 0x10099f0b
loope 0x10099f01
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10099f5b
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10099f6c
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10099f1f
cmp eax, ecx
ja 0x10099f1f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10099fa9
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10099f9f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10081214
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10099e6e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10099eb8
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10099e5f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10099e6e
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1049fb11
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10099ebf
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10080d35
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10099f5e
add edi, 4
add eax, 2
dec ecx
jne 0x10099ea4
call 0x10099f0b
loope 0x10099f01
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10099f5b
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10099f6c
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10099f1f
cmp eax, ecx
ja 0x10099f1f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10099fa9
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10099f9f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10081214
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x40136a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40303c]
jne 0x401374
repz ret
jmp fcn.00401625

Function at 0x40161b
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x4021e8
call fcn.004019ec
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x4033c8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40140c
cmp eax, esi
jne 0x4013ff
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x40140f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013e6
xor esi, esi
inc esi
mov eax, dword [0x4033c4]
cmp eax, esi
jne 0x401422
push 0x1f
call sub.MSVCR90.dll__amsg_exit
pop ecx
jmp 0x40145d
mov eax, dword [0x4033c4]
test eax, eax
jne 0x401457
mov dword [0x4033c4], esi
push 0x402118
push 0x40210c
call sub.MSVCR90.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40145d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401534
mov dword [0x403084], esi
mov eax, dword [0x4033c4]
cmp eax, esi
jne 0x401481
push 0x402108
push 0x402100
call sub.MSVCR90.dll__initterm
pop ecx
pop ecx
mov dword [0x4033c4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x40148e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4033d4], ebx
je 0x4014af
push 0x4033d4
call fcn.00401920
pop ecx
test eax, eax
je 0x4014af
push ebx
push 2
push ebx
call dword [0x4033d4]
mov eax, dword [0x40306c]
mov ecx, dword [sym.imp.MSVCR90.dll___initenv]
mov dword [ecx], eax
push dword [0x40306c]
push dword [0x403070]
push dword [0x403068]
call section..text
add esp, 0xc
mov dword [0x403080], eax
cmp dword [0x403074], ebx
jne 0x40151a
push eax
call dword [sym.imp.MSVCR90.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR90.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x403084], ebx
jne 0x401528
call dword [sym.imp.MSVCR90.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x403080]
call fcn.00401a31
ret
call 0x491000
jmp 0x4013c4
Function at 0x41a40e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a42e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041bb56
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41a451
test byte [esp + 8], 2
je 0x41a451
call fcn.0041bbc9
mov dword [eax], 0xd
call fcn.0041bbd2
mov dword [eax], 5
jmp 0x41a42a
xor eax, eax
ret

Function at 0x4260bc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
invalid
test edi, esp
Function at 0x403648
Capabilities:
Terminate process

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

Disassembly:
jmp 0x49c454
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c465
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c33b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00404011
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c48d
push ebx
push esi
push edi
call fcn.00405736
add esp, 0xc
push 0
call fcn.00406276
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4057f4
Capabilities:
Parse pe header

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

Function at 0x43f069
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004037ba
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 0x43f0a8
sub eax, 1
je 0x43f0a3
sub eax, 1
je 0x43f09f
xor eax, eax
leave
ret
push 3
jmp 0x43f0aa
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x48588b
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4ce040]
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 0x4921af
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49230b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fe2
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 + 0x4d1940]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004032dd
mov ecx, dword [esi*4 + 0x4d1940]
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 0x492304
cmp eax, dword [ecx + edi + 0x24]
jne 0x492304
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 0x492304
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004032dd
add esp, 0x14
test edx, edx
jl 0x492304
jg 0x49227a
test eax, eax
jb 0x492304
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x492304
jl 0x492294
cmp dword [ebp - 0x1008], eax
ja 0x492304
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4922b2
test ebx, ebx
je 0x4922eb
cmp ecx, edi
jae 0x4922eb
mov al, byte [ecx]
cmp al, 0xd
jne 0x4922cc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4922d8
cmp byte [ecx + 1], 0xa
jne 0x4922d8
inc ecx
jmp 0x4922d8
movzx eax, al
movsx eax, byte [eax + 0x4ce390]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4922b2
cmp edx, ebx
jne 0x4922b2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x492309
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030b2
leave
ret
Function at 0x492a4a
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 + 0x4d1940]
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 0x492a8a
cmp byte [ebx], 0xa
jne 0x492a8a
or byte [edi + eax + 0x28], 4
jmp 0x492a8f
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 0x492b8e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x492b71
inc eax
cmp dl, 0xd
je 0x492abb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x492ae1
cmp eax, ecx
jae 0x492aef
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 0x492aa3
jmp 0x492b8e
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 0x492b6c
cmp dword [ebp - 0x10], 0
je 0x492b6c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d1940]
test byte [eax + edi + 0x28], 0x48
je 0x492b46
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x492b31
mov byte [esi], dl
jmp 0x492b42
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d1940]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x492b8e
cmp byte [ebp - 1], 0xa
jne 0x492b55
cmp esi, ebx
jne 0x492b55
mov byte [esi], 0xa
jmp 0x492b8d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040195b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x492b8e
mov byte [esi], 0xd
jmp 0x492b8d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d1940]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492b8b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492b8e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492bea
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 + 0x4d1940]
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 0x492c30
cmp word [ebx], dx
jne 0x492c30
or byte [eax + edi + 0x28], 4
jmp 0x492c35
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 0x492d98
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 0x492d78
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x492c76
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x492cac
cmp eax, edx
jae 0x492cba
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 0x492c51
jmp 0x492d98
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 0x492d73
cmp dword [ebp - 0x18], 0
je 0x492d73
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d1940]
test byte [eax + edi + 0x28], 0x48
je 0x492d49
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 0x492d0d
mov word [esi], cx
jmp 0x492d44
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d1940]
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 + 0x4d1940]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d1940]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x492d98
pop eax
cmp word [ebp - 4], ax
jne 0x492d59
cmp esi, ebx
jne 0x492d59
mov word [esi], ax
jmp 0x492d95
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040195b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x492d98
push 0xd
pop eax
jmp 0x492d54
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d1940]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x492d92
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x492d98
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 0x49aa4d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ce040]
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 0x49aa98
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049aec2
test al, al
jne 0x49aa92
sub edx, 2
cmp edx, edi
jne 0x49aa78
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49aaba
lea eax, [edi + 2]
cmp edx, eax
je 0x49aaba
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a646
add esp, 0x10
jmp 0x49abb4
push esi
lea ecx, [ebp - 0x255]
call fcn.0049aec2
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 0x49aafd
push dword [ebp - 0x25c]
jmp 0x49aaaa
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 0x49ab3a
cmp word [ebp - 0x226], 0
je 0x49ab5b
cmp word [ebp - 0x226], ax
jne 0x49ab3a
cmp word [ebp - 0x224], 0
je 0x49ab5b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a646
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49aba7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ab14
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ab8f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49abb4
push 0x49a02e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040558d
add esp, 0x10
jmp 0x49ab84
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.004030b2
leave
ret

Function at 0x4a04af
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404336
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 0x4a051e
cmp esi, dword [ebp - 4]
je 0x4a0519
cmp dword [ebp + 0xc], 0
je 0x4a0519
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a04f6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049fed7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a0520
xor eax, eax
inc eax
jmp 0x4a0520
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45d9e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x45d9fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x45d9f3
pop esi
ret

Function at 0x45da00
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45da6a
push esi
lea edi, [eax + 0x400]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45da3a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45da86
push ecx
push esi
call fcn.0045e910
add esp, 8
mov ebx, eax
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x45daf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x45db82
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x45db74
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x45db6c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x45db35
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219