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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405860
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405867
cmp ebx, dword [eax + 4]
jae 0x405867
xor eax, eax
jmp 0x405a57
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405878
xor eax, eax
inc eax
jmp 0x405a56
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40588e
cmp ecx, edx
jae 0x4059d3
cmp dword [eax + 4], 0
je 0x405897
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40587f
cmp dword [ebp + 8], 0
je 0x4058b9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4059d3
cmp eax, esi
jae 0x4059d3
mov eax, dword [0x40b6d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4058de
cmp dword [esi*4 + 0x40b6d8], edi
je 0x4059d7
inc esi
cmp esi, eax
jl 0x4058cc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405a53
cmp dword [ebp - 8], 0x1000000
jne 0x405a53
test byte [ebp - 0xc], 0xcc
je 0x40595c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405a53
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405a53
cmp word [eax + 0x18], 0x10b
jne 0x405a53
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405a53
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40595c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40595c
test byte [ecx + 0x27], 0x80
jne 0x4059d3
push 1
push 0x40b718
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405870
mov ecx, dword [0x40b6d0]
test ecx, ecx
mov edx, ecx
jle 0x405990
lea eax, [ecx*4 + 0x40b6d4]
cmp dword [eax], edi
je 0x405990
dec edx
sub eax, 4
test edx, edx
jg 0x405984
test edx, edx
jne 0x4059c1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40599d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4059b5
lea eax, [edx*4 + 0x40b6d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4059a3
cmp ecx, 0x10
jge 0x4059c1
inc ecx
mov dword [0x40b6d0], ecx
push 0
push 0x40b718
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405870
xor eax, eax
jmp 0x405a56
test esi, esi
jle 0x405870
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40b718
call ebx
test eax, eax
jne 0x405870
cmp dword [esi*4 + 0x40b6d8], edi
je 0x405a2d
mov eax, dword [0x40b6d0]
lea esi, [eax - 1]
test esi, esi
jl 0x405a1b
cmp dword [esi*4 + 0x40b6d8], edi
je 0x405a17
dec esi
jns 0x405a0b
test esi, esi
jge 0x405a2b
cmp eax, 0x10
jge 0x405a26
inc eax
mov dword [0x40b6d0], eax
lea esi, [eax - 1]
jmp 0x405a2d
je 0x405a45
xor ecx, ecx
test esi, esi
jl 0x405a45
lea eax, [ecx*4 + 0x40b6d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405a33
push 0
push 0x40b718
call ebx
jmp 0x405870
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407452
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401630
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4074ed
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40b3ec]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4074ed
cmp eax, 1
je 0x40750e
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4074ed
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4074ba
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4074e9
xor eax, eax
inc eax
jmp 0x40752d
cmp edi, eax
jae 0x4074f1
xor eax, eax
jmp 0x40752d
cmp eax, esi
jae 0x4074f8
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40b3ec]
jmp 0x407511
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402998
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029d5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029f5
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.0040430c
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402c1c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402c4b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041c4
jmp 0x402c69
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402b44
mov edi, eax
test ebx, ebx
je 0x402c69
cmp dword [esi], 0
je 0x402c69
dec ebx
jmp 0x402c52
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402f48
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x664044], 0x8088405
inc edx
mov dword [0x664044], edx
mul edx
mov eax, edx
ret

Function at 0x403128
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031a0
xor eax, eax
push ebp
push 0x403199
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 0x4031dc
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 0x4031a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x4065e8
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 0xf003f
push 0
push 0x4067a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406649
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4067c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4066bb
xor eax, eax
push ebp
push 0x4066b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00406440
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40669d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4067e0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066bb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x40679c
cmp byte [ebp - 0xd], 0
jne 0x4066fd
cmp byte [ebp - 0x12], 0
je 0x40679c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406716
dec ebx
cmp byte [ebx], 0x2e
je 0x406725
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406715
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40679c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406752
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40679c
cmp byte [ebp - 0xd], 0
je 0x40679c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40679c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x406e40
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x406e70
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x406e66
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.0040292c
or eax, 0xffffffff
jmp 0x406e64
mov eax, 0x67
call fcn.0040291c
or eax, 0xffffffff
jmp 0x406e64
Function at 0x40c3f0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040453c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40c412
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40c83c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40ca89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404130
cmp dword [0x65c138], 1
jne 0x40c887
cmp dword [0x65c13c], 4
jle 0x40c8c6
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.0040453c
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x40ca6b
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.00404294
jmp 0x40ca6b
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00402d10
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x40ca6b
cmp byte [ebp - 0x15], 0x5a
ja 0x40ca6b
mov eax, dword [ebp - 4]
call fcn.00404378
cmp eax, 3
jl 0x40ca6b
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x40ca6b
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x40ca6b
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40ca6b
xor edx, edx
push ebp
push 0x40ca64
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.004027dc
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x40ca46
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x40c995
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.0040280c
jmp 0x40c959
test eax, eax
je 0x40c9a8
call fcn.00403bac
call fcn.00403bac
jmp 0x40ca6b
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x40c959
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x40ca24
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.00402d10
cmp al, byte [ebp - 0x15]
jne 0x40ca24
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00404378
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00404580
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.00404294
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.004043c4
call fcn.00403bac
call fcn.00403bac
jmp 0x40ca6b
inc edi
dec esi
jne 0x40c9b3
jmp 0x40c959
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca90
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00404100
ret

Function at 0x40cf4c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041c4
add esp, 0x104
pop ebx
ret
Function at 0x40f658
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 0x40f691
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041c4
jmp 0x40f69a
mov eax, ebx
mov edx, esi
call fcn.00404130
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f6a4
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 0x40f6c5
mov al, byte [esp]
jmp 0x40f6c7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41ce10
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x421158
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x421258
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004040dc
push 0x400
lea eax, [ebp - 0x404]
push eax
mov eax, edi
call fcn.0040453c
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x4211b6
lea edx, [ebp - 0x404]
mov eax, esi
mov ecx, ebx
call fcn.004041c4
jmp 0x4211d6
mov edx, ebx
dec edx
mov eax, esi
call fcn.004046ac
push ebx
mov eax, dword [esi]
call fcn.0040453c
push eax
mov eax, edi
call fcn.0040453c
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
test ebx, ebx
jne 0x421242
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040bc7c
mov eax, dword [ebp - 4]
mov edx, 0x421270
call fcn.00404488
jne 0x421208
call fcn.0040dec8
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.0040ec6c
jmp 0x421242
mov eax, dword [ebp - 4]
mov edx, 0x421280
call fcn.00404488
jne 0x42122c
call fcn.0040def4
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.0040ec84
jmp 0x421242
mov eax, dword [ebp - 4]
mov edx, 0x421290
call fcn.00404488
jne 0x421242
mov eax, esi
call fcn.0040cf4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42125f
lea eax, [ebp - 4]
call fcn.004040dc
ret

Function at 0x4214b0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
mov eax, pe_nt_image_headers32
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040430c
add esp, 0x100
pop ebx
ret
Function at 0x421564
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040452c
xor eax, eax
push ebp
push 0x421660
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00404130
lea edx, [ebp - 0x80c]
mov eax, dword [ebp - 4]
call fcn.0040c65c
cmp dword [ebp - 0x80c], 0
jne 0x4215e8
lea eax, [ebp - 0x810]
call fcn.00421544
push dword [ebp - 0x810]
push 0x421678
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404438
lea eax, [ebp - 4]
xor ecx, ecx
xor edx, edx
call fcn.0042230c
test al, al
je 0x42163a
mov eax, dword [ebp - 4]
call fcn.0040453c
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
call fcn.0040453c
push eax
mov eax, dword [ebp - 8]
call fcn.0040453c
push eax
mov eax, edi
call fcn.0040453c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x808]
mov eax, esi
call fcn.004041c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421667
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.00404100
lea eax, [ebp - 4]
call fcn.004040dc
ret

Function at 0x421db8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040452c
mov eax, dword [ebp - 8]
call fcn.0040452c
xor eax, eax
push ebp
push 0x421ebc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004040dc
cmp dword [ebp - 4], 0
je 0x421e10
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x421e10
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004045c0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040453c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x421ea1
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040453c
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x421e91
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.004046ac
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.0040453c
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push ebx
mov eax, dword [ebx]
call fcn.00404378
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404580
jmp 0x421e98
mov eax, ebx
call fcn.004040dc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421ec3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404100
ret
Function at 0x422134
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040453c
push eax
call 0x407d84
cmp eax, 0xffffffff
je 0x42214d
test al, 0x10
jne 0x422151
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x422b18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040452c
xor eax, eax
push ebp
push 0x422c02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404378
dec eax
jle 0x422b81
mov edx, dword [ebp - 4]
mov eax, 0x422c18
call fcn.00404664
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404378
dec eax
cmp ebx, eax
jne 0x422b81
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404378
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404580
mov eax, dword [ebp - 4]
call fcn.00404378
mov ebx, eax
test ebx, ebx
jle 0x422bb8
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.00404548
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 8]
dec ebx
jne 0x422b96
mov eax, dword [ebp - 4]
call fcn.00404378
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [ebp - 8], 0
jle 0x422bec
lea eax, [ebp - 4]
call fcn.00404548
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422c09
lea eax, [ebp - 4]
call fcn.004040dc
ret

Function at 0x4231a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004046ac
cmp dword [ebp - 4], 0
jle 0x4231e5
mov eax, ebx
call fcn.00404548
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 4]
mov eax, dword [ebx]
call fcn.00404378
mov esi, eax
test esi, esi
jle 0x423219
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00404548
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x4231f9
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x424af4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 4]
mov dword [edi], 0x10
push edi
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040430c
mov eax, dword [esi]
call fcn.00404378
mov ebx, eax
test ebx, ebx
jbe 0x424b66
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
mov al, byte [eax + edx - 1]
and eax, 0xff
bt dword [0x65cd50], eax
jae 0x424b61
mov eax, esi
call fcn.00404548
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x424b3d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4275a4
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4275e3
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4275e3
cmp dword [eax + 0x3c], 0
je 0x4275e3
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4275e1
cmp dword [esi], 0x4550
je 0x4275e3
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x429844
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, ecx
mov ebx, edx
shl ebx, 2
add ebx, eax
mov eax, ebx
call fcn.004063d8
test eax, eax
je 0x429884
push esp
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], esi
push esp
mov eax, dword [esp + 4]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
push 4
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop esi
pop ebx
ret

Function at 0x429a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00402b04
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop edi
pop esi
pop ebx
ret