joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e001313
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x2e001200
push 0x2e0011e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x2e001348
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x2e0011e0
push ebx
call edi
mov dword [0x2e0011e0], esi
test esi, esi
jne 0x2e0013ac
mov dword [0x2e0011e0], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x2e003010], 0x44bf19b1
pop ebx
leave
ret

Function at 0x2e0013c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e0011e0]
jne 0x2e001680
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2e003148], eax
mov dword [0x2e003144], ecx
mov dword [0x2e003140], edx
mov dword [0x2e00313c], ebx
mov dword [0x2e003138], esi
mov dword [0x2e003134], edi
mov word [0x2e003160], ss
mov word [0x2e003154], cs
mov word [0x2e003130], ds
mov word [0x2e00312c], es
mov word [0x2e003128], fs
mov word [0x2e003124], gs
pushfd
pop dword [0x2e003158]
mov eax, dword [ebp]
mov dword [0x2e00314c], eax
mov eax, dword [ebp + 4]
mov dword [0x2e003150], eax
lea eax, [ebp + 8]
mov dword [0x2e00315c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2e003098], 0x10001
mov eax, dword [0x2e003150]
mov dword [0x2e00304c], eax
mov dword [0x2e003040], 0xc0000409
mov dword [0x2e003044], 1
mov eax, dword [0x2e0011e0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2e003010]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x2e003090], eax
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2e001214
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x2e003090], 0
jne 0x2e00176c
push 1
call sub.MSVCR90.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x111b418f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3758461d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402061
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408a40
cmp edx, dword [eax]
je 0x402083
add eax, 8
inc ecx
cmp eax, 0x408ad0
jl 0x402074
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408a40]
jne 0x4021b1
mov eax, dword [0x4090c8]
cmp eax, 1
je 0x40218b
test eax, eax
jne 0x4020b4
cmp dword [0x408974], 1
je 0x40218b
cmp edx, 0xfc
je 0x4021b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4020eb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402870
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004029f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40212e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004029f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407300
push edi
call fcn.00403e20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402870
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402880
lea eax, [ebp - 0xa0]
push 0x4072e0
push eax
call fcn.00402880
push dword [esi + 0x408a44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402880
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403d8e
add esp, 0x2c
pop edi
jmp 0x4021b1
lea eax, [ebp + 8]
lea esi, [esi + 0x408a44]
push 0
push eax
push dword [esi]
call fcn.004029f0
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 0xe3bb5c
Capabilities:
Encode data using xor

Disassembly:
outsd dx, dword [esi]
clc
test dword [eax + 0x98c4], eax
jmp 0xe3bb66
pushal
call 0xe3bb6c
pop ebp
sub ebp, 0x10
sub ebp, 0xa3bb5c
jmp 0xe3bb82
mov eax, 0xa3bb5c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c9
mov edx, 0x7643e32e
xor byte [eax], dl
inc eax
dec ecx
jne 0xe3bb99
jmp 0xe3bbac
movsd dword es:[edi], dword [esi]
jecxz 0xe3bb54
cmpsd dword [esi], dword es:[edi]
adc ch, byte [esi]
scasd eax, dword es:[edi]
out dx, eax
salc
sub eax, 0x2e2a96e3
xchg esp, eax
push es
fxch st(4)
sub eax, 0x22afa5e6
sub eax, 0xa4aa3eb
shl byte [edi + 0x467e0a2a], cl
ljmp 0x6eb8
Function at 0x424e10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
or ebp, 0xffffffff
jmp 0x424e32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x424e39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x424e28
mov eax, 1
add ebx, ebx
jne 0x424e4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x424e40
jne 0x424e5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424e40
xor ecx, ecx
sub eax, 3
jb 0x424e70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x424ee2
mov ebp, eax
add ebx, ebx
jne 0x424e7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x424e88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x424eac
inc ecx
add ebx, ebx
jne 0x424e98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x424e8d
jne 0x424ea9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424e8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x424ecc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x424ebd
jmp 0x424e2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x424ecc
add edi, ecx
jmp 0x424e2e
pop esi
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x424f2b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x251dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2522c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x424ee9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x25234]
or eax, eax
je 0x424f25
mov dword [ebx], eax
add ebx, 4
jmp 0x424f06
call dword [esi + 0x25230]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x424f5c
cmp al, 0xef
ja 0x424f4f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x424f31
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x424f3e
mov ebp, dword [esi + 0x25238]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x424f90
sub esp, 0xffffff80
jmp 0x411023
Function at 0x401ba2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401be1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401be1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401be1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401be1
cmp dword [ecx + 0x74], 0xe
jbe 0x401be1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x53dd9c
push eax
push dword fs:[0]
push ebx
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xe7
mov dword [0x98c0ec09], eax
mov eax, dword [0xf6a8b15c]
jecxz 0x401003
xor dword [ecx], ecx
iretd
ljmp 0x2bdb:0xc41a7522
jne 0x40109c
invalid
mov ch, byte [edx + 0x477bf67f]
jle 0x4010d4
salc
rcr cl, 1
cwde
add al, 0x60
sub byte [ecx + 0x485b75a6], bh
adc byte [eax], cl
xor eax, 0x4156615a
clc
or edi, dword [esi + 0x54]
xchg byte [ebx + 0x456a3141], bl
adc dword [edx + 0x30], ecx
jno 0x401110
sbb ebx, edi
cmp al, 0x6e
jae 0x40107e
out dx, al
aad 0x69
sub dword [edi + 0x33], ebx
retf
push ebp
mov cs, edx
mov bl, byte [edx + 0x3812e7a7]
adc eax, 0x31bdc80d
movsd dword es:[edi], dword [esi]
fild qword [eax]
add ch, al
cmpsd dword [esi], dword es:[edi]
dec eax
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

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 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.CreateFontA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1000101e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0xff8b
cmp word [esi], cx
jne 0x10001017
cmp dword [esi - 5], 0x90909090
push edi
lea edi, [esi - 5]
nop
nop
cmp byte [esi - 1], 0x90
nop
nop
lea edx, [ebp - 4]
push edx
push 0x40
push 7
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10001076
lea eax, [esi + 2]
mov dword [0x10003004], eax
mov edx, 0x10001080
sub edx, esi
mov ecx, 0xf9eb
mov byte [edi], 0xe9
pop edi
mov word [esi], cx
mov dword [esi - 4], edx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6318a760
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x6318a905
pushal
mov esi, 0x6318a015
lea edi, [esi - 0x9015]
push edi
jmp 0x6318a78a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6318a791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6318a780
mov eax, 1
add ebx, ebx
jne 0x6318a7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6318a7b4
jne 0x6318a7c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6318a7c4
dec eax
add ebx, ebx
jne 0x6318a7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6318a798
xor ecx, ecx
sub eax, 3
jb 0x6318a7dc
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6318a84e
sar eax, 1
mov ebp, eax
jmp 0x6318a7e7
add ebx, ebx
jne 0x6318a7e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x6318a7f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x6318a818
inc ecx
add ebx, ebx
jne 0x6318a804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6318a7f9
jne 0x6318a815
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6318a7f9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6318a838
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6318a829
jmp 0x6318a786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6318a838
add edi, ecx
jmp 0x6318a786
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x6318a897
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa06c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6318a855
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa070]
or eax, eax
je 0x6318a891
mov dword [ebx], eax
add ebx, 4
jmp 0x6318a872
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6318a8c8
cmp al, 0xef
ja 0x6318a8bb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6318a89d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6318a8aa
mov ebp, dword [esi + 0xa074]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6318a8fc
sub esp, 0xffffff80
jmp 0x631815e0
Function at 0x402690
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push edi
push 5
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40276a
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.00402780
add esp, 0xc
test eax, eax
jne 0x40276a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.00402780
add esp, 0xc
test eax, eax
jne 0x40276a
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.00412790
mov esi, eax
add esp, 8
test esi, esi
jne 0x40274d
lea eax, [esp + 0xc]
push 0x419564
push eax
call fcn.00412790
mov esi, eax
add esp, 8
test esi, esi
jne 0x40274d
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x402750
mov byte [esi], 0
push 0x419560
push esi
call edi
push ebx
push esi
call edi
lea edx, [esp + 0xc]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
pop ebx
add esp, 0x208
ret

Function at 0x402780
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4027c9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x4027d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x218]
push 0x208
push eax
push edi
call fcn.004028a0
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
mov al, byte [esp + 0xc]
test al, al
je 0x40287a
push 0x5c
push edi
call fcn.00412290
mov esi, eax
add esp, 8
test esi, esi
je 0x402815
inc esi
jmp 0x402817
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41e124]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x40283b
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40287a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x402ac0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push 0x208
push eax
push esi
call fcn.004028a0
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov al, byte [esp + 8]
test al, al
je 0x402b4f
push 0x5c
push esi
call fcn.00412290
add esp, 8
lea ecx, [esp + 8]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41e124]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402b1f
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 4]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402b4f
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
add esp, 0x20c
ret
Function at 0x402bf0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 0x208
call fcn.004123e0
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402c16
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push eax
push str.__s_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x78]
add esp, 0xc
cmp edx, ebx
je 0x402c6f
cmp byte [edx], bl
je 0x402c6f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x419560]
mov word [edi - 1], cx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x208
call fcn.004123e0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402c95
push ebp
call fcn.00412543
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x68]
lea edi, [esi + 0x104]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402cb1
push 0x5c
push edi
call fcn.00412290
add esp, 8
cmp eax, ebx
je 0x402cd3
push edi
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [eax], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00412543
push ebp
call fcn.00412543
add esp, 8
cmp edi, ebx
jne 0x402d3a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret
Function at 0x403880
Capabilities:
Set current directory

Disassembly:
push ecx
mov eax, dword [0x41e18c]
push ebp
test eax, eax
jne 0x403a5f
mov eax, dword [0x41df44]
mov ebp, dword [0x41df40]
test eax, eax
mov dword [esp + 4], 0
jbe 0x403a5f
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
mov esi, eax
shr esi, 0x1b
and esi, 1
je 0x4038c3
cmp ecx, 1
jmp 0x4038c6
cmp ecx, 2
je 0x403a3b
mov ecx, dword [esp + 0x18]
mov edx, eax
and edx, 0x7000000
cmp edx, ecx
jne 0x403a3b
cmp ecx, 0x3000000
ja 0x403920
je 0x40392c
cmp ecx, 0x1000000
je 0x4038fa
cmp ecx, 0x2000000
jne 0x403941
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x403916
mov ecx, dword [0x41e190]
test ecx, ecx
je 0x403941
test eax, eax
js 0x403a3b
jmp 0x403941
test eax, eax
jns 0x403a3b
jmp 0x403941
cmp ecx, 0x4000000
jne 0x403941
test esi, esi
jne 0x403941
mov eax, dword [esp + 0x20]
test eax, eax
je 0x403941
mov eax, dword [0x41e190]
test eax, eax
jne 0x403a3b
push ebp
call fcn.00408670
add esp, 4
test esi, esi
je 0x4039b7
mov eax, dword [0x41df08]
push 0
push eax
call fcn.00401100
add esp, 8
cmp eax, 0xffffffff
je 0x403a3b
push eax
call fcn.00401380
mov ecx, dword [0x41df08]
push 0x2e
push ecx
call fcn.00412290
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40398a
mov esi, dword [0x4192ec]
mov edx, dword [0x41df04]
mov eax, dword [0x41df08]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ecx, dword [0x41df04]
push esi
push ecx
call fcn.00402690
add esp, 8
jmp 0x403a3b
mov edx, dword [0x41e184]
push edx
call fcn.00402110
mov eax, dword [0x41e184]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [0x41e184]
push ecx
call fcn.004020d0
push 8
push ebp
call fcn.00403a70
mov esi, eax
add esp, 0xc
mov edi, esi
cmp byte [esi], 0
je 0x403a15
push 0xffdc
push esi
push 0
call fcn.00407b20
lea ebx, [eax + 1]
push ebx
call fcn.004123e0
mov edi, eax
push ebx
push esi
push edi
call fcn.00407b20
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [0x41df08]
shr edx, 0x1c
and edx, 1
push edx
push edi
push eax
call fcn.00402b80
add esp, 0xc
cmp edi, esi
je 0x403a3b
push edi
call fcn.00412543
add esp, 4
mov edx, dword [esp + 0x10]
push ebp
inc edx
mov dword [esp + 0x14], edx
call fcn.00403870
mov ebp, eax
mov eax, dword [0x41df44]
add esp, 4
cmp edx, eax
jb 0x4038ad
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret

Function at 0x405080
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, 1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.004020d0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
add ecx, esi
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.00401100
add esp, 0x18
cmp eax, 0xffffffff
je 0x4050d8
push eax
call fcn.00401380
add esp, 4
or eax, 0xffffffff
jmp 0x4050e6
push esi
call fcn.00401150
add esp, 4
cmp eax, 0xffffffff
jne 0x4050ef
inc ebx
cmp ebx, 0x3e7
jl 0x405091
pop edi
pop esi
pop ebp
pop ebx
ret