joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405217
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40cd40
call fcn.00404600
mov edi, 0x94
mov eax, edi
call fcn.004048a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x412110], ecx
mov eax, dword [esi + 4]
mov dword [0x41211c], eax
mov edx, dword [esi + 8]
mov dword [0x412120], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x412114], esi
cmp ecx, 2
je 0x405277
or esi, 0x8000
mov dword [0x412114], esi
shl eax, 8
add eax, edx
mov dword [0x412118], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4052b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4052b2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4052ca
cmp eax, 0x20b
je 0x4052b7
mov dword [ebp - 0x1c], esi
jmp 0x4052de
cmp dword [ecx + 0x84], 0xe
jbe 0x4052b2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4052d8
cmp dword [ecx + 0x74], 0xe
jbe 0x4052b2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004062a6
pop ecx
test eax, eax
jne 0x40530a
cmp dword [0x412068], 1
jne 0x4052f7
call fcn.00408025
push 0x1c
call fcn.00407eae
push 0xff
call fcn.00407cdb
pop ecx
pop ecx
call fcn.00408892
mov dword [ebp - 4], esi
call fcn.004086e7
test eax, eax
jge 0x405323
push 0x1b
call fcn.004051f2
pop ecx
call fcn.00408648
mov dword [0x4137b8], eax
call fcn.004084de
mov dword [0x412064], eax
call fcn.00408448
test eax, eax
jge 0x405348
push 8
call fcn.004051f2
pop ecx
call fcn.00408215
test eax, eax
jge 0x405359
push 9
call fcn.004051f2
pop ecx
push 1
call fcn.00407d0b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40536f
push eax
call fcn.004051f2
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004081cf
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405390
movzx eax, word [ebp - 0x40]
jmp 0x405393
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401020
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4053b1
push edi
call fcn.00407e36
call fcn.00407e58
jmp 0x4053e3
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040463b
ret
Function at 0x405696
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4056c4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4056cb
cmp ebx, dword [eax + 4]
jae 0x4056cb
xor eax, eax
jmp 0x4058bb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4056dc
xor eax, eax
inc eax
jmp 0x4058ba
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4056f2
cmp ecx, edx
jae 0x405837
cmp dword [eax + 4], 0
je 0x4056fb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4056e3
cmp dword [ebp + 8], 0
je 0x40571d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405837
cmp eax, esi
jae 0x405837
mov eax, dword [0x412078]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405742
cmp dword [esi*4 + 0x412080], edi
je 0x40583b
inc esi
cmp esi, eax
jl 0x405730
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4058b7
cmp dword [ebp - 8], 0x1000000
jne 0x4058b7
test byte [ebp - 0xc], 0xcc
je 0x4057c0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4058b7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4058b7
cmp word [eax + 0x18], 0x10b
jne 0x4058b7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4058b7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4057c0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4057c0
test byte [ecx + 0x27], 0x80
jne 0x405837
push 1
push 0x4120c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4056d4
mov ecx, dword [0x412078]
test ecx, ecx
mov edx, ecx
jle 0x4057f4
lea eax, [ecx*4 + 0x41207c]
cmp dword [eax], edi
je 0x4057f4
dec edx
sub eax, 4
test edx, edx
jg 0x4057e8
test edx, edx
jne 0x405825
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405801
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405819
lea eax, [edx*4 + 0x412080]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405807
cmp ecx, 0x10
jge 0x405825
inc ecx
mov dword [0x412078], ecx
push 0
push 0x4120c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4056d4
xor eax, eax
jmp 0x4058ba
test esi, esi
jle 0x4056d4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4120c0
call ebx
test eax, eax
jne 0x4056d4
cmp dword [esi*4 + 0x412080], edi
je 0x405891
mov eax, dword [0x412078]
lea esi, [eax - 1]
test esi, esi
jl 0x40587f
cmp dword [esi*4 + 0x412080], edi
je 0x40587b
dec esi
jns 0x40586f
test esi, esi
jge 0x40588f
cmp eax, 0x10
jge 0x40588a
inc eax
mov dword [0x412078], eax
lea esi, [eax - 1]
jmp 0x405891
je 0x4058a9
xor ecx, ecx
test esi, esi
jl 0x4058a9
lea eax, [ecx*4 + 0x412080]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405897
push 0
push 0x4120c0
call ebx
jmp 0x4056d4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40783d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004048a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4078d8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x412110]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4078d8
cmp eax, 1
je 0x4078f9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4078d8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4078a5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4078d4
xor eax, eax
inc eax
jmp 0x407918
cmp edi, eax
jae 0x4078dc
xor eax, eax
jmp 0x407918
cmp eax, esi
jae 0x4078e3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x412110]
jmp 0x4078fc
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407d75
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x412150], esi
push edi
jne 0x407d95
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41214c], esi
mov byte [0x412148], al
jne 0x407dfb
mov ecx, dword [0x413788]
test ecx, ecx
je 0x407ddc
mov eax, dword [0x413784]
sub eax, 4
cmp eax, ecx
jmp 0x407dd5
mov eax, dword [eax]
test eax, eax
je 0x407dc7
call eax
mov eax, dword [0x413784]
sub eax, 4
cmp eax, dword [0x413788]
mov dword [0x413784], eax
jae 0x407dbf
mov eax, 0x40f030
mov esi, 0x40f038
cmp eax, esi
mov edi, eax
jae 0x407dfb
mov eax, dword [edi]
test eax, eax
je 0x407df4
call eax
add edi, 4
cmp edi, esi
jb 0x407dec
mov eax, 0x40f03c
mov esi, 0x40f044
cmp eax, esi
mov edi, eax
jae 0x407e1a
mov eax, dword [edi]
test eax, eax
je 0x407e13
call eax
add edi, 4
cmp edi, esi
jb 0x407e0b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x407e34
push dword [ebp + 8]
mov dword [0x412150], 1
call fcn.00407cdb
pop ebp
ret
Function at 0x407eae
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x410eec]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x410f58]
je 0x407ee3
inc eax
cmp eax, 0x13
jb 0x407ed4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x410f58]
jne 0x408009
mov eax, dword [0x412068]
cmp eax, 1
je 0x407fe1
cmp eax, edx
jne 0x407f13
cmp dword [0x410f24], 1
je 0x407fe1
cmp ecx, 0xfc
je 0x408009
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407f49
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004049b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00408b50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407f7d
mov eax, edi
push eax
call fcn.00408b50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40cd84
push edi
call fcn.00408a20
add esp, 0x10
push edi
call fcn.00408b50
push dword [esi + 0x410f5c]
mov ebx, eax
call fcn.00408b50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004048a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004049b0
push edi
push ebx
call fcn.004049c0
push 0x40cd80
push ebx
call fcn.004049c0
push dword [esi + 0x410f5c]
push ebx
call fcn.004049c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040891a
add esp, 0x2c
jmp 0x408009
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x410f5c]
push dword [esi]
call fcn.00408b50
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00403e9d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4084de
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x41236c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x408527
call ebp
mov esi, eax
cmp esi, ebx
je 0x40850d
mov dword [0x41236c], 1
jmp 0x40852c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x408522
push 2
pop eax
mov dword [0x41236c], eax
jmp 0x408527
mov eax, dword [0x41236c]
cmp eax, 1
jne 0x408584
cmp esi, ebx
jne 0x40853f
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40853f
xor eax, eax
jmp 0x40862b
cmp word [esi], bx
mov eax, esi
je 0x408554
inc eax
inc eax
cmp word [eax], bx
jne 0x408546
inc eax
inc eax
cmp word [eax], bx
jne 0x408546
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00404981
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x408577
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40862b
push ebp
push esi
push edi
call fcn.00403eb0
add esp, 0xc
jmp 0x408569
cmp eax, 2
je 0x40858d
cmp eax, ebx
jne 0x408538
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x408538
cmp byte [ebp], bl
mov esi, ebp
je 0x4085c3
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x408538
push esi
add edi, eax
call fcn.00408b50
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4085a0
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00404981
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40863c
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40861d
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x408632
push edi
call fcn.00408b50
push esi
lea edi, [edi + eax + 1]
call fcn.00404785
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4085e3
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040485a
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x408538
Function at 0x408648
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x412370]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x408688
call esi
test eax, eax
je 0x40866d
mov dword [0x412370], 1
jmp 0x40868d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x408684
mov dword [0x412370], 2
jmp 0x408696
xor eax, eax
jmp 0x4086e4
cmp eax, 1
jne 0x408691
call esi
jmp 0x4086e4
cmp eax, 2
jne 0x408684
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x4086dc
lea eax, [esi + esi]
push eax
call fcn.00404981
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4086dc
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4086e0
push ebp
call fcn.0040485a
pop ecx
xor eax, eax
jmp 0x4086e2
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40891a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x412374], ebx
push esi
push edi
jne 0x40899a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4089d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x412374], eax
je 0x4089d5
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x412378], eax
call esi
cmp dword [0x412110], 2
mov dword [0x41237c], eax
jne 0x40899a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x412384], eax
je 0x40899a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x412380], eax
mov eax, dword [0x412380]
test eax, eax
je 0x4089df
call eax
test eax, eax
je 0x4089c6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x412384]
test eax, eax
je 0x4089c6
test byte [ebp - 8], 1
jne 0x4089df
cmp dword [0x41211c], 4
jb 0x4089d9
or byte [ebp + 0x12], 0x20
jmp 0x4089fe
xor eax, eax
jmp 0x408a0e
or byte [ebp + 0x12], 4
jmp 0x4089fe
mov eax, dword [0x412378]
test eax, eax
je 0x4089fe
call eax
mov ebx, eax
test ebx, ebx
je 0x4089fe
mov eax, dword [0x41237c]
test eax, eax
je 0x4089fe
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x412374]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408cb7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x413664]
mov eax, dword [0x410eec]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x408e7d
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x413680]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x408e7d
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x408d21
xor eax, eax
jmp 0x408e91
test al, 0x20
je 0x408d32
push 2
push edi
push edi
push ecx
call fcn.00409598
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x408e07
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x408e4e
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x408d94
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x408d85
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x408d67
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408dd4
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x408de0
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x408d5b
jmp 0x408de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x408e78
cmp dword [ebp + 0x3a4], edi
je 0x408e4e
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x408e40
mov dword [0x412108], eax
jmp 0x408e84
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408e32
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x408de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x408de2
push dword [ebp + 0x3a4]
call fcn.00409483
pop ecx
jmp 0x408e8e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x408e66
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x408d1a
mov dword [0x412104], 0x1c
mov dword [0x412108], edi
jmp 0x408e8e
sub eax, dword [ebp - 0x7c]
jmp 0x408e91
and dword [0x412108], 0
mov dword [0x412104], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00403e9d
add ebp, 0x39c
leave
ret
Function at 0x401fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027c0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40216f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402820
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402134
cmp dword [ebp + 0xc], 3
jbe 0x402134
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e40
mov dword [ebp - 0x74], eax
jmp 0x4020d3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40212f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40212a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402144
jmp 0x40212f
jmp 0x402134
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028e0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402161
jmp 0x40215c
jmp 0x40216f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402068
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x45fc00], eax
pop esi
pop edi
pop ebp
ret
Function at 0x4160a6
Capabilities:
Encode data using xor

Disassembly:
lahf
lea ebx, [eax]
cld
mov byte [0xee168e26], al
push ecx
pop esi
movsx edi, byte [ebx + 0x3f]
sbb byte [eax + 0x328eed6b], dh
lds ebp, ss:[edx + ebx*2 + 0x3ff41aca]
jl 0x4160e2
outsb dx, byte [esi]
push cs
pop ds
dec ebp
ror dword [eax - 0x4744872d], 0x9e
into
mov ebx, ecx
dec ebp
in eax, dx
or byte [eax + edx*4 - 0xf], bh
jne 0x41611c
or edx, dword [eax - 0x3935fd6f]
imul byte [eax + 0x63]
mov esi, 0xce507309
mov edx, 0xcb4b4130
fcmovnbe st(0), st(1)
mov edx, 0x389ea80
sahf
pushfd
out dx, al
nop
jo 0x41613d
invalid
retf
invalid
nop
pcmpeqb mm5, mm7
add dword [ebx + eax*2 - 0x56fcd533], 0xffffffdb
shl dword [eax + 0xc], cl
sub cl, byte [edi - 0x43322372]
cmpsd dword [esi], dword es:[edi]
and al, 0x6a
xchg dword [eax], edx
in eax, 0x2a
fistp dword [esi + 0x33a414a4]
mov al, byte [0x515a4c23]
xor esp, dword [eax + 0x515a4c23]
jecxz 0x4160ef
adc eax, dword [ebp + esi - 0x452272b5]
wait
adc edi, dword [ebx - 0x69]
add dword [esi + ecx*2], edi
sub edx, eax
dec edi
in al, dx
sahf
sub al, 0x31
and byte [eax + 0x3e4766d], dh
invalid

Function at 0x44a810
Capabilities:
Get common file path

Disassembly:
sub esp, 0x23c
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jbe 0x44a82f
xor eax, eax
mov ecx, dword [esp + 0x240]
lea edx, [esp + eax*2]
push ecx
push str._s.dll
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add esp, 0x23c
ret 4

Function at 0x4ea631
Capabilities:
Encode data using xor

Disassembly:
insd dword es:[edi], dx
pushal
inc edi
inc edx
xchg edi, eax
out 0x51, eax
popal
cmp dword [0xde663449], esp
cmp dword [ecx + esi*4 - 0x3c], 0x9b31239d
loopne 0x4ea662
mov eax, dword [0xf04cfd8e]
test eax, 0x9a085650
xchg esi, eax
jnp 0x4ea667
dec edi
sbb al, 0x25
mov dl, 0x19
iretd
mov esp, 0x35a0c4fc
add ah, ch
adc byte [ebp + 0x6e], dh
push esp
push ecx
loopne 0x4ea5f2
fsub dword [ebp + 0x58579be4]
movsb byte es:[edi], byte [esi]
aad 0xaf
bound esi, qword [esi - 0x44]
inc edi
xchg esp, eax
sal esp, cl
xor dword [esi + 0x10], 0xffffffc5
sbb dh, al
or byte [eax - 0x78], al
inc ebp
shr dword [edx], 1
pop esp
sub ch, ch
ja 0x4ea646
imul esi, esp, 0x45
outsb dx, byte [esi]
sub ebp, dword [edx - 0x47a284c]
hlt
mov ah, 0xd7
test ebx, edi
mov dh, 0xc1
mov eax, 0x1d129c42
mov eax, dword [0xeb6de217]
fsubr qword [ebx + 0x3f]
mov dword [0x20970327], eax
adc edx, ebx
invalid

Function at 0x513a25
Capabilities:
Encode data using xor

Disassembly:
xor dh, cl
mov bh, 0x71
mov ah, 0xef
outsb dx, byte [esi]
mov al, byte [0x9e4610f1]
mov dh, 0x25
mov ah, al
sahf
add byte [edx + 0x35], dl
out dx, eax
lds eax, [ecx + 1]
adc al, 0xf5
cmpsb byte [esi], byte es:[edi]
in eax, dx
push eax
movsd dword es:[edi], dword [esi]
not dword [eax + edx*2]
xchg esp, eax
inc eax
wait
aam 0x86
xor byte [esp + ebp - 0x75], ah
sub bl, byte [ebx - 0x1f]
mov dl, ah
pop ebx
unpckhps xmm1, xmmword [edi - 0x2c]
invalid