joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469223
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x46926d
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x469214
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x469223
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x86eec6
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x469274
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.004500ea
cmp eax, dword [ebp + 0xc]
pop eax
je 0x469313
add edi, 4
add eax, 2
dec ecx
jne 0x469259
call 0x4692c0
loope 0x4692b6
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x469310
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x469321
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4692d4
cmp eax, ecx
ja 0x4692d4
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x46935e
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x469354
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.004505c9
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401120
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x521174]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
mov esi, ecx
mov byte [esp + 0xf], 0
call fcn.004010c0
push esi
lea ebx, [esp + 0x18]
call section..text
mov eax, ebx
push eax
call fcn.00401e5b
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4011c2
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40119d
cmp dword [esp + 0x10], ebp
mov bl, 1
je 0x4011a1
mov bl, byte [esp + 0xf]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00401a5c
add esp, 0x214
ret
mov ecx, dword [esp + 0x21c]
mov al, byte [esp + 0xf]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401a5c
add esp, 0x214
ret
Function at 0x401a5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x521174]
jne 0x401a66
repz ret
jmp fcn.0040287f

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x40a422
call fcn.00402051
mov dword [eax], esi
call fcn.0040203e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004031c5
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x40a3fe
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a451
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402064
pop ecx
call fcn.0040203e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x40a478
test al, 1
je 0x40a478
test byte [esp + 0xc], 2
je 0x40a478
call fcn.00402051
mov dword [eax], 5
call fcn.0040203e
mov dword [eax], 0xd
jmp 0x40a448
xor eax, eax
pop esi
ret
Function at 0x40bea5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041c9
xor ebx, ebx
cmp dword [0x522ac4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40bf7a
push 0x411448
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40bee5
xor eax, eax
jmp 0x40c03e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41143c
push edi
call esi
cmp eax, ebx
je 0x40bede
push eax
call fcn.00404166
mov dword [esp], 0x41142c
push edi
mov dword [0x522ac4], eax
call esi
push eax
call fcn.00404166
mov dword [esp], 0x411418
push edi
mov dword [0x522ac8], eax
call esi
push eax
call fcn.00404166
mov dword [0x522acc], eax
lea eax, [ebp - 8]
push eax
call fcn.00404b70
test eax, eax
pop ecx
pop ecx
je 0x40bf48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004030c9
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40bf7a
push 0x4113fc
push edi
call esi
push eax
call fcn.00404166
cmp eax, ebx
pop ecx
mov dword [0x522ad4], eax
je 0x40bf7a
push 0x4113e4
push edi
call esi
push eax
call fcn.00404166
pop ecx
mov dword [0x522ad0], eax
mov eax, dword [0x522ad0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40bff3
cmp dword [0x522ad4], esi
je 0x40bff3
push eax
call fcn.004041d2
pop ecx
call eax
cmp eax, ebx
je 0x40bfc0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x522ad4]
call fcn.004041d2
pop ecx
call eax
test eax, eax
je 0x40bfc0
test byte [ebp - 0x18], 1
jne 0x40bff3
lea eax, [ebp - 0xc]
push eax
call fcn.00404ba7
test eax, eax
pop ecx
je 0x40bfdb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004030c9
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40bfea
or dword [ebp + 0x10], 0x200000
jmp 0x40c024
or dword [ebp + 0x10], 0x40000
jmp 0x40c024
mov eax, dword [0x522ac8]
cmp eax, esi
je 0x40c024
push eax
call fcn.004041d2
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c024
mov eax, dword [0x522acc]
cmp eax, esi
je 0x40c024
push dword [ebp - 4]
push eax
call fcn.004041d2
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x522ac4]
call fcn.004041d2
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x1933700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0193378f
jae 0x193370e
xor ecx, ecx
call fcn.0193378f
jae 0x193373d
xor eax, eax
call fcn.0193378f
jae 0x193374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0193378f
adc al, al
jae 0x193372f
jne 0x1933779
stosb byte es:[edi], al
jmp 0x1933711
call fcn.0193379b
sub ecx, ebx
jne 0x1933756
call fcn.01933799
jmp 0x1933775
lodsb al, byte [esi]
shr eax, 1
je 0x1933783
adc ecx, ecx
jmp 0x1933772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.01933799
cmp eax, 0x7d00
jae 0x1933772
cmp ah, 5
jae 0x1933773
cmp eax, 0x7f
ja 0x1933774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1933711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x10024970
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002498d
push 0xec9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x100249b6
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100249b6
push 0
push 0x1e3c
push 0x8e6
push 0
push 0x1b1b
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esp, ebp
pop ebp
ret

Function at 0x10024dba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10024e5a
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
push 0
mov ecx, dword [ebp - 8]
call fcn.1000c112
sub edi, dword [eax]
cmp edi, esi
jl 0x10024e49
push 1
mov ecx, dword [ebp - 8]
call fcn.1000c112
mov dword [eax], 1
xor eax, eax
inc eax
jne 0x10024e49
and dword [ebp - 0xc], 0
jmp 0x10024e50
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x10024e67
push 0x1886
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10025280
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10025297
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x100252ae
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x10025ed9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10025ff7
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 8]
call fcn.1000c112
cmp esi, dword [eax]
je 0x10025f61
or eax, 0xffffffff
je 0x10025f61
mov dword [ebp - 0xc], 1
jmp 0x10025f65
and dword [ebp - 0xc], 0
push 0
mov ecx, dword [ebp - 0x40]
call fcn.1000c112
cmp dword [eax], 0xc5d6bb23
jne 0x10025f80
mov dword [ebp - 0x10], 1
jmp 0x10025f84
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx]
jge 0x10025f9a
mov dword [ebp - 0x14], 1
jmp 0x10025f9e
and dword [ebp - 0x14], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.1000c112
mov esi, dword [ebp - 0x14]
sub esi, dword [eax]
mov eax, dword [ebp - 0x44]
sub esi, dword [eax]
push 0
mov ecx, dword [ebp - 8]
call fcn.1000c112
cmp esi, dword [eax]
jg 0x10025fc9
mov dword [ebp - 0x48], 1
jmp 0x10025fcd
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0xa37c
jge 0x10025fe9
mov dword [ebp - 0x1c], 1
jmp 0x10025fed
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x1002600e
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002600e
push 0x9d7
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10039f55
Capabilities:
Query environment variable
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10039f83
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10039f81
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x10039f9f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10039f9f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esp, ebp
pop ebp
ret
Function at 0x1003bc40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003bc6b
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003bc69
push 0x2382
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1003bcb5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x1003bca4
mov dword [ebp - 0xc], 1
jmp 0x1003bca8
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x10042b4c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10042b64
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x10042bac
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10042b92
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10042bac
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.1000c112
and dword [eax], 0
jmp 0x10042b87
mov esp, ebp
pop ebp
ret
Function at 0x1004d60f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1004d62c
push 0x1886
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x1004d677
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1004d65a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1004d677
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.1000c112
mov dword [eax], 0x98319b20
jmp 0x1004d64f
mov esp, ebp
pop ebp
ret
Function at 0x1004fade
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1004faf5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x1004fb12
push 0
push 0x1e3c
push 0x8e6
push 0
push 0x1b1b
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop ebp
ret
Function at 0x10051c9f
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10051cb7
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x10051d02
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10051ce5
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10051d02
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.1000c112
mov dword [eax], 0xa41a80d1
jmp 0x10051cda
mov esp, ebp
pop ebp
ret
Function at 0x100559d3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10055a1f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
mov eax, dword [eax]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x10055a3a
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10055a3a
push 0x2382
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esp, ebp
pop ebp
ret

Function at 0x10055ac8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10055bf1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x14
push 0
push 0x7738
push 0x48df
call fcn.1004af9c
pop ecx
pop ecx
call eax
push eax
push 0x7738
push 0x7099
call fcn.1004af9c
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and dword [eax + 8], 0
lea eax, [ebp - 4]
push eax
call fcn.100559ba
pop ecx
push 4
push 0x1000
mov eax, dword [ebp - 0xc]
push dword [eax + 0x50]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x7738
push 0x69fa
call fcn.1004af9c
pop ecx
pop ecx
call eax
push 4
push 0x1000
mov eax, dword [ebp - 0xc]
push dword [eax + 0x54]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x7738
push 0x69fa
call fcn.1004af9c
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x54]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push dword [eax]
call fcn.1004b0f2
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
call fcn.100559d3
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 0x256b
push 0x32f8
call fcn.10055a3e
add esp, 0x14
jmp 0x10055c00
push 0xec9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esp, ebp
pop ebp
ret
Function at 0x100563ac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100563d0
xor eax, eax
jmp 0x1005652c
lea eax, [ebp + 8]
push eax
push 0x341e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x60c6
push 1
call fcn.10055c04
add esp, 0x18
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10056402
xor eax, eax
jmp 0x1005652c
push 1
push 0x548d
push 0x1313
lea eax, [ebp - 0xc]
push eax
push 0x37f2
push dword [ebp - 8]
call fcn.10054d26
add esp, 0x18
cmp dword [ebp - 0xc], 0
jne 0x1005642f
xor eax, eax
jmp 0x1005652c
push dword [ebp - 8]
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
call fcn.10055ac8
add esp, 0x18
push 0x7934
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.10055c7b
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push 1
push 0x2c8c
push 0x461b
call fcn.10055d2b
add esp, 0x14
push dword [ebp - 4]
call fcn.10054ac0
pop ecx
test eax, eax
jne 0x100564a2
xor eax, eax
jmp 0x1005652c
push 0x1803
push 0x58cc
lea eax, [ebp - 4]
push eax
push 1
call fcn.10055dc5
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10056514
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x100564d9
xor eax, eax
jmp 0x1005652c
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100564f2
xor eax, eax
jmp 0x1005652c
push 1
push 0x41a0
push 0x2b34
push 0x280c
push 0xffd
lea eax, [ebp - 4]
push eax
call fcn.10055e49
add esp, 0x18
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10056525
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x10056529
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret