joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100200fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10033020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.10027160]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1001917a
mov dword [ebp - 0x14], eax
cmp dword [0x10036df0], esi
jne 0x100201f1
push 0x800
push esi
push str.id_id
call dword [fcn.1002716c]
mov edi, eax
test edi, edi
jne 0x1002017e
call dword [fcn.10027094]
cmp eax, 0x57
jne 0x100202d1
push esi
push esi
push str.id_id
call dword [fcn.1002716c]
mov edi, eax
test edi, edi
je 0x100202d1
push str.it_ch
push edi
call dword [fcn.1002709c]
test eax, eax
je 0x100202d1
push eax
call ebx
push str.it_it
push edi
mov dword [0x10036df0], eax
call dword [fcn.1002709c]
push eax
call ebx
push 0x1002cd90
push edi
mov dword [0x10036df4], eax
call dword [fcn.1002709c]
push eax
call ebx
push str.kk_kz
push edi
mov dword [0x10036df8], eax
call dword [fcn.1002709c]
push eax
call ebx
mov dword [0x10036e00], eax
test eax, eax
je 0x100201ee
push 0x1002cdc0
push edi
call dword [fcn.1002709c]
push eax
call ebx
mov dword [0x10036dfc], eax
mov edi, dword [ebp - 0x18]
call dword [fcn.1002717c]
test eax, eax
je 0x10020216
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10020209
push eax
call dword [0x1002711c]
cmp dword [ebp - 0x14], esi
je 0x1002022b
push 4
pop eax
jmp 0x100202d3
cmp dword [ebp - 0x14], esi
je 0x1002022b
push dword [0x10036df0]
call dword [fcn.10027164]
push 3
jmp 0x10020210
mov eax, dword [0x10036dfc]
mov ebx, dword [fcn.10027164]
cmp eax, edi
je 0x10020289
cmp dword [0x10036e00], edi
je 0x10020289
push eax
call ebx
push dword [0x10036e00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10020289
test eax, eax
je 0x10020289
call ecx
test eax, eax
je 0x1002027e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1002027e
test byte [ebp - 8], 1
jne 0x10020289
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100202b9
mov eax, dword [0x10036df4]
cmp eax, edi
je 0x100202b6
push eax
call ebx
test eax, eax
je 0x100202b6
call eax
mov esi, eax
test esi, esi
je 0x100202b6
mov eax, dword [0x10036df8]
cmp eax, edi
je 0x100202b6
push eax
call ebx
test eax, eax
je 0x100202b6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10036df0]
call ebx
test eax, eax
je 0x100202d1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100202d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001448b
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4010a9
push eax
mov dword fs:[0], esp
sub esp, 4
mov dword [ebp - 0x10], ecx
push ebx
push esi
xor ebx, ebx
lea esi, [ecx + 0x10]
mov dword [ebp - 4], ebx
mov dword [ecx], method.IDispatch.virtual_0
mov ecx, esi
call fcn.00441eff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
mov dword [ecx], 0x457068
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
push edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0044215d
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], ebx
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ecx + 0x34], ebx
call fcn.004010b3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401006
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4010a9
push eax
mov dword fs:[0], esp
sub esp, 4
mov dword [ebp - 0x10], ecx
push ebx
push esi
xor ebx, ebx
lea esi, [ecx + 0x10]
mov dword [ebp - 4], ebx
mov dword [ecx], method.IDispatch.virtual_0
mov ecx, esi
call fcn.00441eff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
mov dword [ecx], 0x457068
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x14]
push edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0044215d
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x1c], ebx
mov dword [ecx + 0x20], ebx
mov dword [ecx + 0x24], ebx
mov dword [ecx + 0x28], ebx
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ecx + 0x34], ebx
call fcn.004010b3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4069a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
xor ecx, ecx
mov dword [esp + 4], ecx
push esi
mov dword [esp + 0xc], ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov word [esp + 0x38], cx
mov dword [esp + 0x2c], ecx
mov word [esp + 0x3a], cx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x4c]
mov dword [esp + 0x40], ecx
lea edx, [esp + 8]
push eax
mov dword [esp + 0x48], ecx
push edx
mov dword [esp + 0x50], ecx
push ecx
mov dword [esp + 0x14], 0x44
push ecx
push ecx
push ecx
push ecx
push ecx
push str.control_printers
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406a2f
mov esi, 0x457018
mov eax, dword [esp + 0x60]
mov edi, eax
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x54
ret 4
mov esi, section..rdata
mov eax, dword [esp + 0x60]
mov edi, eax
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x54
ret 4

Function at 0x406b50
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406cae
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push esi
push edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, ecx
push str.notepad.exe
lea ecx, [ebp - 0x10]
add esi, 0x10
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], 0
mov word [ebp - 0x26], 0
call fcn.004420d2
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004424b5
push 0xc83
lea eax, [ebp - 0x14]
push eax
call fcn.00423b70
add esp, 8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.004424b5
mov byte [ebp - 4], 0
call fcn.00406ca6
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x58]
push ecx
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push 0
push 0
push 0
push 0x401
call fcn.004424cd
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
test eax, eax
je 0x406c9a
mov esi, 0x457018
call fcn.00442522
mov edi, dword [ebp + 8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xffffffff
call fcn.00406cb8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, section..rdata
call fcn.00442522
jmp 0x406c6f
Function at 0x407530
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407714
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
sub esp, 4
mov dword [ebp - 0x10], esp
push 0x467b8c
mov ecx, dword [ebp - 0x10]
call fcn.004420d2
mov dword [ebp - 4], 0
sub esp, 4
mov dword [ebp - 0x18], esp
push str.CorelDRAW
mov ecx, dword [ebp - 0x18]
call fcn.004420d2
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push eax
call fcn.00424380
mov dword [ebp - 4], 2
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0
push str.programs
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x34], 0
mov word [ebp - 0x32], 0
push eax
push ecx
call fcn.004422f0
mov esi, eax
push str.programsocrtrace.exe
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
push ecx
call fcn.004422f0
lea ecx, [ebp - 0x74]
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 4
push ecx
mov ebx, dword [esi]
push edx
push ebx
push 0
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], eax
call fcn.004076f4
mov byte [ebp - 4], 2
call fcn.004076fc
cmp dword [ebp - 0x10], 0
je 0x4076af
mov esi, 0x457018
mov edi, dword [ebp + 8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xffffffff
call fcn.0040771e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x10]
call fcn.00441eff
push 0x70
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
mov esi, section..rdata
call fcn.00442f63
push 0
mov eax, dword [ebp - 0x10]
push 0
push eax
call fcn.0044b53a
mov edi, dword [ebp + 8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 2
call fcn.004076ec
jmp 0x40768d
Function at 0x40d040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d116
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push esi
push eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.004420d2
mov dword [ebp - 4], 0
push str.RTFTYPE
mov eax, dword [ebp - 0x10]
push eax
call fcn.004281f0
mov ecx, eax
call fcn.00428410
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40d0b0
mov dword [ebp - 4], 0xffffffff
call fcn.0040d120
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.004281f0
mov ecx, eax
call fcn.00428410
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d091
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40d091
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x40d130
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 2
push 0x449
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jle 0x40d098
call fcn.0040d120
mov eax, 1
jmp 0x40d09f
Function at 0x423cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423e0b
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [ebp - 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
push 0x467ac0
call fcn.004420d2
push str.RTFTYPE
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
push eax
call fcn.004281f0
mov ecx, eax
call fcn.00428410
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x423d35
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.00441f0f
or dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
call fcn.00423e15
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004281f0
mov ecx, eax
call fcn.00428410
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x423d63
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.00441f0f
or dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
jmp 0x423d1c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x423de3
push esi
call fcn.004281f0
mov ecx, eax
call fcn.00428410
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
call fcn.00441f0f
mov byte [ebp - 4], 2
test esi, esi
je 0x423db9
mov al, byte [edi]
test al, al
je 0x423db9
push eax
lea ecx, [ebp - 0x18]
inc ebx
call fcn.004424a0
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
cmp ebx, esi
jb 0x423d9c
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 8]
push eax
call fcn.00441f0f
or dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
call fcn.00423ddb
mov byte [ebp - 4], 0
jmp 0x423d1c
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.00441f0f
or dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
jmp 0x423d1c
Function at 0x423f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4240b6
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
push ebx
lea ecx, [ebp - 0x10]
push esi
call fcn.00441eff
push str.SOFTWARECorel_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.004421ad
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00442478
push 0x4696ec
lea ecx, [ebp - 0x10]
call fcn.00442478
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push eax
call fcn.00442478
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x423ff0
push 0x467ac0
mov ecx, dword [ebp + 8]
call fcn.004420d2
or dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
call fcn.004240c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.00441eff
push 0x105
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004424cd
test eax, eax
jne 0x424029
push 0x467ac0
mov ecx, dword [ebp + 8]
call fcn.004420d2
or dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
call fcn.004240ae
jmp 0x423fd4
mov dword [ebp - 0x20], 0x105
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
mov eax, dword [ebp - 0x1c]
push 0
push str.ConfigDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00442522
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x424081
push 0x467ac0
mov ecx, dword [ebp + 8]
call fcn.004420d2
or dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
call fcn.004240ae
jmp 0x423fd4
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 8]
push eax
call fcn.00441f0f
or dword [ebp - 0x14], 1
mov byte [ebp - 4], 1
call fcn.004240ae
jmp 0x423fd4
Function at 0x4241d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42436a
push eax
mov dword fs:[0], esp
lea eax, [ebp + 0x10]
sub esp, 0x11c
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 2
push esi
push eax
push 0x4696ec
push ecx
call fcn.00442385
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 3
push str.SOFTWARECorel_
push edx
call fcn.00442385
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
push ecx
call fcn.00442267
mov byte [ebp - 4], 7
call fcn.0042434a
mov byte [ebp - 4], 6
call fcn.00424352
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4242a2
push 0x467ac0
mov ecx, dword [ebp + 8]
call fcn.004420d2
or dword [ebp - 0x10], 1
mov byte [ebp - 4], 2
call fcn.0042435a
mov byte [ebp - 4], 1
call fcn.00424362
mov byte [ebp - 4], 0
call fcn.00424374
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push str.ConfigDir
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], 0x100
call fcn.004420d2
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 8
push eax
mov edx, dword [ebp - 0x18]
push ecx
mov eax, dword [ebp - 0x1c]
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x424314
call fcn.00441ef9
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
call fcn.004421ad
or dword [ebp - 0x10], 1
mov byte [ebp - 4], 6
call fcn.00424342
jmp 0x424275
push 0x467ac0
mov ecx, dword [ebp + 8]
call fcn.004420d2
or dword [ebp - 0x10], 1
mov byte [ebp - 4], 6
call fcn.00424342
jmp 0x424275
Function at 0x430eb0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c638
push 0x434b14
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x46afb4], eax
xor eax, eax
mov al, byte [0x46afb5]
mov dword [0x46afc0], eax
mov eax, dword [0x46afb4]
shr dword [0x46afb4], 0x10
and eax, 0xff
mov dword [0x46afbc], eax
shl eax, 8
add eax, dword [0x46afc0]
mov dword [0x46afb8], eax
call fcn.00434ad0
test eax, eax
jne 0x430f24
push 0x1c
call fcn.00431060
add esp, 4
call fcn.00433810
test eax, eax
jne 0x430f37
push 0x10
call fcn.00431060
add esp, 4
mov dword [ebp - 4], 0
call fcn.004348f0
call fcn.00431fa0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47089c], eax
call fcn.00434760
mov dword [0x46af84], eax
test eax, eax
je 0x430f6a
cmp dword [0x47089c], 0
jne 0x430f74
push 0xffffffffffffffff
call fcn.00431b50
add esp, 4
call fcn.004344f0
call fcn.00434400
call fcn.00431b20
mov esi, dword [0x47089c]
mov al, byte [esi]
cmp al, 0x22
je 0x430f9b
cmp al, 0x20
jbe 0x430fc8
inc esi
cmp byte [esi], 0x20
ja 0x430f93
jmp 0x430fc8
inc esi
cmp byte [esi], 0x22
je 0x430fc7
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x430fc2
xor eax, eax
mov al, bl
push eax
call fcn.004343a0
add esp, 4
test eax, eax
je 0x430fbc
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x430fa4
cmp byte [esi], 0x22
jne 0x430fc8
inc esi
cmp byte [esi], 0
je 0x430fd8
cmp byte [esi], 0x20
ja 0x430fd8
inc esi
cmp byte [esi], 0
jne 0x430fcd
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x430ffc
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00431b50
jmp 0x43103d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431b90
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00431c50
cmp dword [0x46aff0], 1
mov esi, dword [esp + 0x10]
jne 0x431bb3
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x46afec], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x46afe8], bl
jne 0x431c0d
cmp dword [0x470898], 0
je 0x431bfb
mov edi, dword [0x470894]
sub edi, 4
cmp edi, dword [0x470898]
jb 0x431bfb
mov eax, dword [edi]
test eax, eax
je 0x431bf0
call eax
sub edi, 4
cmp edi, dword [0x470898]
jae 0x431be8
push 0x4670b4
push 0x4670ac
call fcn.00431c70
add esp, 8
push 0x4670bc
push 0x4670b8
call fcn.00431c70
add esp, 8
test ebx, ebx
je 0x431c2c
call fcn.00431c60
pop edi
pop esi
pop ebx
ret
mov dword [0x46aff0], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x433810
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00433900
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x46b470], eax
cmp eax, 0xffffffff
jne 0x43382a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.00436810
add esp, 8
mov esi, eax
test esi, esi
je 0x43386c
push esi
mov eax, dword [0x46b470]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x43386c
push esi
call fcn.00433870
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x433890
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x46b470]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4338f3
push 0x74
push 1
call fcn.00436810
add esp, 8
mov edi, eax
test edi, edi
je 0x4338e9
push edi
mov eax, dword [0x46b470]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4338e9
push edi
call fcn.00433870
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x4338f3
push 0x10
call fcn.00431060
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x434760
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x46b7fc], ebx
jne 0x4347af
call esi
cmp eax, ebx
mov edi, eax
je 0x43478d
mov dword [0x46b7fc], 1
jmp 0x4347af
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4347a5
mov dword [0x46b7fc], 2
jmp 0x4347af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x46b7fc], 1
jne 0x43485e
test edi, edi
jne 0x4347d2
call esi
mov edi, eax
test edi, edi
jne 0x4347d2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4347ec
add esi, 2
cmp word [esi], 0
jne 0x4347da
add esi, 2
cmp word [esi], 0
jne 0x4347da
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x43484d
push ebp
call fcn.004313a0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x43484d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x43483c
push ebx
call fcn.00431470
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x46b7fc], 2
jne 0x4348e2
test ebx, ebx
jne 0x434881
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x434881
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x434896
inc ebp
cmp byte [ebp], 0
jne 0x434888
inc ebp
cmp byte [ebp], 0
jne 0x434888
sub ebp, ebx
inc ebp
push ebp
call fcn.004313a0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4348bb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret