joyce8/EMBER2024-capa huggingface dataset:
Function at 0x200c77d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x200d5630
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x2c]
test eax, eax
jl 0x200c77fc
cmp eax, 5
jle 0x200c77fe
xor eax, eax
mov eax, dword [eax*4 + 0x200ea3f4]
push 0
push 1
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CPen::CPen
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [edi + 0x20]
mov ebp, eax
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x1c]
add eax, edx
add ecx, 2
cdq
sub eax, edx
lea edx, [esp + 0x18]
mov esi, eax
sar esi, 1
push esi
push ecx
push edx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov edi, dword [edi + 0x24]
push esi
sub edi, 2
mov ecx, ebx
push edi
call sub.MFC42.DLL_CDC::LineTo
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject_1
mov dword [esp + 0x10], 0x200da274
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x200c78a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x200d5650
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x2c]
test eax, eax
jge 0x200c78c9
xor eax, eax
push 0
push eax
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CPen::CPen
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [edi + 0x20]
mov ebp, eax
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x1c]
add eax, edx
add ecx, 2
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov edi, dword [edi + 0x24]
push esi
sub edi, 2
mov ecx, ebx
push edi
call sub.MFC42.DLL_CDC::LineTo
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject_1
mov dword [esp + 0x10], 0x200da274
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x200cf7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebp
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x200cf7fd
pop edi
pop esi
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x200cf814
pop edi
pop esi
pop ebp
ret 8
mov edi, dword [esi]
add edi, 0x40
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x200cf82f
pop edi
pop esi
pop ebp
ret 8
mov ecx, edi
mov edi, ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x18], 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov edi, ebp
add edi, eax
mov ecx, dword [edi]
xor esi, esi
mov eax, 0x200dc120
cmp ecx, dword [eax]
je 0x200cf86b
add eax, 8
inc esi
cmp eax, 0x200dc140
jl 0x200cf85a
jmp 0x200cf8aa
mov eax, dword [esi*8 + 0x200dc124]
push eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [esi*8 + 0x200dc124]
xor ebx, ebx
push ecx
mov bl, ah
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esi*8 + 0x200dc124]
mov bh, al
push edx
shl ebx, 8
call dword [sym.imp.USER32.dll_GetSysColor]
shr eax, 0x10
and eax, 0xff
or ebx, eax
mov dword [edi], ebx
mov eax, dword [esp + 0x18]
add edi, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x200cf851
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_GetDC]
push edi
push esi
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x200cf93e
mov ecx, dword [0x200eaa34]
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov cl, byte [ebp + 0xe]
mov edx, 1
shl edx, cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push 0xcc0020
push 0
push ebp
lea ecx, [eax + edx*4 + 0x28]
mov edx, dword [0x200eaa34]
push ecx
push edi
push esi
push 0
push 0
push edi
push esi
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov ecx, dword [0x200eaa34]
mov eax, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x402e34
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402e71
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 + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402e91
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405080
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4030d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404e10
test esi, esi
jne 0x40310f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404f00
jmp 0x403130
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f74
mov dword [esp], eax
test esi, esi
je 0x403130
cmp dword [ebx], 0
je 0x403130
dec esi
jmp 0x403117
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403d2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x575024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403dc4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403da4
xor eax, eax
push ebp
push 0x403d9d
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 0x403de0
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 0x403da4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x575024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x575024], ax
mov esp, ebp
pop ebp
ret
Function at 0x40709c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x407102
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00405080
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403788
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4070ec
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407109
lea eax, [ebp - 0x10]
call fcn.00404e10
ret

Function at 0x40a37c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004052ec
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a395
test al, 0x10
jne 0x40a399
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40da44
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 0x40da7d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f00
jmp 0x40da86
mov eax, ebx
mov edx, esi
call fcn.00404e64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40eae0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ebb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404ea8
lea eax, [ebp - 8]
call fcn.0040533c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004052ec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40eba0
mov eax, ebx
call fcn.00402be4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40eb99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004052ec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40eb83
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ebc8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40eb83
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eba0
mov eax, dword [ebp - 0x10]
call fcn.00402c14
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ebbd
lea eax, [ebp - 8]
call fcn.00404e10
ret
Function at 0x40f294
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 0x40f2f8
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.00405080
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409eb4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f2ff
lea eax, [ebp - 0xc]
call fcn.00404e10
ret

Function at 0x4100d4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404e10
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004052ec
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x410119
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404f00
jmp 0x410132
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405478
push ebx
mov eax, dword [esi]
call fcn.004052ec
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x428da8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x58488c
cmp dword [edi], 0
jne 0x428e24
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x584888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x575654
mov ecx, 2
call fcn.00402f34
mov edx, 0x428d80
lea eax, [esi + 5]
call fcn.00428da0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00428da0
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 0x428df9
mov dword [0x584888], 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 0x42c274
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 0x42c374
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e10
push 0x400
lea eax, [ebp - 0x404]
push eax
mov eax, edi
call fcn.004052ec
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x42c2d2
lea edx, [ebp - 0x404]
mov eax, esi
mov ecx, ebx
call fcn.00404f00
jmp 0x42c2f2
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405478
push ebx
mov eax, dword [esi]
call fcn.004052ec
push eax
mov eax, edi
call fcn.004052ec
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
test ebx, ebx
jne 0x42c35e
lea edx, [ebp - 4]
mov eax, edi
call fcn.00409904
mov eax, dword [ebp - 4]
mov edx, 0x42c38c
call fcn.00405238
jne 0x42c324
call fcn.0040c354
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.0040d018
jmp 0x42c35e
mov eax, dword [ebp - 4]
mov edx, 0x42c39c
call fcn.00405238
jne 0x42c348
call fcn.0040c380
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.0040d030
jmp 0x42c35e
mov eax, dword [ebp - 4]
mov edx, 0x42c3ac
call fcn.00405238
jne 0x42c35e
mov eax, esi
call fcn.0040ab8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c37b
lea eax, [ebp - 4]
call fcn.00404e10
ret

Function at 0x42c5d4
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.00405080
add esp, 0x100
pop ebx
ret

Function at 0x42c688
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.004052dc
xor eax, eax
push ebp
push 0x42c784
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00404e64
lea edx, [ebp - 0x80c]
mov eax, dword [ebp - 4]
call fcn.0040a6b8
cmp dword [ebp - 0x80c], 0
jne 0x42c70c
lea eax, [ebp - 0x810]
call fcn.0042c668
push dword [ebp - 0x810]
push 0x42c79c
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004051ac
lea eax, [ebp - 4]
xor ecx, ecx
xor edx, edx
call fcn.0042d458
test al, al
je 0x42c75e
mov eax, dword [ebp - 4]
call fcn.004052ec
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
call fcn.004052ec
push eax
mov eax, dword [ebp - 8]
call fcn.004052ec
push eax
mov eax, edi
call fcn.004052ec
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x808]
mov eax, esi
call fcn.00404f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c78b
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.00404e34
lea eax, [ebp - 4]
call fcn.00404e10
ret
Function at 0x42cefc
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.004052dc
mov eax, dword [ebp - 8]
call fcn.004052dc
xor eax, eax
push ebp
push 0x42d000
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404e10
cmp dword [ebp - 4], 0
je 0x42cf54
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x42cf54
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040538c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004052ec
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42cfe5
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004052ec
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42cfd5
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00405478
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.004052ec
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.004050ec
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.0040534c
jmp 0x42cfdc
mov eax, ebx
call fcn.00404e10
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 0x42d007
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e34
ret

Function at 0x42d280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004052ec
push eax
call 0x407778
cmp eax, 0xffffffff
je 0x42d299
test al, 0x10
jne 0x42d29d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x42dc6c
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.004052dc
xor eax, eax
push ebp
push 0x42dd56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004050ec
dec eax
jle 0x42dcd5
mov edx, dword [ebp - 4]
mov eax, 0x42dd6c
call fcn.00405430
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004050ec
dec eax
cmp ebx, eax
jne 0x42dcd5
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.004050ec
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040534c
mov eax, dword [ebp - 4]
call fcn.004050ec
mov ebx, eax
test ebx, ebx
jle 0x42dd0c
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.00405344
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 0x42dcea
mov eax, dword [ebp - 4]
call fcn.004050ec
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 8], 0
jle 0x42dd40
lea eax, [ebp - 4]
call fcn.00405344
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dd5d
lea eax, [ebp - 4]
call fcn.00404e10
ret

Function at 0x42e2fc
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 + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405478
cmp dword [ebp - 4], 0
jle 0x42e339
mov eax, ebx
call fcn.00405344
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx]
call fcn.004050ec
mov esi, eax
test esi, esi
jle 0x42e36d
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00405344
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 0x42e34d
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42fc70
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.00405080
mov eax, dword [esi]
call fcn.004050ec
mov ebx, eax
test ebx, ebx
jbe 0x42fce2
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
mov al, byte [eax + edx - 1]
and eax, 0xff
bt dword [0x575fac], eax
jae 0x42fcdd
mov eax, esi
call fcn.00405344
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x42fcb9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4327e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x432831
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x432831
cmp dword [eax + 0x3c], 0
je 0x432831
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 4], eax
push 0xf8
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x43282c
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x432831
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret

Function at 0x43dcdc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x43dceb
xor eax, eax
pop esi
pop ebx
ret
cmp byte [0x577504], 0
jne 0x43dcf9
call fcn.0043dc80
or eax, 0xffffffff
xor edx, edx
mov dl, byte [ebx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x584904]
shr eax, 8
xor edx, eax
mov eax, edx
inc ebx
dec esi
test esi, esi
jne 0x43dcfc
xor eax, 0xffffffff
pop esi
pop ebx
ret

Function at 0x43dd24
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.004050ec
test eax, eax
jle 0x43dd68
mov edx, 1
xor ecx, ecx
mov cl, byte [esi + edx - 1]
movzx edi, bx
shr edi, 8
xor ecx, edi
and ecx, 0xff
mov cx, word [ecx*2 + 0x577304]
shl ebx, 8
and bx, 0xffff
xor cx, bx
mov ebx, ecx
inc edx
dec eax
jne 0x43dd3b
mov eax, ebx
pop edi
pop esi
pop ebx
ret