joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b7d0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x42f090]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x41b812
call edi
mov esi, eax
test esi, esi
je 0x41b7fc
mov eax, 1
jmp 0x41b80d
call ebp
mov ebx, eax
test ebx, ebx
je 0x41b91f
mov eax, 2
mov dword [0x42f090], eax
cmp eax, 1
jne 0x41b8b2
test esi, esi
jne 0x41b82b
call edi
mov esi, eax
test esi, esi
je 0x41b91f
cmp word [esi], 0
mov eax, esi
je 0x41b845
add eax, 2
cmp word [eax], 0
jne 0x41b833
add eax, 2
cmp word [eax], 0
jne 0x41b833
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41b8a4
push edi
call fcn.00414db0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41b8a4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41b896
push ebx
call fcn.00414d40
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x41b91f
test ebx, ebx
jne 0x41b8c3
call ebp
mov ebx, eax
test ebx, ebx
je 0x41b91f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x41b8db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41b8cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41b8cb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00414db0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41b8fd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x41b970
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x42d6a8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x41b994
add eax, 8
inc ebp
cmp eax, 0x42d738
jb 0x41b985
cmp ecx, dword [ebp*8 + 0x42d6a8]
jne 0x41bb3b
mov eax, dword [0x42eccc]
cmp eax, 1
je 0x41bafd
test eax, eax
jne 0x41b9c0
cmp dword [0x42ade4], 1
je 0x41bafd
cmp ecx, 0xfc
je 0x41bb3b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b9fb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x41ba44
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x428410
add ebx, ecx
push ebx
call fcn.00414c40
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4283f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x42d6ac]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041d930
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x430280]
test eax, eax
je 0x41bb0e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x41bb18
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x42d6ac]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x41db70
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x42f104]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x41dbb8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x41db98
mov eax, 1
jmp 0x41dbb3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41dc89
mov eax, 2
mov dword [0x42f104], eax
cmp eax, 1
jne 0x41dbd8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x41dc9b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41dbf3
mov ecx, dword [0x42ed60]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x41dc12
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00414db0
mov edi, eax
add esp, 4
test edi, edi
jne 0x41dc26
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41dc80
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x41dc64
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x41dc80
push edi
call fcn.00414d40
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x41dc90
push edi
call fcn.00414d40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.00414d40
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41dca0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x42f108]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x41dce8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x41dcc8
mov eax, 2
jmp 0x41dce3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ddc8
mov eax, 1
mov dword [0x42f108], eax
cmp eax, 2
jne 0x41dd08
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x41ddda
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41dd23
mov ecx, dword [0x42ed60]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x41dd42
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00414db0
mov esi, eax
add esp, 4
test esi, esi
jne 0x41dd59
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ddbf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x41dda0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41ddbf
push esi
call fcn.00414d40
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x41ddcf
push esi
call fcn.00414d40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00414d40
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41e250
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41e40e
push 0x3d
push edi
call fcn.0041e700
mov esi, eax
add esp, 8
test esi, esi
je 0x41e40e
cmp edi, esi
je 0x41e40e
mov dl, byte [esi + 1]
mov ecx, dword [0x42ec84]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x42ec80]
cmp eax, ecx
jne 0x41e2a7
push eax
call fcn.0041e4e0
add esp, 4
mov dword [0x42ec80], eax
test eax, eax
jne 0x41e322
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41e2ce
mov eax, dword [0x42ec88]
test eax, eax
je 0x41e2ce
call fcn.0041df00
test eax, eax
je 0x41e31d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41e2da
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00414db0
add esp, 4
mov dword [0x42ec80], eax
test eax, eax
je 0x41e40e
mov dword [eax], 0
mov eax, dword [0x42ec88]
test eax, eax
jne 0x41e31d
push 4
call fcn.00414db0
add esp, 4
mov dword [0x42ec88], eax
test eax, eax
je 0x41e40e
mov dword [eax], 0
mov eax, dword [0x42ec80]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0041e460
mov esi, eax
add esp, 8
test esi, esi
jl 0x41e41f
cmp dword [ebx], 0
je 0x41e41f
test ebp, ebp
je 0x41e417
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00414d40
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x41e379
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x41e368
lea eax, [esi*4]
push eax
push ebx
call fcn.0041e550
add esp, 8
test eax, eax
je 0x41e393
mov dword [0x42ec80], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41e406
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00414db0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41e406
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00414d40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x41e397
test ebp, ebp
jne 0x41e406
test esi, esi
jge 0x41e429
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0041e550
add esp, 8
test eax, eax
je 0x41e40e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x42ec80], eax
jmp 0x41e397
Function at 0x41f0e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp + 8], 0x200
jl 0x41f0fe
xchg esi, esi
jmp 0x41f104
nop
xchg edi, edi
jl 0x41f0fa
or ecx, dword [ebp + 0x4d8df445]
or byte [eax + 0x6a], dl
add byte [edx], ch
lea eax, [ebp - 0xc]
lea ecx, [ebp + 8]
push eax
push 0
push 0
push 0
lea edx, [ebp - 0x310]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
jl 0x41f129
xchg eax, eax
jmp 0x41f12f
nop
xchg edi, edi
jl 0x41f125
xor byte [esp + eax - 0x79], bh
imul bl
push es
jl 0x41f135
xchg esi, esi
jmp 0x41f13b
nop
xchg ebp, ebp
jl 0x41f131
cmp dword [esp + eax - 0x79], 0x9006ebf6
jl 0x41f141
xchg esi, esi
jmp 0x41f147
nop
xchg ebx, ebx
jl 0x41f13d
fiadd word [ebp - 0x3e7af00a]
add byte [eax], al
add byte [ebp - 0x727203bb], cl
invalid
test esi, esi
jne 0x41f210
lea eax, [ebp - 4]
lea ecx, [ebp - 0x110]
push eax
lea edx, [ebp - 0x310]
push ecx
push edx
push edi
mov dword [ebp - 4], 0x104
call fcn.0041f2c0
add esp, 0x10
mov esi, eax
jl 0x41f179
xchg edi, edi
jmp 0x41f17f
nop
xchg edi, edi
jl 0x41f175
sub byte [esp + eax - 0x79], bh
shr bl, 6
jl 0x41f185
xchg eax, eax
jmp 0x41f18b
nop
xchg ebp, ebp
jl 0x41f181
cmp byte [ebp - 0x74d48a0a], al
inc ebp
cld
test esi, esi
jne 0x41f1ba
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x110], 0
jl 0x41f1a0
xchg ebx, ebx
jmp 0x41f1a6
nop
xchg eax, eax
jl 0x41f19c
and dword [ebp - 0x10f73], ecx
call dword [ecx - 0x18]
outsb dx, byte [esi]
add byte [eax], al
add byte [ebx - 0x7a99fb3c], al
sal byte [ebp + 0x1e], 0x43
lea ecx, [ebp - 0x110]
push ecx
call 0x41f220
add esp, 4
test ax, ax
jne 0x41f1d8
inc ebx
jl 0x41f1c1
xchg eax, eax
jmp 0x41f1c7
nop
xchg eax, eax
jl 0x41f1bd
cmp byte [esp + eax - 0x79], 0xff
jl 0x41f1cd
xchg edi, edi
jmp 0x41f1d3
nop
xchg ecx, ecx
jl 0x41f1c9
add ecx, ebp
sbb edi, edi
invalid
jmp 0x41f0f1
jl 0x41f1de
xchg esi, esi
jmp 0x41f1e4
nop
xchg esi, esi
jl 0x41f1da
mov dword [esp + eax - 0x79], edi
shr bl, 6
jl 0x41f1ea
xchg eax, eax
jmp 0x41f1f0
nop
xchg ebx, ebx
jl 0x41f1e6
adc dword [esp + eax - 0x79], edi
in eax, dx
jl 0x41f1f6
xchg ebp, ebp
jmp 0x41f1fc
nop
xchg edi, edi
jl 0x41f1f2
mov al, byte [0x660c558b]
mov dword [edx], 0x47c0001
mov edx, dword [ebp + 0xc]
mov word [edx], 1
jl 0x41f20a
xchg ebx, ebx
jmp 0x41f210
nop
xchg eax, eax
jl 0x41f206
and byte [ebx + 0x5b5e5fc6], cl
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
jl 0x41f2e5
xchg eax, eax
jmp 0x41f2eb
nop
xchg edi, edi
jl 0x41f2e1
xor dword [esp + eax - 0x79], edi
shr bl, cl
push es
jl 0x41f2f1
xchg edx, edx
jmp 0x41f2f7
nop
xchg esi, esi
jl 0x41f2ed
and edi, dword [esp + eax - 0x79]
invalid
jl 0x41f2fd
xchg edi, edi
jmp 0x41f303
nop
xchg edi, edi
jl 0x41f2f9
xor al, byte [ebp + 0x567275ff]
test edi, edi
jne 0x41f379
push esi
jl 0x41f30e
xchg ecx, ecx
jmp 0x41f314
nop
xchg edi, edi
jl 0x41f30a
mov al, byte [0xc087047c]
jl 0x41f31a
xchg eax, eax
jmp 0x41f320
nop
xchg ecx, ecx
jl 0x41f316
sub dword [eax - 0x40], 0xe8004291
push es
sldt word [eax]
push 0x4291c0
call fcn.00420230
mov esi, eax
add esp, 4
test esi, esi
je 0x41f36e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push ecx
push edx
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
jl 0x41f353
xchg edi, edi
jmp 0x41f359
nop
xchg ebp, ebp
jl 0x41f34f
mov byte [esi - 0x18], dl
loope 0x41f3b6
push esi
call fcn.00414d40
add esp, 4
jl 0x41f368
invalid
xchg ecx, ecx
jmp 0x41f36e
nop
xchg edi, edi
jl 0x41f364
cmp cl, byte [ebx - 0xaef3b3]
adc eax, sym.imp.ADVAPI32.dll_RegCloseKey
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
jl 0x41f37f
xchg edx, edx
jmp 0x41f385
nop
xchg edi, edi
jl 0x41f37b
adc byte [esp + eax - 0x79], bh
shr bl, 6
jl 0x41f38b
xchg eax, eax
jmp 0x41f391
nop
xchg esi, esi
jl 0x41f387
fstp xword [esp + eax - 0x79]
in eax, dx
jl 0x41f397
xchg ebp, ebp
jmp 0x41f39d
nop
xchg eax, eax
jl 0x41f393
or byte [ebx - 0x3ca2a039], cl
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edi
pop edi
pop ebp
ret
cmp byte [ecx], al
add byte [eax], al
Function at 0x402fc4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x472008], 0x8088405
inc edx
mov dword [ebx + 0x472008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x472024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403768
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403748
xor eax, eax
push ebp
push 0x403741
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 0x403784
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 0x403748
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x472024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x472024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404598
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fa04c], 0
je 0x4045f9
cmp word [0x4fa220], 0xd7b2
jne 0x4045c1
cmp dword [0x4fa228], 0
jbe 0x4045c1
mov eax, 0x4fa21c
call dword [0x4fa238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404620
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472030], 0
jne 0x404615
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d3c
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 0x405f6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405dbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405dbf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e48
xor eax, eax
push ebp
push 0x405e41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405b78
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 0x405e26
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405fa8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e26
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 0x405e48
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 0x405f62
cmp byte [ebp - 0xd], 0
jne 0x405e8f
cmp byte [ebp - 0x12], 0
je 0x405f62
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ea8
dec ebx
cmp byte [ebx], 0x2e
je 0x405eb7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ea7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f62
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ef4
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 0x405f62
cmp byte [ebp - 0xd], 0
je 0x405f62
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 0x405f62
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 0x4083d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408464
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408464
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408417
test edx, 3
jne 0x408406
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408411
jmp 0x408417
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408417
cmp dword [ecx - 8], 1
je 0x408421
mov edx, ebx
or edx, 3
call fcn.00404e64
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408433
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404718

Function at 0x408470
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408500
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408500
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4084b3
test edx, 3
jne 0x4084a2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4084ad
jmp 0x4084b3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4084b3
cmp dword [ecx - 8], 1
je 0x4084bd
mov edx, ebx
or edx, 3
call fcn.00404e64
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4084cf
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404718

Function at 0x40b7bc
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 0x40b7f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404808
jmp 0x40b7fe
mov eax, ebx
mov edx, esi
call fcn.0040476c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b808
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 0x40b82a
movzx eax, byte [esp]
jmp 0x40b82c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret