joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407740
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, word [edx + 4]
imul eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx + 0x18]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov word [ebp - 0x14], cx
mov edx, 1
mov word [ebp - 0x12], dx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x1e], ax
mov cx, word [ebp + 0xc]
mov word [ebp - 0x1a], cx
xor edx, edx
mov word [ebp - 0x20], dx
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov word [ebp - 0x1c], cx
mov edx, 0x1a
mov word [ebp - 0x10], dx
mov ax, word [ebp + 0xc]
mov word [ebp - 0xe], ax
cmp dword [ebp + 0x10], 0x400
jae 0x4077b9
mov byte [ebp - 1], 6
cmp dword [ebp + 0x10], 0x40
jae 0x4077c9
mov byte [ebp - 1], 7
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
jmp 0x4077db
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jae 0x407802
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 1]
mov byte [edx + ecx*4 + 0x68], al
movsx cx, byte [ebp + 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov word [eax + edx*4 + 0x6a], cx
jmp 0x4077d2
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x18]
push ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0x14]
push edx
call sub.KERNEL32.dll_WriteConsoleOutputA
mov esp, ebp
pop ebp
ret
Function at 0x401cb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43617d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x448040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
je 0x401ced
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
lea ecx, [ebp - 0x78]
call fcn.004015f0
test al, al
je 0x401eaf
xor eax, eax
mov dword [ebp - 0x30], eax
add eax, 0x7b
cmp eax, 0x1e078
jl 0x401d05
call fcn.00408c10
and eax, 0x80000001
jns 0x401d23
dec eax
or eax, 0xfffffffe
inc eax
lea edx, [eax + 1]
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
call fcn.004014c0
mov dword [ebp - 4], 0
mov esi, dword [eax]
mov dword [eax], 0
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x401d58
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
je 0x401d63
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x401d76
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x905a4d
xorps xmm0, xmm0
mov dword [ebp - 0x50], 3
lea edi, [ebp - 0x30]
mov dword [ebp - 0x4c], 4
sub edi, eax
mov dword [ebp - 0x48], 0xffff
lea eax, [ebp - 0x21]
mov dword [ebp - 0x44], 0xb8
movups xmmword [ebp - 0x20], xmm0
push 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
call fcn.004025e0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x20]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 3
test edi, edi
je 0x401e46
cmp edi, 0x7fffffff
ja 0x401ecc
mov ecx, edi
call fcn.00402190
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
add eax, edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x54]
mov esi, dword [ebp - 0x1c]
push edi
push eax
push esi
call fcn.004070f0
lea eax, [edi + esi]
mov dword [ebp - 0x30], 0
add esp, 0xc
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
push 4
push 0x3000
push eax
push 0
call dword [ebp - 0x60]
mov esi, eax
test esi, esi
je 0x401e8b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub ecx, edx
push ecx
push edx
push esi
call fcn.004070f0
lea eax, [ebp - 0x78]
mov ecx, esi
push eax
call fcn.00401a80
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00401f50
mov eax, dword [ebp - 0x20]
push 8
push eax
mov dword [ebp - 0x20], 0
call fcn.00402630
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004025d0
mov esp, ebp
pop ebp
ret
call fcn.00402180
int3
Function at 0x406fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00406be0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407002
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x437150]
call dword [ebp - 8]
jmp 0x40700c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x40b140
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40b15e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp + 8]
push edx
call fcn.0040b240
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4215f0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.0040a160
lea ecx, [ebp - 4]
call fcn.004215c0
movzx eax, al
test eax, eax
jne 0x42162d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.00421500
mov eax, dword [ebp - 0x18]
jmp 0x421755
lea ecx, [ebp - 4]
call fcn.00408860
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00421580
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.00408860
push eax
push 0
push 0
call fcn.00421440
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x421693
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.00421500
mov eax, dword [ebp - 0x20]
jmp 0x421755
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040dc60
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00404200
lea ecx, [ebp - 8]
call fcn.00404240
movzx edx, al
test edx, edx
jne 0x4216dc
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.004047d0
lea ecx, [ebp - 4]
call fcn.00421500
mov eax, dword [ebp - 0x24]
jmp 0x421755
lea ecx, [ebp - 8]
call fcn.00404290
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.00408860
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.00421440
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x421737
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.004047d0
lea ecx, [ebp - 4]
call fcn.00421500
mov eax, dword [ebp - 0x34]
jmp 0x421755
lea ecx, [ebp - 8]
call fcn.0040a210
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.004047d0
lea ecx, [ebp - 4]
call fcn.00421500
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x42aac0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.0041f8a0
lea ecx, [ebp - 0x34]
call fcn.0041f8a0
call fcn.0041c020
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041f000
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42ab13
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.0041f940
lea ecx, [ebp - 0x4c]
call fcn.0041f940
mov eax, dword [ebp - 8]
jmp 0x42ab88
call fcn.0041c020
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041f000
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42ab4e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.0041f940
lea ecx, [ebp - 0x4c]
call fcn.0041f940
mov eax, dword [ebp - 0x10]
jmp 0x42ab88
lea ecx, [ebp - 0x34]
call fcn.0041c1b0
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.0041c1b0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
call fcn.0041f940
lea ecx, [ebp - 0x4c]
call fcn.0041f940
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x42fc00
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00435860
mov eax, dword [0x448040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x449908]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x42fdd8
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x42fd27
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x42fd27
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x42fd05
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x42fc89
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42fd91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x42fdf8
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x42fdd3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x42fdf8
jmp 0x42fc62
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004025d0
mov esp, ebp
pop ebp
ret
Function at 0x42fe10
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00435860
mov eax, dword [0x448040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x449908]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x42fffb
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x42ff46
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x42ff46
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x42ff22
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x42fe99
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42ffb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x43001b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x42fff6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x43001b
jmp 0x42fe72
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004025d0
mov esp, ebp
pop ebp
ret
Function at 0x401560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x480494]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004397b0
add esp, 0xc
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x401668
mov ecx, dword [ebp - 0x114]
call fcn.00402190
push eax
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0x474298
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x118], str._none_value_
lea edx, [ebp - 0x110]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
mov cl, byte [eax]
mov byte [ebp - 0x11d], cl
mov edx, dword [ebp - 0x118]
cmp cl, byte [edx]
jne 0x401641
cmp byte [ebp - 0x11d], 0
je 0x401635
mov eax, dword [ebp - 0x11c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x11e], cl
mov edx, dword [ebp - 0x118]
cmp cl, byte [edx + 1]
jne 0x401641
add dword [ebp - 0x11c], 2
add dword [ebp - 0x118], 2
cmp byte [ebp - 0x11e], 0
jne 0x4015e3
mov dword [ebp - 0x124], 0
jmp 0x40164c
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
cmp dword [ebp - 0x128], 0
jne 0x401668
mov eax, 1
jmp 0x401696
mov ecx, dword [ebp - 0x114]
call fcn.00402190
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x401690
xor eax, eax
jmp 0x401696
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437ab2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4017e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov eax, dword [0x480494]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x924], ecx
mov dword [ebp - 0x91c], 0
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea eax, [ebp - 0x807]
push eax
call fcn.004397b0
add esp, 0xc
mov byte [ebp - 0x918], 0
push 0x103
push 0
lea ecx, [ebp - 0x917]
push ecx
call fcn.004397b0
add esp, 0xc
mov ecx, dword [ebp - 0x924]
call fcn.00402190
push eax
push 0x800
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [ebp - 0x80c], 0
jmp 0x401876
mov eax, dword [ebp - 0x80c]
add eax, 1
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0x800
jge 0x4018b8
mov ecx, dword [ebp - 0x80c]
movsx edx, byte [ebp + ecx - 0x808]
test edx, edx
jne 0x4018b6
mov eax, dword [ebp - 0x80c]
movsx ecx, byte [ebp + eax - 0x808]
mov edx, dword [ebp - 0x80c]
movsx eax, byte [ebp + edx - 0x807]
cmp ecx, eax
jne 0x4018b6
jmp 0x4018b8
jmp 0x401867
mov ecx, dword [ebp - 0x80c]
add ecx, 1
mov dword [ebp - 0x920], ecx
mov ecx, dword [ebp + 8]
call fcn.00401350
mov dword [ebp - 0x80c], 0
jmp 0x4018ea
mov edx, dword [ebp - 0x80c]
add edx, 1
mov dword [ebp - 0x80c], edx
mov eax, dword [ebp - 0x80c]
cmp eax, dword [ebp - 0x920]
jge 0x401967
mov ecx, dword [ebp - 0x91c]
mov edx, dword [ebp - 0x80c]
mov al, byte [ebp + edx - 0x808]
mov byte [ebp + ecx - 0x918], al
mov ecx, dword [ebp - 0x91c]
add ecx, 1
mov dword [ebp - 0x91c], ecx
mov edx, dword [ebp - 0x80c]
movsx eax, byte [ebp + edx - 0x808]
test eax, eax
jne 0x401962
lea ecx, [ebp - 0x918]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004013a0
push 0x104
push 0
lea edx, [ebp - 0x918]
push edx
call fcn.004397b0
add esp, 0xc
mov dword [ebp - 0x91c], 0
jmp 0x4018db
mov ecx, dword [ebp + 8]
call fcn.00401330
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437ab2
mov esp, ebp
pop ebp
ret 4
Function at 0x410811
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x464650
call fcn.00439166
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401e50
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x410873
call fcn.00409270
cmp eax, 1
jne 0x410873
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041008a
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004024d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004012d0
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012d0
mov eax, esi
call fcn.0043923e
ret 0x10

Function at 0x41089c
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x46467b
call fcn.00439166
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401e50
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4108fe
call fcn.00409270
cmp eax, 1
jne 0x4108fe
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041008a
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004024d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004012d0
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012d0
mov eax, esi
call fcn.0043923e
ret 0x14

Function at 0x41092a
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x4646a6
call fcn.00439166
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401e50
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x41098c
call fcn.00409270
cmp eax, 1
jne 0x41098c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041008a
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004024d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004012d0
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012d0
mov eax, esi
call fcn.0043923e
ret 8
Function at 0x414469
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46497d
call fcn.00439166
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41448e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4144d4
lea ecx, [ebp - 0x10]
call fcn.00401e10
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404fdc
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012d0
mov eax, esi
call fcn.0043923e
ret 8

Function at 0x41e739
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41e780
call fcn.00409e8a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41e780
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41e79c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041e2b3
mov esi, eax
test edi, edi
je 0x41e79a
test ebx, ebx
je 0x41e79a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4280b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4280dd
cmp dword [edi + 0x54], 0
jne 0x4280dd
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00409e8a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042807a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8