joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ea50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf798
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00449290
test eax, eax
je 0x44eb58
lea ecx, [esp + 0xc]
call fcn.0041c830
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00449290
mov ecx, eax
call fcn.00446960
test eax, eax
je 0x44eb3f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x44eb3f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x44eb3f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041ca30
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x44eb21
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x44eb3f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x53c178]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x501768
call fcn.0041ca30
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x451970
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bfa28
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4519a9
inc eax
mov dword [esi + 0x10], eax
jmp 0x451abc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4519bd
mov eax, 0xffffffc7
jmp 0x451abe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4519ce
cmp dword [esi + 8], eax
jne 0x4519bd
cmp dword [esi + 8], eax
jne 0x4519e7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4519e7
mov eax, 0xffffffc7
jmp 0x451abe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4519fb
push eax
mov ecx, ebx
call fcn.004511a0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0041c830
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x451a2c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0041c850
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00450910
test eax, eax
mov dword [esp + 0x38], eax
je 0x451a5f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x501798
call fcn.0041ca30
mov eax, dword [esp + 0x38]
jmp 0x451abe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004517d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x451aa3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004517f0
mov esi, eax
test esi, esi
jne 0x451ad3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004517d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x451a75
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x501798
call fcn.0041ca30
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x501798
call fcn.0041ca30
mov eax, esi
jmp 0x451abe

Function at 0x4564c0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x456520
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x456520
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x456520
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x456520
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x456560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x48b7c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x56bab0]
xor edx, edx
cmp eax, edx
jne 0x48b7e6
xor eax, eax
mov byte [eax + 0x56b9b0], al
inc eax
cmp eax, 0x100
jl 0x48b7ce
mov dword [0x56bab0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x56b9b0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x48b877
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x48b84a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x48b818
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x48b8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x48b943
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x48b92a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4922d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c126e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00492bf0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x507d84
call fcn.004b180d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x492363
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b180d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49235c
push 0
mov ecx, eax
call fcn.00489400
mov dword [esi + 0xc], eax
jmp 0x492365
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x492365
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4b3e9a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b3ed2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b1f27
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b1eff
jmp 0x4b3ede
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b558f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b55d1
call fcn.004bb082
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b55d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b55c8
xor eax, eax
jmp 0x4b55d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b55df
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bb5b2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4bb5e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bb5fe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bb518
jmp 0x4bb5fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bb5fe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bb518
test edi, edi
mov eax, edi
jne 0x4bb5e8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402063
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
je 0x4020bf
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x402087
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40207f
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0x80004005
call fcn.00401d1f
int3

Function at 0x4020ca
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x406194]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4021ae
cmp dword [esp + 0xc], esi
je 0x402130
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
test esi, esi
jne 0x4021ae
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
push eax
jmp 0x40217d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004020ca
mov esi, eax
test esi, esi
jne 0x4021ae
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x100
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x402152
cmp dword [esp + 0xc], 0
je 0x4021a4
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push ebx
mov ecx, edi
call fcn.00401fce
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x4021bf
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404ea0
mov esp, ebp
pop ebp
ret 4
Function at 0x40255b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x405805
call fcn.00405735
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x420], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
pop ecx
push ecx
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4025be
call fcn.00401db6
mov esi, eax
jmp 0x4026f0
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x4025dd
call fcn.00401db6
jmp 0x4026e7
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x4025d3
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x402634
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40261f
lea ecx, [ebp - 0x418]
call fcn.004045a4
lea ecx, [ebp - 0x420]
call fcn.00404588
mov eax, 0x8007000e
jmp 0x402716
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x40271e
jb 0x40264f
cmp eax, 0xffffffff
ja 0x40271e
cmp eax, 0x400
jbe 0x40266a
push eax
lea ecx, [ebp - 0x418]
call fcn.004045ae
mov eax, dword [ebp - 0x418]
jmp 0x402676
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x4026a0
test eax, eax
jne 0x4026ab
mov esi, 0x8007000e
jmp 0x4026e9
push ebx
push eax
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4025d3
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.004030bd
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x402709
lea ecx, [ebp - 0x418]
call fcn.004045a4
lea ecx, [ebp - 0x420]
call fcn.00404588
mov eax, esi
call fcn.00405687
ret 0x10
mov ecx, 0x80070057
call fcn.00401d1f
int3
Function at 0x404e60
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x405c08
call fcn.00405528
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x406590
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x404c45
cmp eax, esi
jne 0x404c38
xor esi, esi
inc esi
mov edi, esi
jmp 0x404c48
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x404c1c
xor esi, esi
inc esi
cmp dword [0x406594], esi
jne 0x404c5a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x404c94
cmp dword [0x406594], ebx
jne 0x404c8e
mov dword [0x406594], esi
push 0x4013cc
push 0x4013c0
call fcn.00404dc4
pop ecx
pop ecx
test eax, eax
je 0x404c94
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404dbe
mov dword [0x4061d4], esi
cmp dword [0x406594], esi
jne 0x404cb7
push 0x4013bc
push 0x4013a8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x406594], 2
test edi, edi
jne 0x404cc4
xor eax, eax
mov ecx, 0x406590
xchg dword [ecx], eax
cmp dword [0x4065a0], 0
je 0x404cf0
push 0x4065a0
call fcn.00405380
pop ecx
test eax, eax
je 0x404cf0
push ebx
push 2
push ebx
mov esi, dword [0x4065a0]
mov ecx, esi
call dword [0x4071d8]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x404c7d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x404d5b
test ax, ax
je 0x404d2a
test edx, edx
jne 0x404d5b
test ax, ax
je 0x404d2a
cmp ax, si
ja 0x404d2a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x404d15
test byte [ebp - 0x3c], 1
je 0x404d36
movzx eax, word [ebp - 0x38]
jmp 0x404d39
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x4061d0], eax
cmp dword [0x4061e8], 0
jne 0x404da3
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x404d6c
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x404d04
cmp dword [0x4061d4], 0
jne 0x404db7
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4061d0]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040556d
ret
call fcn.00405475
jmp 0x404bf3

Function at 0x405274
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x405c48
call fcn.00405528
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4052d4
cmp eax, 0xffffffff
je 0x4052d4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4052cd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4052cd
cmp edx, 0x10000000
jae 0x4052cd
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 0x4052ca
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040556d
ret 4
Function at 0x405330
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 0x40536e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405366
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405370
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405356
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405440
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 0x405471
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405471
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x405471
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40b83b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x428470]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
not esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
not edi
mov dword [esp + 0x14], esi
cmp eax, dword [0x428478]
jne 0x40b8ed
mov eax, dword [0x428474]
cmp eax, dword [0x42847c]
jne 0x40b8ed
call fcn.004099cd
cmp eax, 3
jae 0x40b8a2
push 0x4219d8
push 1
push 1
push 0
call dword [0x41b06c]
test eax, eax
je 0x40b8a2
push eax
call dword [0x41b0e8]
xor ebx, ebx
push 8
mov edx, ebx
xor ecx, ecx
pop esi
mov eax, edx
shrd edx, ecx, 1
and eax, 1
shr ecx, 1
or eax, 0
je 0x40b8c7
xor edx, 0xd7870f42
xor ecx, 0xc96c5795
dec esi
jne 0x40b8ab
mov dword [ebx*8 + 0x428470], edx
mov dword [ebx*8 + 0x428474], ecx
inc ebx
cmp ebx, 0x100
jb 0x40b8a4
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx]
xor eax, edi
shrd edi, esi, 8
and eax, 0xff
shr esi, 8
xor edi, dword [eax*8 + 0x428470]
xor esi, dword [eax*8 + 0x428474]
inc ecx
dec edx
jne 0x40b8ed
not edi
not esi
call fcn.004099cd
cmp eax, 3
jae 0x40b92e
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [0x41b034]
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c24f
Capabilities:
Check for vm using instruction vpcext
Reference the vmware io port

Disassembly:
push 0xc
push 0x424148
call fcn.0041a1d0
mov dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
xor ebx, ebx
mov ecx, 0x14
mov edx, 0x5658
in eax, dx
cmp eax, 0x20
jl 0x40c28f
cmp eax, 0x4000
jg 0x40c28f
mov eax, 1
or dword [ebp - 0x1c], eax
pop ebx
pop ecx
pop edx
jmp 0x40c29b
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 1
push ebx
xor eax, eax
xor ebx, ebx
inc eax
invalid

Function at 0x40c329
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0x10
push 0x424170
call fcn.0041a1d0
mov eax, dword [0x4260bc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
push dword [ebp - 0x20]
call dword [0x41b030]
mov dword [ebp - 0x20], 0
jmp 0x40c36b
or dword [ebp - 4], 0xffffffff
call fcn.0040c13e
cmp eax, 0x10000
jne 0x40c381
or dword [ebp - 0x1c], 2
jmp 0x40c3bb
call fcn.0040c181
cmp eax, 0x70
je 0x40c37b
call fcn.0040c1ba
test eax, eax
jg 0x40c37b
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 2]
and ebx, 0xff
test ebx, ebx
jne 0x40c3b3
mov ebx, dword [eax + 0x68]
and eax, 0x70
test eax, eax
jne 0x40c3b3
jmp 0x40c3bb
mov eax, 2
or dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.0041a20b
ret
Function at 0x65993d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x662168
cmp edx, dword [eax]
je 0x65995f
add eax, 8
inc ecx
cmp eax, 0x6621f8
jl 0x659950
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x662168]
jne 0x659a8d
mov eax, dword [0xa67a90]
cmp eax, 1
je 0x659a67
test eax, eax
jne 0x659990
cmp dword [0x662094], 1
je 0x659a67
cmp edx, 0xfc
je 0x659a8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6599c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0065a320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a7b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659a0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a7b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65edec
push edi
call fcn.0065c680
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0065a320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a330
lea eax, [ebp - 0xa0]
push 0x65edcc
push eax
call fcn.0065a330
push dword [esi + 0x66216c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a330
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065c5f4
add esp, 0x2c
pop edi
jmp 0x659a8d
lea eax, [ebp + 8]
lea esi, [esi + 0x66216c]
push 0
push eax
push dword [esi]
call fcn.0065a7b0
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 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ed0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1b48106e
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6836758c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219