joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb4f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526714
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x5640a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
lea eax, [edi + 0x10]
mov dword [edi], vtable.CConnection.0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4cb546
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x30]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
lea eax, [edi + 0x48]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov byte [ebp - 4], 4
push pe_nt_image_headers32
mov dword [edi + 0x28], 0
mov byte [edi + 0xc], 0
call fcn.004e204b
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004b9990
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [edi + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x2c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4cbe70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x4cbef2
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x4cbef2
call fcn.004ba240
test eax, eax
je 0x4cbe96
push dword [ebp + 8]
mov ecx, eax
call fcn.004ba5f0
push ebx
push edi
lea ebx, [esi + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x64]
sub eax, dword [esi + 0x60]
sar eax, 2
cmp eax, 5
jge 0x4cbeda
cmp dword [esi + 0x28], eax
jne 0x4cbeda
push 0
push 0
push esi
push 0x4cb8f0
push 0
push 0
call fcn.00500eb9
add esp, 0x18
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
lea ecx, [esi + 0x60]
push eax
call fcn.00406f80
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 1
push 0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
pop edi
pop ebx
pop esi
pop ebp
ret 4

Function at 0x4ce465
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4ce473
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and eax, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4ce4d1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x4cee5e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cee84
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4cee84
xor al, al
jmp 0x4cee98
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4cffb0
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x526eb5
call fcn.004e287b
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4cffd0
mov al, 1
jmp 0x4d0017
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4cffe1
xor al, al
jmp 0x4d0017
lea ecx, [ebp - 0x44]
call fcn.004d0122
lea ecx, [ebp - 0x1c]
call fcn.004cf669
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.004d01ba
test al, al
je 0x4d000c
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.004e2516
pop ecx
mov al, bl
call fcn.004e2844
ret

Function at 0x4d0071
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4d06d9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret

Function at 0x4e513b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x51763a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005172fa
Function at 0x401850
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x401875
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x4018e8
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4018aa
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x4018dd
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x4018db
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x4018a1
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x40186c
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
push 0x5b234270
mov ecx, 0x69e637ed
pop edi
xor ecx, edi
push ecx
push 0x8bd58da
mov esi, 0x3b780d45
pop edi
xor esi, edi
pop eax
xor esi, eax
mov edi, 0x24ec64e9
in al, dx
and al, 0x81
not dword [edi]
int1
push edi
mov eax, 0x588a128c
xor eax, 0x4ab95286
push 0x7d65f0e6
mov edx, 0x7d65f726
pop esi
xor edx, esi
xor eax, edx
mov edx, 0x23ad00
mov esi, 0xcc052d0
xor edx, esi
push edx
mov ebx, 0xe47286
mov ecx, 0x1e34ca9c
xor ecx, ebx
pop edi
xor ecx, edi
xor ecx, eax
cmp ecx, 0
je 0x403fc4
add byte [eax], al
xor eax, eax
mov dword [0x40c02c], eax
mov byte [0x40c033], 2
mov byte [0x40c034], 2
mov byte [0x40c035], 3
mov word [0x40c3dc], 0
mov word [0x40c3ec], 1
call fcn.0040285c
mov eax, 0x40c038
mov edx, 0x404398
call fcn.00403c25
mov eax, 0x40c204
mov edx, 0x404398
call fcn.00403c25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404391
ret

Function at 0x40520c
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
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
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
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x406a26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a4a
xor eax, eax
test eax, eax
je 0x406a5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a5d
xor ecx, ecx
jmp 0x406a60
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406bba
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b94
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4011c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011d8
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011ea
xor eax, eax
jmp 0x40121c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40120e
cmp esi, eax
jae 0x4011e6
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jae 0x4011e6
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x401af3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, 0x1000
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 8], ebx
call sub.MSVCR70.dll_void____cdecl_operator_new___unsigned_int_
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x30]
push ecx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040d2e0
add esp, 0x10
cmp eax, ebx
mov dword [esi + 0x3c], eax
jl 0x401bf5
mov eax, dword [esi + 0x34]
push ebx
push pe_nt_image_headers32
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [0x415f88]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x401bc8
jmp 0x401c25
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x401be0
cmp byte [esi + 0x28], 1
je 0x401be0
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
fild dword [ebp - 0x10]
test eax, eax
jge 0x401b82
fadd qword [0x4103b0]
mov eax, dword [esi + 0x38]
fild dword [esi + 0x38]
test eax, eax
jge 0x401b92
fadd qword [0x4103b0]
fdivp st(1)
fmul qword [0x4103a8]
call fcn.0040e3b8
push eax
lea ecx, [esi + 8]
call fcn.0040191e
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401c13
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jne 0x401c13
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push edi
push dword [ebp - 4]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [esi + 0x3c], eax
jge 0x401b62
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp byte [esi + 0x28], 1
sete al
mov dword [esi + 0x3c], eax
push dword [ebp - 4]
call sub.MSVCR70.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 8]
cmp eax, ebx
pop ecx
je 0x401c0b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x3c]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x34]
call dword [0x415f8c]
push dword [ebp - 4]
call sub.MSVCR70.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
mov dword [esi + 0x3c], eax
jmp 0x401c0e
Function at 0x402391
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [0x4160b4]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 1
call dword [0x415f94]
test eax, eax
je 0x4024d7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4024d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4024d7
call dword [0x415030]
mov dword [ebp + 8], eax
xor eax, eax
mov ax, word [edi]
test ax, ax
mov dword [ebp - 8], eax
je 0x4024d7
inc edi
inc edi
mov ax, word [edi]
inc edi
inc edi
mov ecx, dword [edi]
add edi, 4
cmp ax, 0x403
mov dword [ebp - 0x10], ecx
jne 0x402457
test edi, edi
jne 0x40241b
xor ebx, ebx
jmp 0x40244d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0040e430
mov ebx, esp
test ebx, ebx
je 0x402417
and word [ebx], 0
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push dword [ebp + 8]
call dword [0x415fac]
push ebx
push 0
push 0x143
jmp 0x4024b0
cmp ax, 0x1234
jne 0x4024ca
or dword [ebp - 0x30], 0xffffffff
test edi, edi
mov dword [ebp - 0x34], 1
jne 0x402470
xor ebx, ebx
jmp 0x4024a2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0040e430
mov ebx, esp
test ebx, ebx
je 0x40246c
and word [ebx], 0
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push dword [ebp + 8]
call dword [0x415fac]
lea eax, [ebp - 0x34]
push eax
push 0
mov dword [ebp - 0x2c], ebx
push 0x40b
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call dword [0x416018]
cmp eax, 0xffffffff
jne 0x4024ca
and dword [ebp - 4], 0
add edi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
jne 0x4023ed
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408e1c
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [0x415f84]
cmp eax, edi
mov dword [esi + 0x30], eax
jne 0x408e38
xor eax, eax
jmp 0x408e4c
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x408931
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ecx
ret
Function at 0x40cda0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x118
mov eax, dword [0x415f54]
xor eax, dword [esp + 0x118]
push esi
mov esi, ecx
mov dword [esp + 0x118], eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov byte [esi + 0xc], al
lea eax, [esp + 4]
push eax
mov dword [esi], 0x4115f0
mov dword [esp + 8], 0x114
call dword [0x415fa8]
mov cl, byte [esp + 0x14]
mov al, 1
test al, cl
je 0x40cdf2
mov byte [esi + 0xc], al
mov byte [0x4160a8], al
mov ecx, dword [esp + 0x118]
xor ecx, dword [esp + 0x11c]
mov eax, esi
pop esi
add esp, 0x118
jmp fcn.0040e207

Function at 0x40d340
Capabilities:
Terminate process

Disassembly:
sub esp, 0x118
mov eax, dword [0x415f54]
xor eax, dword [esp + 0x118]
push esi
mov dword [esp + 0x118], eax
lea eax, [esp + 4]
push eax
mov esi, ecx
mov dword [esp + 8], 0x114
call dword [0x415fa8]
mov cl, byte [esp + 0x14]
mov al, 1
test al, cl
je 0x40d37c
mov byte [esi + 4], al
mov ecx, dword [esp + 0x118]
xor ecx, dword [esp + 0x11c]
pop esi
add esp, 0x118
jmp fcn.0040e207

Function at 0x40d530
Capabilities:
Set registry value

Disassembly:
sub esp, 0x84
push esi
mov esi, ecx
mov al, byte [esi + 4]
test al, al
je 0x40d5a0
lea eax, [esp + 8]
mov dword [esp + 4], eax
call dword [0x415030]
mov ecx, dword [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.0040c940
mov eax, dword [esp + 4]
mov ecx, dword [esi]
push 4
lea edx, [esp + 0x94]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
lea edx, [esp + 8]
cmp eax, edx
je 0x40d594
push eax
call dword [sym.imp.MSVCR70.dll_free]
add esp, 4
mov eax, esi
pop esi
add esp, 0x84
ret 8
mov ecx, dword [esp + 0x8c]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x94]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
add esp, 0x84
ret 8
Function at 0x40d5d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x84
push ebx
mov ebx, ecx
mov al, byte [ebx + 4]
test al, al
push esi
je 0x40d684
lea eax, [esp + 0xc]
push ebp
mov dword [esp + 0xc], eax
call dword [0x415030]
mov ecx, dword [esp + 0x98]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0040c940
mov esi, dword [esp + 0xc]
mov ebp, dword [sym.imp.MSVCR70.dll_free]
lea edx, [esp + 0x10]
cmp esi, edx
je 0x40d61e
push esi
call ebp
add esp, 4
lea eax, [esp + 0x10]
push edi
mov dword [esp + 0x10], eax
call dword [0x415030]
mov ecx, dword [esp + 0x98]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0040c940
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0xa0]
inc eax
push eax
mov eax, dword [ebx]
push esi
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
cmp eax, ecx
pop edi
je 0x40d676
push eax
call ebp
add esp, 4
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x84
ret 0xc
mov esi, dword [esp + 0x94]
push esi
call dword [0x415fbc]
mov ecx, dword [esp + 0x90]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x98]
push edx
mov edx, dword [ebx]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebx
add esp, 0x84
ret 0xc

Function at 0x40d6c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
push esi
mov esi, ecx
mov al, byte [esi + 4]
test al, al
mov dword [esp + 8], 4
je 0x40d734
lea eax, [esp + 0x10]
mov dword [esp + 0xc], eax
call dword [0x415030]
mov ecx, dword [esp + 0x94]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0040c940
mov eax, dword [esp + 0x98]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x40d75b
push eax
call dword [sym.imp.MSVCR70.dll_free]
add esp, 4
jmp 0x40d75b
mov eax, dword [esp + 0x98]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x98]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x40d76b
mov eax, esi
pop esi
add esp, 0x8c
ret 8
mov esi, dword [esp + 4]
xor eax, eax
cmp esi, 4
sete al
pop esi
dec eax
and eax, 0xd
add esp, 0x8c
ret 8
Function at 0x40d790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x90
push ebx
push esi
push edi
mov esi, ecx
call dword [0x415030]
mov dword [ebp + 0x60], eax
mov al, byte [esi + 4]
test al, al
je 0x40d861
mov eax, dword [ebp + 0x7c]
mov eax, dword [eax]
push eax
mov dword [ebp + 0x68], eax
call sub.MSVCR70.dll_void____cdecl_operator_new___unsigned_int_
lea ecx, [ebp - 0x20]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], ecx
call dword [0x415030]
mov edx, dword [ebp + 0x74]
push eax
push edx
lea ecx, [ebp - 0x24]
call fcn.0040c940
mov edx, dword [ebp - 0x24]
lea eax, [ebp + 0x68]
push eax
mov eax, dword [esi]
push edi
lea ecx, [ebp + 0x64]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp + 0x74], eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
cmp eax, ecx
je 0x40d80f
push eax
call dword [sym.imp.MSVCR70.dll_free]
add esp, 4
test edi, edi
jne 0x40d817
xor esi, esi
jmp 0x40d84b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040e430
mov esi, esp
test esi, esi
je 0x40d84b
mov edx, dword [ebp + 0x60]
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push edx
mov word [esi], 0
call dword [0x415fac]
mov eax, dword [ebp + 0x78]
push esi
push eax
call dword [sym.imp.MSVCR70.dll_wcscpy]
push edi
call sub.MSVCR70.dll_void___cdecl_operator_delete___void__
add esp, 0xc
jmp 0x40d889
mov ecx, dword [ebp + 0x7c]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x78]
shl edx, 1
lea eax, [ebp + 0x68]
push eax
mov eax, dword [ebp + 0x74]
push ecx
mov ecx, dword [esi]
mov dword [ebp + 0x68], edx
lea edx, [ebp + 0x64]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0x74], eax
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x40d8b6
cmp dword [ebp + 0x64], 1
je 0x40d8aa
mov eax, 0xd
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x7c]
shr edx, 1
mov dword [eax], edx
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc