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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x47d6c0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418763
cmp byte [ebx], 0xa
jne 0x418763
or byte [eax + edi + 0x28], 4
jmp 0x418768
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418866
mov al, byte [edx]
cmp al, 0x1a
je 0x418848
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418797
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4187bc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4187c6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x418779
jmp 0x418866
push 0
lea eax, [ebp - 0xc]
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 0x418843
cmp dword [ebp - 0xc], 0
je 0x418843
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47d6c0]
test byte [eax + edi + 0x28], 0x48
je 0x41881d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418808
mov byte [esi], dl
jmp 0x418819
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d6c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418866
cmp byte [ebp - 1], 0xa
jne 0x41882c
cmp esi, ebx
jne 0x41882c
mov byte [esi], 0xa
jmp 0x418865
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004192a6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418866
mov byte [esi], 0xd
jmp 0x418865
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47d6c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418862
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418866
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41886f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47d6c0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4188b2
cmp word [esi], dx
jne 0x4188b2
or byte [edi + eax + 0x28], 4
jmp 0x4188b7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418a0a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4189ea
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4188f9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41892f
cmp eax, edx
jae 0x41893b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4188d1
jmp 0x418a0a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4189e6
cmp dword [ebp - 0x14], 0
je 0x4189e6
mov eax, dword [ebx*4 + 0x47d6c0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4189be
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x418987
mov word [esi], cx
jmp 0x4189ba
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47d6c0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47d6c0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47d6c0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418a0a
pop ebx
cmp word [ebp - 4], bx
jne 0x4189cf
cmp esi, dword [ebp + 0xc]
jne 0x4189cf
mov word [esi], bx
jmp 0x418a07
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004192a6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418a0a
push 0xd
jmp 0x418a03
mov ecx, dword [ebx*4 + 0x47d6c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418a01
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418a0a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b4ea
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 0x41b587
push ebx
push esi
call fcn.0041b4b3
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.0041a138
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b534
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b586
push edi
push eax
call fcn.004150b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b554
call fcn.00413ec9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b585
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a138
add esp, 0x20
test eax, eax
jne 0x41b573
push edi
call fcn.00413ec9
jmp 0x41b57b
push ebx
call fcn.00413ec9
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 0x422760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42278d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42278d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x424000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x430040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov al, byte [esi + 0x47c0e0]
xor al, 0x73
sub al, 0x6c
mov byte [esi + 0x47c0e0], al
call fcn.00402f42
push eax
call fcn.00403105
mov al, byte [esi + 0x47c0e0]
xor al, 0x74
add al, 0x59
mov byte [esi + 0x47c0e0], al
call fcn.00401ba3
push eax
call fcn.00403105
mov al, byte [esi + 0x47c0e0]
sub al, 0xb
mov dword [esp], str.Taste
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [esi + 0x47c0e0], al
call fcn.004010d6
lea ecx, [ebp - 0x1c]
mov dword [esp], 0x42cce0
call fcn.00401d09
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.0040e16d
xor byte [esi + 0x47c0e0], al
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040261a
inc esi
cmp esi, 0x4ac
jb 0x424013
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406520
leave
ret 8
Function at 0x4240b6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x430040]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x2c
mov dword [esp + 0x30], ebx
call fcn.00406533
pop ecx
mov ecx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x28], eax
xor edx, edx
mov byte [esp + ecx + 0x38], cl
push 0x2a
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x47c590]
mov byte [esp + ecx + 0x138], al
inc ecx
cmp ecx, 0x100
jl 0x4240f5
mov esi, ebx
mov edi, ebx
mov dl, byte [esp + esi + 0x38]
movzx eax, byte [esp + esi + 0x138]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x42413f
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x38]
mov byte [esp + esi + 0x38], al
inc esi
mov byte [esp + edi + 0x38], dl
cmp esi, 0x100
jl 0x42411c
movsd xmm0, qword [0x42cd48]
mov eax, ebx
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
movsd qword [esp + 0x30], xmm0
inc eax
and eax, 0x800000ff
jns 0x424185
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [esp + eax + 0x38]
movzx edi, bl
add ecx, edi
mov dword [esp + 0x14], eax
and ecx, 0x800000ff
jns 0x4241a2
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ecx
push eax
push 0
lea ecx, [esp + 0x24]
call fcn.00403d30
mov esi, dword [esp + 0x1c]
movsd xmm1, qword [esi]
call fcn.00401a7f
push eax
call fcn.00403105
mov edx, dword [esp + 0x1c]
pop ecx
mov ecx, dword [esp + 0x14]
mov al, byte [esp + edx + 0x38]
mov byte [esp + ecx + 0x38], al
mov byte [esp + edx + 0x38], bl
movzx eax, byte [esp + ecx + 0x38]
mov ebx, dword [esp + 0x10]
add eax, edi
movzx eax, al
mov al, byte [esp + eax + 0x38]
xor byte [ebx + 0x430ae0], al
mov eax, dword [esp + 0x24]
sub eax, esi
and eax, 0xfffffff8
push eax
push esi
call fcn.00403798
xor eax, eax
inc ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
cmp ebx, 0x4b600
jl 0x424176
lea ecx, [esp + 0x28]
call fcn.00401a64
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406520
mov esp, ebp
pop ebp
ret
Function at 0x40ff0c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4211f8]
je 0x40ff27
inc edi
cmp edi, 0x17
jb 0x40ff18
cmp edi, 0x17
jae 0x4100a7
push ebp
push 3
call fcn.00416daa
cmp eax, 1
pop ecx
je 0x410073
push 3
call fcn.00416daa
test eax, eax
pop ecx
jne 0x40ff5b
cmp dword [0x42062c], 1
je 0x410073
cmp ebx, 0xfc
je 0x4100a6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x421d48
push ebp
call fcn.0040bf5b
add esp, 0xc
test eax, eax
je 0x40ff91
push esi
push esi
push esi
push esi
push esi
call fcn.004073f7
add esp, 0x14
push 0x104
mov esi, 0x421d61
push esi
push 0
mov byte [0x421e65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ffd5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040bf5b
add esp, 0xc
test eax, eax
je 0x40ffd5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004073f7
add esp, 0x14
push esi
call fcn.00409a40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41001a
push esi
call fcn.00409a40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42205c
push 0x41c5cc
sub ecx, eax
push ecx
push eax
call fcn.00411f46
add esp, 0x14
test eax, eax
je 0x41001a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004073f7
add esp, 0x14
jmp 0x41001c
xor esi, esi
push 0x41c5c8
push ebx
push ebp
call fcn.00411e85
add esp, 0xc
test eax, eax
je 0x41003c
push esi
push esi
push esi
push esi
push esi
call fcn.004073f7
add esp, 0x14
push dword [edi*8 + 0x4211fc]
push ebx
push ebp
call fcn.00411e85
add esp, 0xc
test eax, eax
je 0x41005e
push esi
push esi
push esi
push esi
push esi
call fcn.004073f7
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416bed
add esp, 0xc
jmp 0x4100a6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4100a6
cmp ebp, 0xffffffff
je 0x4100a6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4211fc]
push dword [esi]
call fcn.00409a40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x402b30
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004049f0
test esi, esi
jne 0x402b66
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404ae0
jmp 0x402b84
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a44
mov edi, eax
test esi, esi
je 0x402b84
cmp dword [ebx], 0
je 0x402b84
dec esi
jmp 0x402b6d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f800c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a28
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a08
xor eax, eax
push ebp
push 0x403a01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a08
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4f800c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f800c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fc04c], 0
je 0x404851
cmp word [0x4fc220], 0xd7b2
jne 0x404819
cmp dword [0x4fc228], 0
jbe 0x404819
mov eax, 0x4fc21c
call dword [0x4fc238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4f8054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404878
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f801c], 0
jne 0x40486d
push 0
push 0x4f8074
push 0x4f8054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4049a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402808
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4fc04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40496c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4065dc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40680c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40665f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40680c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40665f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406828
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066e8
xor eax, eax
push ebp
push 0x4066e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406424
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4066c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406848
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4066c6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406802
cmp byte [ebp - 0xd], 0
jne 0x40672f
cmp byte [ebp - 0x12], 0
je 0x406802
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406748
dec ebx
cmp byte [ebx], 0x2e
je 0x406757
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406747
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406802
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406794
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406802
cmp byte [ebp - 0xd], 0
je 0x406802
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406802
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4095b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ea0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4095c9
test al, 0x10
jne 0x4095cd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c794
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c7cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ae0
jmp 0x40c7d6
mov eax, ebx
mov edx, esi
call fcn.00404a44
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c7e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c801
mov al, byte [esp]
jmp 0x40c803
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40dd7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40dde0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404c58
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004093a4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dde7
lea eax, [ebp - 0xc]
call fcn.004049f0
ret

Function at 0x421330
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xe], 1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, ebx
call fcn.004211a4
pop ebx
ret

Function at 0x421350
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004211a4
dec esi
jne 0x421372
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42249c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4fca28
cmp dword [edi], 0
jne 0x422518
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4fca24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4f85d0
mov ecx, 2
call fcn.00402a04
mov edx, 0x422474
lea eax, [esi + 5]
call fcn.00422494
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422494
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4224ed
mov dword [0x4fca24], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423b0c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x423b12
ret

Function at 0x42624c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x42629d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426284
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426274
jmp 0x42629d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x426285
pop ebx
mov esp, ebp
pop ebp
ret