joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ce70
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x46cea4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.0046cd80
test eax, eax
jne 0x46cebd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.0046cdf0
cmp eax, 1
je 0x46d04a
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x46cef6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x46cf72
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46cff2
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.0046ccb0
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x46d009
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x46cf12
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x46cfc0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.0046c960
test eax, eax
je 0x46cff2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x46cf8e
cmp dword [esp + 0x18], 1
jb 0x46cff2
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push closesocket
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.0046c840
cmp eax, 1
je 0x46d03b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46d019
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x46cff2
push ebp
mov ecx, ebx
call fcn.0046d060
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46d04a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x46d060
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x46d092
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.0046cdf0
test eax, eax
jne 0x46d0af
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x46d0d6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x46d124
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.0046cb00
test eax, eax
jne 0x46d10d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x46d0f3
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push closesocket
mov ecx, edi
call fcn.0046c8d0
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x46d147
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4
Function at 0x46e130
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46e179
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x46e5f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046e1a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046e220
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046e220
lea ecx, [esi + 0xc]
call fcn.00482510
lea ecx, [esi + 0x10]
call fcn.00482510
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046f7b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046f7b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046f7b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00482585
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00482585
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46f9a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46fa06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46fa06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46f9e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x484929
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x484961
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004829e0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004829b8
jmp 0x48496d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48601e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x486060
call fcn.0048bb93
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x486060
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x486057
xor eax, eax
jmp 0x486068
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048606e
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c0c3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48c0f1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c10f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048c029
jmp 0x48c10f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c10f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048c029
test edi, edi
mov eax, edi
jne 0x48c0f9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402a60
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x40d65c
call fcn.00406918
sub esp, 0x40
push ebx
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.00402dbf
mov al, byte [ebp + 0xb]
xor edi, edi
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
mov byte [ebp - 0x1c], al
call fcn.00401291
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
push esi
call fcn.00406940
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004012cd
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
push eax
push 0x80000002
mov byte [ebp - 4], 1
call fcn.00402f1a
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00401291
test bl, bl
je 0x402c1d
cmp byte [ebp + 8], 0
je 0x402bd2
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00401291
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov byte [ebp - 0x2c], al
call fcn.00401291
mov esi, str.ISUSScheduler
push esi
call fcn.00406940
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004012cd
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.00402f70
mov bl, al
push 1
neg bl
sbb bl, bl
lea ecx, [ebp - 0x2c]
inc bl
mov byte [ebp - 4], 2
call fcn.00401291
test bl, bl
je 0x402bc7
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x412a68]
push dword [eax]
call fcn.0040611b
pop ecx
test al, al
pop ecx
je 0x402bc7
mov ebx, 0x4100d4
push ebx
call fcn.00406940
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00402d47
mov ebx, str.start
push ebx
call fcn.00406940
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00402d47
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00401291
push esi
call fcn.00406940
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004012cd
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.00403036
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401291
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x1c]
jmp 0x402c10
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00401291
mov esi, str.ISUSScheduler
push esi
call fcn.00406940
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004012cd
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call fcn.004030b1
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401291
lea ecx, [ebp - 0x4c]
call fcn.00402f54
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00402e1c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
xor ebx, ebx
cmp byte [ecx + 0xc], bl
je 0x402fda
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xff
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x402f97
mov eax, 0x40e124
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x104]
push edx
lea edx, [ebp + 8]
push edx
push ebx
push eax
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402fda
cmp dword [ebp + 8], 1
jne 0x402fda
lea eax, [ebp - 0x104]
push eax
call fcn.00406940
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004012cd
mov bl, 1
mov al, bl
pop ebx
leave
ret 8

Function at 0x402fe1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp byte [ecx + 0xc], bl
je 0x40302f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x403004
mov eax, 0x40e124
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 8]
push edx
lea edx, [ebp + 8]
push edx
push ebx
push eax
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40302f
cmp dword [ebp + 8], 4
jne 0x40302f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov bl, 1
mov dword [eax], ecx
mov al, bl
pop ebx
leave
ret 8

Function at 0x403036
Capabilities:
Set registry value

Disassembly:
xor al, al
cmp byte [ecx + 0xc], al
je 0x403079
mov eax, dword [esp + 8]
push esi
push edi
mov edx, 0x40e124
mov esi, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x403054
mov eax, edx
mov edi, dword [esp + 0xc]
mov edi, dword [edi + 4]
test edi, edi
je 0x403061
mov edx, edi
push esi
push eax
push 1
push 0
push edx
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb al, al
pop edi
inc al
pop esi
ret 8

Function at 0x40307c
Capabilities:
Set registry value

Disassembly:
xor al, al
cmp byte [ecx + 0xc], al
je 0x4030ae
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x403093
mov eax, 0x40e124
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push eax
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb al, al
inc al
ret 8

Function at 0x4030b1
Capabilities:
Delete registry value

Disassembly:
xor al, al
cmp byte [ecx + 0xc], al
je 0x4030d8
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4030c8
mov eax, 0x40e124
push eax
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
neg eax
sbb al, al
inc al
ret 4
Function at 0x403d87
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x40d820
call fcn.00406918
sub esp, 0x64
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00403637
mov eax, dword [ebp - 0x24]
xor esi, esi
inc eax
mov dword [ebp - 4], esi
push eax
call fcn.004070d5
mov ebx, eax
mov eax, dword [ebp - 0x28]
cmp eax, esi
pop ecx
jne 0x403dc0
mov eax, 0x40e124
push eax
push ebx
call fcn.00407500
push 0x44
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.004071a0
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x70], 0x44
call fcn.004071a0
add esp, 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push 0x200
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
push ebx
call fcn.004061e0
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401291
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40608d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
inc esi
push esi
call fcn.004070d5
push esi
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.004071a0
mov edi, dword [edi + 4]
add esp, 0x10
cmp edi, esi
jne 0x4060be
mov edi, 0x40e124
push edi
push ebx
call fcn.00407500
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.004071a0
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], edi
call fcn.004071a0
add esp, 0x20
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x200
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push ebx
call fcn.004061e0
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ab99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410820
cmp edx, dword [eax]
je 0x40abbb
add eax, 8
inc ecx
cmp eax, 0x4108b0
jl 0x40abac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410820]
jne 0x40ace9
mov eax, dword [0x412ab8]
cmp eax, 1
je 0x40acc3
test eax, eax
jne 0x40abec
cmp dword [0x4102b8], 1
je 0x40acc3
cmp edx, 0xfc
je 0x40ace9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ac23
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407500
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406940
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ac66
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406940
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e704
push edi
call fcn.0040c1c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407500
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407510
lea eax, [ebp - 0xa0]
push 0x40e6e4
push eax
call fcn.00407510
push dword [esi + 0x410824]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407510
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040cb38
add esp, 0x2c
pop edi
jmp 0x40ace9
lea eax, [ebp + 8]
lea esi, [esi + 0x410824]
push 0
push eax
push dword [esi]
call fcn.00406940
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401110
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push 0
call fcn.00429457
push str.AMKillDlg
push 0
push 0x1f0001
mov dword [esi], method.CWinApp.virtual_0
mov dword [esi + 0xc4], 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x401151
push str.AMKillDlg
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov eax, esi
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.0040c9be
nop
push esi
mov esi, ecx
call fcn.00401180
test byte [esp + 8], 1
je 0x401178
push esi
call fcn.0041e30e
add esp, 4
mov eax, esi
pop esi
ret 4
mov ecx, 0x43f2c0
jmp 0x401110

Function at 0x401f50
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, esi
inc edi
call fcn.00401f30
mov ebx, 1
cmp edi, 0x800
mov dword [esi + 8], ebx
mov eax, 0x800
ja 0x401f87
mov eax, edi
push eax
mov eax, dword [esi + 0x18]
push ebp
push eax
call fcn.0040cfd0
mov ecx, dword [esi + 0xc]
mov byte [esi + 0x10], bl
add esp, 0xc
mov eax, dword [ecx + 8]
test al, 8
jne 0x401fde
mov edx, dword [esi + 4]
test edx, edx
je 0x401fde
test al, 2
je 0x401fb8
push 2
call fcn.004026a0
test al, al
jne 0x401fc8
mov eax, dword [esi + 0xc]
test byte [eax + 8], 2
jne 0x401fde
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x401fde
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push edi
push ebp
mov eax, dword [edx + 4]
push ebx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 0xc]
test byte [ecx + 8], 2
je 0x401fec
call fcn.004026d0
mov byte [esi + 0x11], bl
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x402000
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
mov dword [esi + 8], 4
mov ecx, dword [eax]
lea edi, [esi + 0x14]
mov byte [esi + 0x10], 1
mov dword [edi], ecx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
test al, 8
jne 0x402062
mov edx, dword [esi + 4]
test edx, edx
je 0x402062
test al, 2
je 0x40203a
push 2
call fcn.004026a0
test al, al
jne 0x40204a
mov eax, dword [esi + 0xc]
test byte [eax + 8], 2
jne 0x402062
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x402062
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 4
push edi
mov ecx, dword [eax + 4]
push 4
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 0xc]
test byte [ecx + 8], 2
je 0x402070
call fcn.004026d0
mov byte [esi + 0x11], 1
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x402080
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
test ebp, ebp
je 0x4021ef
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], 3
push ebx
push edi
mov eax, dword [ecx + 8]
mov ebx, 2
test al, 8
jne 0x4020e8
mov edx, dword [esi + 4]
test edx, edx
je 0x4020e8
test bl, al
je 0x4020be
push ebx
call fcn.004026a0
test al, al
jne 0x4020cd
mov eax, dword [esi + 0xc]
test byte [eax + 8], bl
jne 0x4020e8
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4020e8
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push ebp
push eax
mov eax, dword [edx + 4]
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 0xc]
test byte [ecx + 8], bl
je 0x4020f5
call fcn.004026d0
mov byte [esi + 0x11], 1
mov ecx, dword [esi + 0x20]
add esi, 0x1c
test ecx, ecx
jne 0x402107
xor eax, eax
jmp 0x40210c
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, ebp
jae 0x402195
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x40211f
xor eax, eax
jmp 0x402124
mov eax, dword [esi + 0xc]
sub eax, ecx
cmp eax, ebp
jae 0x402195
test ebp, ebp
mov eax, ebp
jge 0x402130
xor eax, eax
push eax
call fcn.0041e2e5
mov edi, dword [esi + 4]
mov ebx, eax
mov eax, dword [esi + 8]
add esp, 4
cmp edi, eax
mov ebp, ebx
mov dword [esp + 0x10], eax
je 0x40215f
push edi
push ebp
call fcn.00403d00
mov eax, dword [esp + 0x18]
add esp, 8
inc ebp
inc edi
cmp edi, eax
jne 0x40214b
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x14], eax
call fcn.0041e30e
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
add esp, 4
lea edx, [ebx + ecx]
test eax, eax
mov dword [esi + 0xc], edx
jne 0x402184
xor ecx, ecx
jmp 0x402189
mov ecx, dword [esi + 8]
sub ecx, eax
mov ebp, dword [esp + 0x1c]
add ecx, ebx
mov dword [esi + 8], ecx
mov dword [esi + 4], ebx
mov edi, dword [esi + 8]
mov ecx, dword [esi + 4]
mov eax, edi
cmp eax, edi
je 0x4021ab
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, edi
jne 0x4021a1
mov eax, dword [esi + 8]
pop edi
mov dword [esp + 0x18], eax
mov dword [esi + 8], ecx
pop ebx
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4021c2
xor eax, eax
jmp 0x4021c7
mov eax, dword [esi + 8]
sub eax, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
add eax, ecx
mov ecx, esi
push eax
push 1
push edx
call fcn.00403320
mov eax, dword [esi + 4]
test eax, eax
jne 0x4021e6
xor ecx, ecx
jmp 0x4021eb
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, ebp
jb 0x4021b7
pop esi
pop ebp
pop ecx
ret 8