joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c11
Capabilities:
Delete file

Disassembly:
mov eax, 0x40b272
call fcn.00404eb4
push 0x411830
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 8], 1
je 0x403c4f
push 0x411c40
lea ecx, [ebp + 8]
call fcn.004033c2
and dword [ebp - 4], 0
push eax
call fcn.0040320f
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401369
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
leave
ret

Function at 0x403c5d
Capabilities:
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x2fc
mov eax, dword [0x410eec]
push ebx
push esi
push edi
mov dword [ebp + 0x70], eax
push 0x3b
pop ecx
xor eax, eax
lea edi, [ebp - 0x7e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
xor ebx, ebx
push 0x40cc14
mov word [ebp - 0x80], bx
call fcn.0040359b
lea eax, [ebp - 0x80]
push 0x40cc04
push eax
call fcn.0040480d
add esp, 0x10
test eax, eax
jne 0x403cb1
xor esi, esi
push 0x40c434
jmp 0x403cd1
lea eax, [ebp - 0x80]
push 0x40cbfc
push eax
call fcn.0040480d
test eax, eax
pop ecx
pop ecx
jne 0x403d6f
xor esi, esi
inc esi
push 0x40c430
push str.InstallSource
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor eax, eax
cmp esi, ebx
mov word [ebp - 0x288], bx
mov ecx, 0x81
lea edi, [ebp - 0x286]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x403d0c
push ebx
lea eax, [ebp - 0x288]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
jmp 0x403d23
cmp esi, 1
jne 0x403d6a
push ebx
lea eax, [ebp - 0x288]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkXmp
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
test eax, eax
jne 0x403d6a
lea eax, [ebp - 0x288]
push 0x5c
push eax
call fcn.00404685
test eax, eax
pop ecx
pop ecx
je 0x403d6a
lea eax, [ebp - 0x288]
push 0x5c
push eax
call fcn.00404685
mov word [eax + 2], bx
lea eax, [ebp - 0x288]
push eax
push dword [ebp + 0x7c]
call fcn.00402654
add esp, 0x10
xor eax, eax
inc eax
jmp 0x403d71
xor eax, eax
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
call fcn.00403dcb
add ebp, 0x74
leave
ret
Function at 0x405147
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40cca8
call fcn.00404530
mov edi, 0x94
mov eax, edi
call fcn.004047d0
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 0x4051a7
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 0x4051e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4051e2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4051fa
cmp eax, 0x20b
je 0x4051e7
mov dword [ebp - 0x1c], esi
jmp 0x40520e
cmp dword [ecx + 0x84], 0xe
jbe 0x4051e2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405208
cmp dword [ecx + 0x74], 0xe
jbe 0x4051e2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004061d6
pop ecx
test eax, eax
jne 0x40523a
cmp dword [0x412068], 1
jne 0x405227
call fcn.00407f55
push 0x1c
call fcn.00407dde
push 0xff
call fcn.00407c0b
pop ecx
pop ecx
call fcn.004087c2
mov dword [ebp - 4], esi
call fcn.00408617
test eax, eax
jge 0x405253
push 0x1b
call fcn.00405122
pop ecx
call fcn.00408578
mov dword [0x4137b8], eax
call fcn.0040840e
mov dword [0x412064], eax
call fcn.00408378
test eax, eax
jge 0x405278
push 8
call fcn.00405122
pop ecx
call fcn.00408145
test eax, eax
jge 0x405289
push 9
call fcn.00405122
pop ecx
push 1
call fcn.00407c3b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40529f
push eax
call fcn.00405122
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004080ff
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4052c0
movzx eax, word [ebp - 0x40]
jmp 0x4052c3
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 0x4052e1
push edi
call fcn.00407d66
call fcn.00407d88
jmp 0x405313
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040456b
ret
Function at 0x4055c6
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 0x4055f4
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 0x4055fb
cmp ebx, dword [eax + 4]
jae 0x4055fb
xor eax, eax
jmp 0x4057eb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40560c
xor eax, eax
inc eax
jmp 0x4057ea
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405622
cmp ecx, edx
jae 0x405767
cmp dword [eax + 4], 0
je 0x40562b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405613
cmp dword [ebp + 8], 0
je 0x40564d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405767
cmp eax, esi
jae 0x405767
mov eax, dword [0x412078]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405672
cmp dword [esi*4 + 0x412080], edi
je 0x40576b
inc esi
cmp esi, eax
jl 0x405660
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4057e7
cmp dword [ebp - 8], 0x1000000
jne 0x4057e7
test byte [ebp - 0xc], 0xcc
je 0x4056f0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4057e7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4057e7
cmp word [eax + 0x18], 0x10b
jne 0x4057e7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4057e7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4056f0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4056f0
test byte [ecx + 0x27], 0x80
jne 0x405767
push 1
push 0x4120c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405604
mov ecx, dword [0x412078]
test ecx, ecx
mov edx, ecx
jle 0x405724
lea eax, [ecx*4 + 0x41207c]
cmp dword [eax], edi
je 0x405724
dec edx
sub eax, 4
test edx, edx
jg 0x405718
test edx, edx
jne 0x405755
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405731
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405749
lea eax, [edx*4 + 0x412080]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405737
cmp ecx, 0x10
jge 0x405755
inc ecx
mov dword [0x412078], ecx
push 0
push 0x4120c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405604
xor eax, eax
jmp 0x4057ea
test esi, esi
jle 0x405604
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4120c0
call ebx
test eax, eax
jne 0x405604
cmp dword [esi*4 + 0x412080], edi
je 0x4057c1
mov eax, dword [0x412078]
lea esi, [eax - 1]
test esi, esi
jl 0x4057af
cmp dword [esi*4 + 0x412080], edi
je 0x4057ab
dec esi
jns 0x40579f
test esi, esi
jge 0x4057bf
cmp eax, 0x10
jge 0x4057ba
inc eax
mov dword [0x412078], eax
lea esi, [eax - 1]
jmp 0x4057c1
je 0x4057d9
xor ecx, ecx
test esi, esi
jl 0x4057d9
lea eax, [ecx*4 + 0x412080]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4057c7
push 0
push 0x4120c0
call ebx
jmp 0x405604
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40776d
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.004047d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407808
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 0x407808
cmp eax, 1
je 0x407829
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 0x407808
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4077d5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407804
xor eax, eax
inc eax
jmp 0x407848
cmp edi, eax
jae 0x40780c
xor eax, eax
jmp 0x407848
cmp eax, esi
jae 0x407813
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 0x40782c
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 0x407ca5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x412150], esi
push edi
jne 0x407cc5
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 0x407d2b
mov ecx, dword [0x413788]
test ecx, ecx
je 0x407d0c
mov eax, dword [0x413784]
sub eax, 4
cmp eax, ecx
jmp 0x407d05
mov eax, dword [eax]
test eax, eax
je 0x407cf7
call eax
mov eax, dword [0x413784]
sub eax, 4
cmp eax, dword [0x413788]
mov dword [0x413784], eax
jae 0x407cef
mov eax, 0x40f030
mov esi, 0x40f038
cmp eax, esi
mov edi, eax
jae 0x407d2b
mov eax, dword [edi]
test eax, eax
je 0x407d24
call eax
add edi, 4
cmp edi, esi
jb 0x407d1c
mov eax, 0x40f03c
mov esi, 0x40f044
cmp eax, esi
mov edi, eax
jae 0x407d4a
mov eax, dword [edi]
test eax, eax
je 0x407d43
call eax
add edi, 4
cmp edi, esi
jb 0x407d3b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x407d64
push dword [ebp + 8]
mov dword [0x412150], 1
call fcn.00407c0b
pop ebp
ret
Function at 0x407dde
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 0x407e13
inc eax
cmp eax, 0x13
jb 0x407e04
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x410f58]
jne 0x407f39
mov eax, dword [0x412068]
cmp eax, 1
je 0x407f11
cmp eax, edx
jne 0x407e43
cmp dword [0x410f24], 1
je 0x407f11
cmp ecx, 0xfc
je 0x407f39
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 0x407e79
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004048e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00408a80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407ead
mov eax, edi
push eax
call fcn.00408a80
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40ccec
push edi
call fcn.00408950
add esp, 0x10
push edi
call fcn.00408a80
push dword [esi + 0x410f5c]
mov ebx, eax
call fcn.00408a80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004047d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004048e0
push edi
push ebx
call fcn.004048f0
push 0x40cce8
push ebx
call fcn.004048f0
push dword [esi + 0x410f5c]
push ebx
call fcn.004048f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040884a
add esp, 0x2c
jmp 0x407f39
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x410f5c]
push dword [esi]
call fcn.00408a80
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.00403dcb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40840e
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 0x408457
call ebp
mov esi, eax
cmp esi, ebx
je 0x40843d
mov dword [0x41236c], 1
jmp 0x40845c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x408452
push 2
pop eax
mov dword [0x41236c], eax
jmp 0x408457
mov eax, dword [0x41236c]
cmp eax, 1
jne 0x4084b4
cmp esi, ebx
jne 0x40846f
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40846f
xor eax, eax
jmp 0x40855b
cmp word [esi], bx
mov eax, esi
je 0x408484
inc eax
inc eax
cmp word [eax], bx
jne 0x408476
inc eax
inc eax
cmp word [eax], bx
jne 0x408476
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004048b1
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4084a7
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40855b
push ebp
push esi
push edi
call fcn.00403de0
add esp, 0xc
jmp 0x408499
cmp eax, 2
je 0x4084bd
cmp eax, ebx
jne 0x408468
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x408468
cmp byte [ebp], bl
mov esi, ebp
je 0x4084f3
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x408468
push esi
add edi, eax
call fcn.00408a80
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4084d0
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004048b1
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40856c
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40854d
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 0x408562
push edi
call fcn.00408a80
push esi
lea edi, [edi + eax + 1]
call fcn.004046b5
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x408513
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.0040478a
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x408468
Function at 0x408578
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 0x4085b8
call esi
test eax, eax
je 0x40859d
mov dword [0x412370], 1
jmp 0x4085bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4085b4
mov dword [0x412370], 2
jmp 0x4085c6
xor eax, eax
jmp 0x408614
cmp eax, 1
jne 0x4085c1
call esi
jmp 0x408614
cmp eax, 2
jne 0x4085b4
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 0x40860c
lea eax, [esi + esi]
push eax
call fcn.004048b1
mov ebp, eax
test ebp, ebp
pop ecx
je 0x40860c
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x408610
push ebp
call fcn.0040478a
pop ecx
xor eax, eax
jmp 0x408612
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40884a
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 0x4088ca
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408905
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x412374], eax
je 0x408905
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 0x4088ca
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x412384], eax
je 0x4088ca
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x412380], eax
mov eax, dword [0x412380]
test eax, eax
je 0x40890f
call eax
test eax, eax
je 0x4088f6
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 0x4088f6
test byte [ebp - 8], 1
jne 0x40890f
cmp dword [0x41211c], 4
jb 0x408909
or byte [ebp + 0x12], 0x20
jmp 0x40892e
xor eax, eax
jmp 0x40893e
or byte [ebp + 0x12], 4
jmp 0x40892e
mov eax, dword [0x412378]
test eax, eax
je 0x40892e
call eax
mov ebx, eax
test ebx, ebx
je 0x40892e
mov eax, dword [0x41237c]
test eax, eax
je 0x40892e
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 0x408be7
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 0x408dad
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 0x408dad
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x408c51
xor eax, eax
jmp 0x408dc1
test al, 0x20
je 0x408c62
push 2
push edi
push edi
push ecx
call fcn.004094c8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x408d37
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x408d7e
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x408cc4
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x408cb5
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 0x408c97
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 0x408d04
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x408d10
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x408c8b
jmp 0x408d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x408da8
cmp dword [ebp + 0x3a4], edi
je 0x408d7e
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x408d70
mov dword [0x412108], eax
jmp 0x408db4
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 0x408d62
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x408d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x408d12
push dword [ebp + 0x3a4]
call fcn.004093b3
pop ecx
jmp 0x408dbe
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x408d96
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x408c4a
mov dword [0x412104], 0x1c
mov dword [0x412108], edi
jmp 0x408dbe
sub eax, dword [ebp - 0x7c]
jmp 0x408dc1
and dword [0x412108], 0
mov dword [0x412104], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00403dcb
add ebp, 0x39c
leave
ret
Function at 0x406fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x406ffe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406ff6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407000
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406fe6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4070d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407101
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407101
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407101
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401563
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x40158c
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401584
cmp al, 0x22
jne 0x401578
cmp byte [esi], 0x22
jne 0x401596
inc esi
jmp 0x401596
cmp al, 0x20
jle 0x401596
inc esi
cmp byte [esi], 0x20
jg 0x401590
mov al, byte [esi]
test al, al
je 0x4015a0
cmp al, 0x20
jle 0x401589
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004023ba
push 0x404004
push section..data
call fcn.004023a0
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4015d0
movzx eax, word [ebp - 0x14]
jmp 0x4015d3
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.004010b0
mov esi, eax
call fcn.004023d2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_lstrcatA
push eax
call sub.kernel32.dll_LoadLibraryA

Function at 0x4010bf
Capabilities:
Query or enumerate registry value

Disassembly:
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_lstrcatA
push eax
call sub.kernel32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.kernel32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.kernel32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x4d9987
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 4]
jmp 0x4b6078