joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4f1bf9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f1c05
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4f1c00
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x512ef3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x574d2d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00574932

Function at 0x574d38
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00574ab3

Function at 0x57e5b0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057dd88

Function at 0x57e5bb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057dfc5

Function at 0x57ea27
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057e7ae

Function at 0x40ed4e
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
pop edi
call fcn.0040ed7f
add eax, 0x278c5f8a
xor dword [ecx], edi
mov edx, 0x8f1aec9e
or edx, edx
add ecx, 1
sub eax, eax
cmp ecx, ebx
jne fcn.0040ed4e
or eax, edx
sub edx, 0x3300534e
ret
Function at 0x10001204
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000120e
repz ret
jmp fcn.1000522b

Function at 0x100101cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000a9e8
and dword [ebp - 4], 0
cmp dword [0x1008ffac], 0
mov ebx, eax
jne 0x1001027e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001032f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001032f
push eax
call fcn.1000a976
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1008ffac], eax
call esi
push eax
call fcn.1000a976
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1008ffb0], eax
call esi
push eax
call fcn.1000a976
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1008ffb4], eax
call esi
push eax
call fcn.1000a976
pop ecx
mov dword [0x1008ffbc], eax
test eax, eax
je 0x1001027e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a976
pop ecx
mov dword [0x1008ffb8], eax
mov eax, dword [0x1008ffb8]
cmp eax, ebx
je 0x100102d6
cmp dword [0x1008ffbc], ebx
je 0x100102d6
push eax
call fcn.1000a9f1
push dword [0x1008ffbc]
mov esi, eax
call fcn.1000a9f1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100102d6
test edi, edi
je 0x100102d6
call esi
test eax, eax
je 0x100102cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100102cd
test byte [ebp - 0xc], 1
jne 0x100102d6
or dword [ebp + 0x10], 0x200000
jmp 0x1001030f
mov eax, dword [0x1008ffb0]
cmp eax, ebx
je 0x1001030f
push eax
call fcn.1000a9f1
pop ecx
test eax, eax
je 0x1001030f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001030f
mov eax, dword [0x1008ffb4]
cmp eax, ebx
je 0x1001030f
push eax
call fcn.1000a9f1
pop ecx
test eax, eax
je 0x1001030f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1008ffac]
call fcn.1000a9f1
pop ecx
test eax, eax
je 0x1001032f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10010331
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10021d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp + 0x14], 0
je 0x10021d57
cmp dword [ebp + 8], 0
jne 0x10021d59
jmp 0x10021da9
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
test eax, eax
jle 0x10021d69
cmp dword [ebp + 0x10], 0
jg 0x10021d6b
jmp 0x10021da9
push 0x10079a4c
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.100034ca
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10021d87
jmp 0x10021da9
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
push ecx
call fcn.1000375b
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], 0
je 0x10021dbb
mov eax, dword [ebp - 4]
push eax
call fcn.10003854
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x10021dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x10021dfd
jmp 0x10021ea2
push 0x10079a20
mov eax, dword [ebp + 8]
push eax
call fcn.100034ca
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10021e1c
jmp 0x10021ea2
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.10004c48
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.10004b50
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10021e43
jmp 0x10021ea2
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.10004c48
add esp, 0xc
test eax, eax
je 0x10021e59
jmp 0x10021ea2
push 0x33
push 0x10079a24
mov ecx, dword [ebp - 8]
push ecx
call sub.inicrypto_v5.4.1.dll_ISC_Malloc
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10021e77
jmp 0x10021ea2
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10004996
add esp, 0x10
cmp eax, dword [ebp - 8]
je 0x10021e94
jmp 0x10021ea2
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0xc], 0
je 0x10021ec8
cmp dword [ebp - 0x10], 0
jge 0x10021ec8
push 0x40
push 0x10079a38
mov edx, dword [ebp - 0xc]
push edx
call sub.inicrypto_v5.4.1.dll_ISC_Free
add esp, 0xc
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x10021eda
mov eax, dword [ebp - 4]
push eax
call fcn.10003854
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10050c80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x10050c8a
call fcn.1005098e
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10050cb7
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
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.100509c9
inc ecx
fcmovnb st(0), st(7)
cdq
lea eax, [ebp - 0x40]
push eax
call fcn.100509d9
push eax
push esi
push dword [ebp + 8]
call fcn.1005098e
add esp, 0x10
adc byte [ecx - 0x877b], cl
invalid
call fcn.100509c9
invalid
Function at 0x10051200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ecx + 0x40fffffc], esi
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.100509d9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1005098e
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.100509d9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1005098e
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
Function at 0x10051660
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb bh, bh
jne 0x10051678
call fcn.1005098e
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.100509c9
fdiv qword [eax + 0x468e261]
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x10051692
mov al, 0x61
loop 0x100516e4
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x100516bd
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x10051887
cmp dword [ebp + 0xc], 1
je 0x10051887
cmp dword [ebp + 0xc], 8
jne 0x1005184f
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
test dword [ecx + edi*8 - 1], ecx
push dword [ebx]
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
invalid
test dword [ebx - 7], ebx

Function at 0x100667d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.inipki_v5.4.3.dll_ASN1_to_binary
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1006680d
jmp 0x10066851
cmp dword [ebp + 0xc], 0
jne 0x10066815
jmp 0x10066851
push 0x1008f180
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 8]
push eax
call fcn.100034e1
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x10066832
jmp 0x10066851
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call fcn.1000375b
add esp, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 8], 0
je 0x10066863
mov edx, dword [ebp - 8]
push edx
call fcn.10003854
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x10066883
push 0x7b
push 0x1008f184
mov eax, dword [ebp - 0xc]
push eax
call sub.inicrypto_v5.4.1.dll_ISC_Free
add esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x401820
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402590
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402590
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401880
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406074]
test esi, esi
jle 0x4019a0
mov eax, dword [0x406078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4018b4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401937
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4018a0
mov dword [esp], ebx
call fcn.00402270
mov edi, eax
test eax, eax
je 0x4019c7
mov eax, dword [0x406078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004023b0
mov edx, dword [0x406078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4019a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401930
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401940
add dword [0x406074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401930
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401820
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4018be
mov eax, dword [0x406078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401820
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401820
lea esi, [esi]
nop
Function at 0x401ef0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406088]
sub esp, 4
test ebx, ebx
je 0x401f45
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f3e
test esi, esi
je 0x401f3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f20
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402270
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402295
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4022a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402295
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4022e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4022de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4022d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40296c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
call fcn.00401660
mov eax, dword [sym.imp.KERNEL32.dll_FreeConsole]
call eax
cmp dword [ebp + 8], 3
jne 0x4029b5
mov eax, dword [ebp + 0xc]
add eax, 8
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402668
jmp 0x4029f1
mov dword [esp + 0x18], 0x2e323931
mov dword [esp + 0x1c], 0x2e383631
mov dword [esp + 0x20], 0x2e323431
mov dword [esp + 0x24], 0x383231
mov dword [esp + 0x2c], 0x1f90
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call fcn.00402668
mov eax, 0
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x414ddf
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], ecx
add edi, 0xd56073af
add eax, 4
cmp eax, ebx
jne fcn.00414ddf
sub edx, 0x2a00dac8
ret
Function at 0x408ed3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x408ee2
pop dword [ebp - 0x44]
mov eax, 0x4314586d
add eax, 0xbd2c3675
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x37e5d
push 0
mov eax, 0xfd398a5e
add eax, 0x3076632
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x456db61
sub ecx, 0x4569567
mov edi, eax
mov ebx, 0x41aa00
add ebx, dword [ebp - 0x44]
mov edx, 0xdc0712b5
sub edx, 0x8faae3e5
add dword [ebp - 0x20], esi
mov esi, dword [ebx]
sub esi, edx
xor dword [ebp - 8], edi
mov dword [edi], esi
xor dword [ebp - 0x34], 0x170c11a6
add edi, 4
add ebx, 0xb791ed0
sub ebx, 0xb791ecc
loop 0x408f3b
add eax, 0x5762fbcf
sub eax, 0x5761f114
mov ebx, eax
add eax, 5
mov ecx, 0x16b5576f
add ecx, 0xe98aa891
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1004605f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100870c0]
jne 0x10046069
repz ret
jmp fcn.1004ef8a

Function at 0x1004eda7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10087268]
je 0x1004edc2
inc edi
cmp edi, 0x17
jb 0x1004edb3
cmp edi, 0x17
jae 0x1004ef42
push ebp
push 3
call fcn.10055799
cmp eax, 1
pop ecx
je 0x1004ef0e
push 3
call fcn.10055799
test eax, eax
pop ecx
jne 0x1004edf6
cmp dword [0x1008894c], 1
je 0x1004ef0e
cmp ebx, 0xfc
je 0x1004ef41
push 0x1000ae6c
mov ebx, 0x314
push ebx
mov ebp, 0x10088b00
push ebp
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee2c
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x104
mov esi, 0x10088b19
push esi
push 0
mov byte [0x10088c1d], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004ee70
push 0x1000ae54
push 0x2fb
push esi
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1004fb11
add esp, 0x14
push esi
call fcn.10055430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004eeb5
push esi
call fcn.10055430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10088e14
push 0x1000a540
sub ecx, eax
push ecx
push eax
call fcn.10065ae7
add esp, 0x14
test eax, eax
je 0x1004eeb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
jmp 0x1004eeb7
xor esi, esi
push 0x1000ae50
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eed7
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push dword [edi*8 + 0x1008726c]
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eef9
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x12010
push 0x1000ae28
push ebp
call fcn.10065ae7
add esp, 0xc
jmp 0x1004ef41
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004ef41
cmp ebp, 0xffffffff
je 0x1004ef41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008726c]
push dword [esi]
call fcn.10055430
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10065ae7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10065af6
pop dword [ebp - 0x28]
mov eax, 0xcc719181
sub eax, 0xbc6b368b
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x5b837
push 0
mov eax, 0xa7f184c7
sub eax, 0x97f173a3
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x37ba8db7
sub ecx, 0x37ba3ecd
xor edi, edi
add edi, eax
mov ebx, 0x100a0c00
add ebx, dword [ebp - 0x28]
mov edx, 0xa92b239a
add edx, 0x56fead00
xor dword [ebp - 0x1c], 0x764c6384
mov esi, dword [ebx]
add dword [ebp - 4], 0xf94ef032
add esi, edx
add dword [ebp - 0x24], eax
mov dword [edi], esi
sub dword [ebp - 0x14], esi
add edi, 0x3d5fdcc4
sub edi, 0x3d5fdcc0
add ebx, 0xba4a92e5
add ebx, 0x45b56d1f
loop 0x10065b51
add eax, 0xe891494c
sub eax, 0xe8901ad1
mov ebx, eax
add eax, 0xfafc2107
add eax, 0x503defe
mov ecx, 0xc042e89
add ecx, 0x3fbd177
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4018e8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init