joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b7de
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x58
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10048144], 0xc52
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x1000b8d2
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x10048144]
add ecx, 0x255e
mov dword [0x10048144], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.1000abe1
mov eax, dword [0x10048144]
add eax, 0xfffffadf
mov dword [0x10048144], eax
mov eax, dword [ebp - 0x38]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
add eax, 0xffc00000
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10048144]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x40], edx
add eax, 0xffffdf5a
mov dword [ebp - 0x3c], eax
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [0x10048144], ecx
mov dword [0x10048148], 0x8ea
mov edx, dword [ebp - 0x38]
add edx, 0x1333
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], eax
je 0x1000b8c9
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x58
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1000c84a]
mov dh, byte [eax + 0x1000c81b]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x1000b8d2
lea eax, [ebp - 0x24]
mov dword [0x10048144], 0x5cb
mov dword [0x10048148], 0x1885
mov dword [ebp - 0x48], eax
call fcn.1000b580
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], ecx
call fcn.1000b67d
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x1000b805
xor eax, eax
add esp, 0x58
pop esi
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4033ec], eax
mov eax, dword [ebp + 4]
mov dword [0x40321d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401020
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40321d]
mov dword [ebp - 0x48], eax
mov eax, 0x4016dc
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x40321d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.lukifas
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403438], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403438]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010bc
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010b5
mov esp, ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401317
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410040]
jne 0x40e137
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4119c0], eax
mov dword [0x4119bc], ecx
mov dword [0x4119b8], edx
mov dword [0x4119b4], ebx
mov dword [0x4119b0], esi
mov dword [0x4119ac], edi
mov word [0x4119d8], ss
mov word [0x4119cc], cs
mov word [0x4119a8], ds
mov word [0x4119a4], es
mov word [0x4119a0], fs
mov word [0x41199c], gs
pushfd
pop dword [0x4119d0]
mov eax, dword [ebp]
mov dword [0x4119c4], eax
mov eax, dword [ebp + 4]
mov dword [0x4119c8], eax
lea eax, [ebp + 8]
mov dword [0x4119d4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x411910], 0x10001
mov eax, dword [0x4119c8]
mov dword [0x4118c4], eax
mov dword [0x4118b8], 0xc0000409
mov dword [0x4118bc], 1
mov eax, dword [0x410040]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4116a4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x411908], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40e23c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x411908], 0
jne 0x40e227
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x4014d5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x410040]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x1424], bl
push edi
mov dword [esp + 0x24], esi
mov edi, edx
jne 0x40978c
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
push edi
push 0x3017
call fcn.0040d633
pop ecx
pop ecx
push ebx
push ebx
push ebx
lea eax, [esp + 0x64]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x42
call fcn.004018de
cmp eax, 0xffffffff
je 0x401508
cmp eax, ebx
je 0x401508
push 0x4098cc
push ebx
push eax
call dword [sym.imp.MSVCR80.dll__open_osfhandle]
pop ecx
pop ecx
push eax
call dword [sym.imp.MSVCR80.dll__fdopen]
cmp eax, ebx
pop ecx
pop ecx
mov dword [esp + 0x20], eax
je 0x401508
mov edi, dword [sym.imp.MSVCR80.dll_fread]
push eax
push 0x20
lea eax, [esp + 0x40]
push 1
push eax
call edi
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x4098ba
mov dword [esp + 0x2c], 0x42
cmp esi, ebx
mov dword [esp + 0x14], ebx
jbe 0x409866
mov eax, dword [esp + 0x14]
mov al, byte [esp + eax + 0x38]
mov byte [esp + 0x10], al
shr al, 4
call fcn.0040d61a
lea ecx, [esp + 0x18]
push eax
push ebx
call fcn.00401368
mov al, byte [esp + 0x10]
and al, 0xf
call fcn.0040d61a
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.00401368
push 2
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.0040467d
inc dword [esp + 0x14]
cmp dword [esp + 0x14], esi
jb 0x409816
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.00401368
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x28]
push 0x4098d0
push dword [eax + 0x1420]
call dword [sym.imp.MSVCR80.dll_fwprintf_s]
add esp, 0xc
push dword [esp + 0x20]
lea eax, [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push 0x20
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push 1
push eax
call edi
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x40980e
push dword [esp + 0x20]
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
jmp 0x401508
Function at 0x4017d7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.004018de
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x401852
cmp edi, ebx
je 0x401852
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x40c16c
cmp dword [ebp + 8], ebx
jne 0x40c1a0
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.0040176b
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jl 0x401841
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.0040185f
lea ecx, [ebp - 0xc]
call fcn.00401325
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x40c1aa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40c17e
call esi
mov esi, eax
jmp 0x40c18e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x40182a
mov esi, 0x8000ffff
jmp 0x40182a
mov esi, 0x80070216
jmp 0x40182a
test eax, eax
jg 0x40c1b7
call esi
mov esi, eax
jmp 0x401841
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x401841

Function at 0x4018de
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp byte [ebp + 0x14], bl
push edi
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov edi, SysReAllocStringLen
push ebx
jne 0x40c082
push 0x8000080
push 3
push ebx
push 1
push edi
push esi
call fcn.0040188c
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
je 0x40c095
mov esi, dword [ebp - 0x424]
cmp esi, ebx
jne 0x40c138
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret 0x10
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
jmp 0x401925
cmp dword [ebp - 0x420], ebx
je 0x401948
push dword [ebp - 0x420]
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0040145f
test eax, eax
jl 0x401948
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x401948
mov eax, 0x105
push eax
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x418]
push eax
call fcn.0040e528
test al, al
je 0x401948
cmp byte [ebp + 0x14], bl
push ebx
lea eax, [ebp - 0x210]
je 0x40c113
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
jmp 0x40c11e
push 0x8000080
push 3
push ebx
push 1
push edi
push eax
call fcn.0040188c
cmp eax, 0xffffffff
mov dword [ebp - 0x41c], eax
jne 0x40193a
jmp 0x401948
push ebx
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40c165
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
or dword [ebp - 0x41c], 0xffffffff
jmp 0x401948
mov dword [esi], eax
jmp 0x401948
Function at 0x40195f
Capabilities:
Hash data via wincrypt

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x403a0e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
push edi
mov edi, ecx
mov dword [ebp - 0x520], edi
je 0x409492
dec eax
je 0x409486
dec eax
jne 0x403b88
mov dword [ebp - 0x51c], 0x403ba8
test ebx, ebx
je 0x403b4a
cmp byte [esi + 8], 0
jne 0x403b97
call fcn.0040133b
test eax, eax
je 0x4094a8
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4094e9
lea eax, [ebp - 0x518]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
test eax, eax
je 0x403b97
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x403b97
push eax
push ebx
push 0x10
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
test eax, eax
je 0x403b97
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x403b97
lea eax, [ebp - 0x20c]
push eax
push 0x402040
push esi
call fcn.00403987
add esp, 0xc
cmp byte [esi + 0xa], 0
jne 0x4094f6
cmp dword [ebp + 0x10], 0
jle 0x403b37
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x403bb8
push esi
call fcn.00403987
add esp, 0x10
push 0x403bc8
push esi
call fcn.00403987
mov edi, dword [ebp - 0x520]
pop ecx
pop ecx
cmp dword [ebp + 8], 0xffffffff
je 0x403b6c
push dword [ebp + 8]
push 0x403ba0
push dword [ebp - 0x51c]
push 0x403bd0
push esi
call fcn.00403987
add esp, 0x14
test edi, edi
je 0x409529
cmp word [edi], 0
je 0x409529
push 8
push esi
mov eax, edi
call fcn.00403be8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401317
leave
ret 0x18
push ebx
jmp 0x403b05
mov dword [ebp - 0x51c], 0x409554
jmp 0x4094a0
mov byte [esi + 1], 1
mov dword [ebp - 0x51c], 0x40953c
mov byte [esi], 1
jmp 0x403a4e
lea eax, [ebp - 0x310]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4094e9
push edi
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x403a7f
and word [ebp - 0x20c], 0
jmp 0x403a87
cmp dword [ebp + 0x10], 0
jle 0x403b37
cmp dword [ebp + 0x18], 0
jle 0x403b1d
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x409560
push esi
call fcn.00403987
add esp, 0x18
jmp 0x403b37
push 0x403d4c
push esi
call fcn.00403987
pop ecx
pop ecx
jmp 0x403b88
Function at 0x4062dc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, 0x410054
call fcn.00406578
mov eax, dword [0x410058]
cmp byte [eax + 1], bl
jne 0x4066b0
mov eax, dword [0x410054]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x406341
push dword [eax]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x410054]
mov ecx, dword [eax + 4]
push eax
mov dword [0x410054], ecx
call sub.MSVCR80.dll___3_YAXPAX_Z
pop ecx
call fcn.00408945
call fcn.00406c1a
mov eax, dword [0x410058]
cmp byte [eax], bl
jne 0x4066b0
mov eax, dword [0x410054]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x40662f
cmp dword [eax], ebx
je 0x40636f
inc dword [ebp - 4]
mov eax, dword [eax + 4]
jmp 0x406360
mov eax, dword [ebp - 4]
shl eax, 3
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [0x410050], eax
je 0x409b1e
mov esi, dword [0x410054]
cmp esi, ebx
je 0x40668f
xor edi, edi
mov eax, dword [esi]
cmp eax, ebx
je 0x406683
push eax
lea eax, [ebp - 0xc]
call fcn.004065f9
mov ecx, dword [eax]
mov edx, dword [0x410050]
mov dword [edi + edx], ecx
mov eax, dword [eax + 4]
mov ecx, dword [0x410050]
mov dword [edi + ecx + 4], eax
add edi, 8
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x406659
mov eax, dword [0x410050]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [0x410058]
xor eax, eax
cmp byte [ecx], bl
sete al
pop edi
pop esi
pop ebx
leave
ret 8
xor al, al
jmp 0x4066a9
mov ecx, dword [0x410058]
push ebx
push 2
pop edx
call fcn.0040c84c
jmp 0x4066b0
Function at 0x408cfc
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x4043c8
call fcn.00401532
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x4116d4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x40b6e2
xor esi, esi
inc esi
mov eax, dword [0x4116d0]
cmp eax, esi
je 0x40b701
mov eax, dword [0x4116d0]
test eax, eax
jne 0x40439a
mov dword [0x4116d0], esi
push 0x4043c4
push 0x4043b8
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x40b70e
mov eax, dword [0x4116d0]
cmp eax, esi
jne 0x404342
push 0x4043b4
push 0x4043a8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x4116d0], 2
cmp dword [ebp - 0x1c], ebx
jne 0x40434f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4116e0], ebx
jne 0x40b71c
mov eax, dword [0x4116ac]
mov ecx, dword [sym.imp.MSVCR80.dll___initenv]
mov dword [ecx], eax
push dword [0x4116ac]
push dword [0x4116b0]
push dword [0x4116a8]
call fcn.00403ef6
add esp, 0xc
mov dword [0x411698], eax
cmp dword [0x411694], ebx
jne 0x40b76e
push eax
call dword [sym.imp.MSVCR80.dll_exit]
mov dword [0x4118b0], esi
jmp 0x40431e
call fcn.00408d06
jmp 0x4042af
cmp eax, esi
jne 0x40b6f1
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4042e5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4042d1
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40431e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40b788
push 0x4116e0
call fcn.0040e036
pop ecx
test eax, eax
je 0x40435b
push ebx
push 2
push ebx
call dword [0x4116e0]
jmp 0x40435b
cmp dword [0x4118b0], ebx
jne 0x40b77c
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x411698]
call fcn.00401577
ret
Function at 0x40d21e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
lea ecx, [ebp + 8]
call fcn.00401368
push 0x104
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp + eax - 0x108], bl
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x40d373
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x110], edi
je 0x40d372
push edi
push esi
push ebx
lea eax, [ebp - 0x108]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40d35e
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x40d384
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d35e
cmp dword [ebp - 0x114], ebx
je 0x40d35e
mov eax, dword [ebp - 0x10c]
lea ecx, [eax + 0xc]
cmp word [ecx], bx
je 0x40d327
cmp dword [ebp + 8], ebx
je 0x40d2ff
cmp dword [ebp + 0xc], ebx
ja 0x40d2ff
mov eax, dword [pe_dos_header]
mov eax, dword [ebp - 0x10c]
movzx edx, word [ecx]
movzx ecx, word [ecx + 2]
mov edi, dword [ebp + 8]
push edx
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push 0x40d388
call fcn.0040de61
add esp, 0x14
jmp 0x40d35e
cmp dword [ebp + 8], ebx
je 0x40d33c
cmp dword [ebp + 0xc], ebx
ja 0x40d33c
mov eax, dword [pe_dos_header]
mov eax, dword [ebp - 0x10c]
movzx ecx, word [ecx + 2]
mov edi, dword [ebp + 8]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push 0x40d3a8
call fcn.0040de61
add esp, 0x10
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret 8
Function at 0x40d4e2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push ecx
push ecx
mov eax, esp
push dword [ebp + 8]
mov esi, 0x411488
mov dword [eax], esi
mov dword [eax + 4], 0x104
call fcn.00404927
cmp eax, edi
je 0x40d59d
push edi
push 0x8000000
push 2
push edi
push edi
push 0x40000000
push esi
call fcn.0040188c
cmp eax, 0xffffffff
je 0x40d548
push 0x40d5c0
push 0x8000
push eax
call dword [sym.imp.MSVCR80.dll__open_osfhandle]
pop ecx
pop ecx
push eax
call dword [sym.imp.MSVCR80.dll__fdopen]
pop ecx
pop ecx
mov dword [0x411480], eax
cmp dword [0x411480], edi
jne 0x40d55a
push esi
push 1
mov eax, 0x304
jmp 0x40d5a6
mov eax, 0x410060
mov byte [0x411486], 1
call fcn.0040dacd
push dword [0x411480]
lea eax, [ebp + 8]
push 1
push 2
push eax
mov dword [ebp + 8], CryptGetHashParam
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x40d5b2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040d6a6
xor eax, eax
jmp 0x40d5b7
push dword [ebp + 8]
mov eax, 0x30d
push edi
mov ecx, 0x410060
call fcn.0040cab2
pop ecx
pop ecx
mov eax, 0x80004005
pop edi
pop esi
pop ecx
pop ebp
ret 0xc

Function at 0x40d5c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, 0x410060
push 0x3011
call fcn.0040d633
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
lea ecx, [eax + 2]
pop esi
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40d5e2
push dword [0x411480]
sub eax, ecx
sar eax, 1
push eax
push 2
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR80.dll_fwrite]
push 0x40c7bc
push dword [0x411480]
call dword [sym.imp.MSVCR80.dll_fwprintf_s]
add esp, 0x18
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx