joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40bdb9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40bdc8
pop dword [ebp - 0x40]
mov eax, 0xfe3ca523
sub eax, 0xfdfbe75b
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xe12cc5c5
add dword [ebp - 0x50], 0x6d257f86
mov dword [ebp - 0x4c], 0xdfb61bae
add dword [ebp - 0x4c], 0x527d3097
mov dword [ebp - 0x48], 0x14586267
add dword [ebp - 0x48], 0x37f3e1c7
mov dword [ebp - 0x44], 0xe71c09f8
sub dword [ebp - 0x44], 0xe71c09f8
lea eax, [ebp - 0x50]
push eax
mov eax, 0xd3d692a1
add eax, 0x2c6a3db3
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xa09bb757
sub dword [ebp - 0x50], 0x2c294e01
mov dword [ebp - 0x4c], 0xf1d2370d
add dword [ebp - 0x4c], 0x4f9a2a68
mov dword [ebp - 0x48], 0xa248f647
add dword [ebp - 0x48], 0xc1267625
mov dword [ebp - 0x44], 0x2c97cf58
sub dword [ebp - 0x44], 0x2c97cf58
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xf08887fd
sub eax, 0xf047b7b1
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x360ae
push 0
call eax
mov ecx, 0x3a17
xor esi, esi
add esi, eax
mov edi, 0x411cc52d
sub edi, 0x40db152d
add edi, dword [ebp - 0x40]
mov edx, 0xcad71ee
add edx, 0xb5509e84
sub dword [ebp - 0x10], 0x4f562f85
mov ebx, dword [edi]
add dword [ebp - 0x24], edi
xor ebx, edx
xor dword [ebp - 0x34], edi
mov dword [esi], ebx
xor dword [ebp - 0x30], ebx
add esi, 0x87b676a4
sub esi, 0x87b676a0
add edi, 0x16a761bd
sub edi, 0x16a761b9
loop 0x40bee6
add eax, 0xc496b582
add eax, 0x3b6a25ad
mov ebx, eax
add eax, 0x7b452de0
sub eax, 0x7b452ddb
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x22fb74e1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0xc903b45
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4031d0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebp
push ebx
movzx edi, word [esp + 0x14]
sub esp, 0x20
movzx eax, word [0x40f4b0]
mov ebp, dword [0x40f5c0]
mov edx, dword [0x40f4a8]
movsx esi, word [0x40f55c]
mov dword [esp + 0x18], eax
lea ecx, [ebp + edx]
cmp edx, 0x7efa
jle 0x4033ab
lea ebx, [edx - 0x7efa]
mov dword [esp + 0x10], ebx
movsx ebx, word [0x40f550]
lea edx, [edx + ebp + 0x102]
mov dword [esp + 4], edx
lea edx, [eax - 1]
mov dword [esp + 8], edx
cmp eax, ebx
mov bh, byte [ecx + eax - 1]
mov al, byte [ecx + eax]
jl 0x40323b
sar esi, 2
mov bl, al
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x14]
mov ebp, edi
mov eax, dword [esp + 0x18]
add edx, ebp
cmp bl, byte [edx + eax]
jne 0x403381
mov eax, dword [esp + 8]
cmp bh, byte [edx + eax]
jne 0x403381
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov cl, byte [ebp + eax]
cmp cl, byte [edx]
lea edx, [eax + ebp + 3]
jne 0x403381
mov ecx, dword [esp + 0xc]
mov al, byte [ebp + eax + 1]
cmp al, byte [ecx + 1]
jne 0x403381
mov eax, dword [esp + 0x14]
mov al, byte [ebp + eax + 2]
cmp al, byte [ecx + 2]
jne 0x403381
invalid
mov eax, ecx
lea ecx, [edx + 1]
mov edx, eax
add edx, 4
mov al, byte [eax + 3]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x14]
cmp al, byte [ebp + edi + 3]
mov edi, dword [esp + 0x1c]
jne 0x40332c
lea esi, [esi]
lea edi, [edi]
mov al, byte [edx]
inc edx
mov ah, byte [ecx]
inc ecx
cmp al, ah
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 1]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 2]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 3]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 4]
jne 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
cmp al, byte [ecx + 5]
jne 0x40332c
mov eax, dword [esp + 4]
cmp edx, eax
ja 0x40332c
mov eax, edx
inc edx
mov al, byte [eax]
mov ah, byte [ecx + 6]
add ecx, 7
cmp al, ah
je 0x4032d0
mov eax, dword [esp + 4]
dec edx
mov ecx, 0xfffffefe
add ecx, eax
sub eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, edx
mov edx, eax
neg edx
mov eax, ecx
mov ecx, edx
add ecx, 0x102
cmp ecx, eax
jle 0x403381
movsx eax, word [0x40f558]
mov dword [esp + 0x18], ecx
mov word [0x40f4ac], di
cmp ecx, eax
jge 0x40339f
lea eax, [edx + 0x101]
mov ecx, dword [esp + 4]
mov dword [esp + 8], eax
mov bh, byte [ecx + edx - 1]
mov bl, byte [ecx + edx]
mov eax, dword [0x40f578]
and ebp, 0x7fff
mov edx, dword [esp + 0x10]
movzx edi, word [eax + ebp*2]
cmp edx, edi
jae 0x40339f
dec esi
jne 0x403245
mov eax, dword [esp + 0x18]
add esp, 0x20
pop ebx
pop ebp
pop esi
pop edi
ret
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x403214
Function at 0x4071a0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d180
push 0x409174
mov eax, dword fs:[0x4000]
push eax
mov dword fs:[eax + eax], esp
add byte [eax], al
add byte [ebx + 0x565358ec], al
push edi
mov dword [ebp - 0x18], esp
call dword [0xd0bc]
xor edx, edx
mov dl, ah
mov dword [0x40f218], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40f214], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40f210], ecx
shr eax, 0x10
mov dword [0x40f20c], eax
xor esi, edi
push esi
call 0x41913b
pop ecx
test eax, eax
jne 0x40720c
push 0x1c
call fcn.004072bb
pop ecx
mov dword [ebp - 4], esi
call fcn.00408e90
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f988], eax
call fcn.00408d5e
mov dword [0x40f1f0], eax
call fcn.00408b11
call fcn.00408a58
call fcn.00407d78
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00408a00
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x407259
movzx eax, word [ebp - 0x2c]
jmp 0x40725c
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00407da5
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.0040887c
pop ecx
pop ecx
ret

Function at 0x407dc7
Capabilities:
Terminate process

Disassembly:
push edi
push 1
pop edi
cmp dword [0x40f248], edi
jne 0x407de4
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x14]
mov dword [0x40f244], edi
mov byte [0x40f240], bl
jne 0x407e38
mov eax, dword [0x40f750]
test eax, eax
je 0x407e27
mov ecx, dword [0x40f74c]
push esi
lea esi, [ecx - 4]
cmp esi, eax
jb 0x407e26
mov eax, dword [esi]
test eax, eax
je 0x407e1b
call dword [eax - 0x7d]
out dx, al
add al, 0x3b
xor eax, 0x40f750
sub esi, 4
cmp esi, dword [0x40f750]
jae 0x407e13
pop esi
push 0x40e018
push 0x40e014
call fcn.00407e60
pop ecx
pop ecx
push 0x40e020
push 0x40e01c
call fcn.00407e60
pop ecx
pop ecx
test ebx, ebx
pop ebx
jne 0x407e5e
push dword [esp + 8]
mov dword [0x40d248], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
ret
Function at 0x409281
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e7c8
cmp edx, dword [eax]
je 0x4092a3
add eax, 8
inc ecx
cmp eax, 0x40e858
jl 0x409294
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e7c8]
jne 0x4093d1
mov eax, dword [0x40f1f8]
cmp eax, 1
je 0x4093ab
test eax, eax
jne 0x4092d4
cmp dword [0x40e494], 1
je 0x4093ab
cmp edx, 0xfc
je 0x4093d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40930b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040ad10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407c50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40934e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407c50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d4b4
push edi
call fcn.00409880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040ad10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ad20
lea eax, [ebp - 0xa0]
push 0x40d494
push eax
call fcn.0040ad20
push dword [esi + 0x40e7cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ad20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bec4
add esp, 0x2c
pop edi
jmp 0x4093d1
lea eax, [ebp + 8]
lea esi, [esi + 0x40e7cc]
push 0
push eax
push dword [esi]
call fcn.00407c50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
Function at 0x402910
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
mov eax, dword [0x448054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [0x449148], 0x43f3e8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
push 0x200
push 0x448940
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x448940
call fcn.00403b11
add esp, 8
test eax, eax
je 0x402a2c
lea ecx, [eax + 2]
mov edx, 0x448d40
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402973
push 0x2e
push 0x448d40
call fcn.00403b11
add esp, 8
test eax, eax
je 0x4029a9
movzx ecx, word [eax + 2]
cmp ecx, 0x45
je 0x4029a4
cmp ecx, 0x65
jne 0x4029a9
xor ecx, ecx
mov word [eax], cx
call fcn.00402310
push edi
call fcn.00401010
movzx eax, ax
add esp, 4
test ax, ax
je 0x402a2c
cwde
push eax
push dword [0x449148]
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x194]
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
call esi
test eax, eax
je 0x402a16
cmp eax, 0x190
jg 0x402a16
push 0x190
lea eax, [ebp - 0x4b4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x194]
push eax
push 1
push 0
call esi
push 0x30
push 0x448d40
lea eax, [ebp - 0x4b4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00402afd
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405b90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x43f66c
push str.FlsAlloc
push 0
call fcn.00405a37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405bc2
push dword [ebp + 8]
mov ecx, esi
call fcn.00403811
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x405c04
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x43f690
push str.FlsGetValue
push 2
call fcn.00405a37
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x405c35
mov ecx, esi
call fcn.00403811
call esi
jmp 0x405c3b
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x405c3e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x43f6a4
push str.FlsSetValue
push 3
call fcn.00405a37
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x405c72
mov ecx, esi
call fcn.00403811
call esi
jmp 0x405c78
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x41dd90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0041da98
add dword [edi], esp
mov bl, 0xb5
lea eax, [ebp - 0x40]
push eax
call fcn.0041daa8
push eax
push esi
push dword [ebp + 8]
call fcn.0041da5d
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0041da98
push cs
daa
out dx, eax
daa
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
invalid
inc ebp

Function at 0x41e315
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ebx + 0x40fffffc], edi
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0041daa8
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041da5d
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
invalid
invalid
invalid
stc
invalid

Function at 0x41e35d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc edi
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al
Function at 0x4016eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xb8], edx
push esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.DEVOBJ.dll_DevObjCreateDeviceInfoList]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40173e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x401736
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4018c4
xor esi, esi
push esi
push esi
push 4
push edi
push esi
push ebx
call dword [sym.imp.DEVOBJ.dll_DevObjGetClassDevs]
mov ecx, eax
call fcn.004015c2
mov edi, eax
mov eax, esi
jmp 0x40189e
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa0], esi
push ecx
push eax
push ebx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0xa4], 0x24
call dword [sym.imp.DEVOBJ.dll_DevObjEnumDeviceInfo]
mov ecx, eax
call fcn.004015c2
mov edi, eax
test edi, edi
js 0x401897
push 0x20019
push 1
push esi
push 1
lea eax, [ebp - 0xa4]
push eax
push ebx
call dword [sym.imp.DEVOBJ.dll_DevObjOpenDevRegKey]
mov esi, eax
mov dword [ebp - 0xb4], esi
cmp esi, 0xffffffff
jne 0x4017f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4017f1
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x401895
xor edi, edi
lea eax, [ebp - 0x80]
push 0x7c
push edi
push eax
mov dword [ebp - 0xa8], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x7c
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa8]
push eax
push edi
push 0x401170
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x401846
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esi + 0x1ffffdf5]
neg edi
sbb edi, edi
and edi, esi
mov eax, edi
jl 0x401895
cmp dword [ebp - 0xa8], 1
jne 0x401895
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x401895
lea edx, [ebp - 0xa4]
mov ecx, ebx
call fcn.004015eb
mov edi, eax
xor esi, esi
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
test edi, edi
jns 0x40175b
lea esi, [edi + 0x7ff8fefd]
neg esi
sbb esi, esi
and esi, edi
cmp ebx, 0xffffffff
je 0x4018c4
push ebx
call dword [sym.imp.DEVOBJ.dll_DevObjDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d30
leave
ret
Function at 0x401d20
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x402380
call fcn.004020ec
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40337c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401b3e
cmp eax, esi
jne 0x401b31
xor esi, esi
inc esi
mov edi, esi
jmp 0x401b41
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401b15
xor esi, esi
inc esi
cmp dword [0x403380], esi
jne 0x401b53
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401b8d
cmp dword [0x403380], ebx
jne 0x401b87
mov dword [0x403380], esi
push 0x4010e0
push 0x4010d4
call fcn.00401c78
pop ecx
pop ecx
test eax, eax
je 0x401b8d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401c62
mov dword [0x403024], esi
cmp dword [0x403380], esi
jne 0x401bb0
push 0x4010d0
push 0x4010c8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403380], 2
test edi, edi
jne 0x401bbd
xor eax, eax
mov ecx, 0x40337c
xchg dword [ecx], eax
cmp dword [0x403384], 0
je 0x401be9
push 0x403384
call fcn.00401f20
pop ecx
test eax, eax
je 0x401be9
push ebx
push 2
push ebx
mov esi, dword [0x403384]
mov ecx, esi
call dword [0x4040c4]
call esi
push dword [0x403030]
push dword [0x40302c]
push dword [0x403028]
call fcn.0040192d
add esp, 0xc
mov dword [0x403020], eax
cmp dword [0x403038], 0
jne 0x401c47
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 [0x403024], 0
jne 0x401c5b
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403020]
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.00402029
jmp 0x401af9

Function at 0x401df0
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4023a0
call fcn.004020ec
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401e50
cmp eax, 0xffffffff
je 0x401e50
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401e49
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401e49
cmp edx, 0x10000000
jae 0x401e49
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 0x401e46
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 0x401ed0
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 0x401f0e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401f06
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401f10
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401ef6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401ff0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40201f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40201f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43b644
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
mov ecx, 0xaf481c92
and esi, ecx
dec ecx
call fcn.0043b67b
mov esi, 0xf85118fc
xor dword [edi], ebx
and esi, esi
mov esi, ecx
add ecx, esi
add edi, 1
push 0xbc526c00
pop esi
cmp edi, eax
jne fcn.0043b644
or esi, esi
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x41426d
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
call dword [fcn.0044b0f8]
mov esi, eax
test esi, esi
jne 0x4142c1
call dword [fcn.0044b0f4]
mov edi, eax
test edi, edi
jle 0x414298
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x41429f
mov edi, 0x80004005
push edi
push 0x140
push 0x44ee0c
call fcn.0040c886
push 0x44f204
push edi
call fcn.0044929c
pop ecx
pop ecx
jmp 0x41440e
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x4142ea
mov esi, 0x8007000d
push esi
push 0x14a
push 0x44ee0c
mov edi, esi
call fcn.0040c886
push 0x44ee88
push esi
jmp 0x4142b5
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x414314
mov esi, 0x8007000d
push esi
push 0x155
push 0x44ee0c
mov edi, esi
call fcn.0040c886
push 0x44eef8
jmp 0x4142e7
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x44f01c
push ebx
call fcn.00438bee
add esp, 0xc
test eax, eax
je 0x414359
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x414380
add ebx, 0x28
inc eax
cmp dword [ebx], 0x7869772e
jne 0x414340
cmp dword [ebx + 4], 0x6e727562
jne 0x414340
cmp dword [ebx + 0x10], 0x34
jae 0x41439e
mov esi, 0x8007000d
push esi
push 0x17a
push 0x44ee0c
mov edi, esi
call fcn.0040c886
push dword [ebx + 0x10]
push 0x44f048
jmp 0x4143c8
mov esi, 0x8007000d
push esi
push 0x16e
push 0x44ee0c
mov edi, esi
call fcn.0040c886
push 0x44f028
jmp 0x414405
mov ebx, dword [ebx + 0xc]
add ebx, esi
cmp dword [ebx + 4], 2
je 0x4143d3
mov esi, 0x8007000d
push esi
push 0x184
push 0x44ee0c
mov edi, esi
call fcn.0040c886
push dword [ebx + 4]
push 0x44f0ec
push esi
call fcn.0044929c
add esp, 0xc
jmp 0x41440d
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 8]
jne 0x4143e9
inc ecx
cmp ecx, 4
jne 0x4143d8
jmp 0x41440d
mov esi, 0x8007000d
push esi
push 0x18a
push 0x44ee0c
mov edi, esi
call fcn.0040c886
push 0x44f22c
push esi
call fcn.0044929c
pop ecx
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4