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 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40561c
pop dword [ebp - 0x28]
mov eax, 0x53064680
sub eax, 0x52c5f064
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x513b07a
add dword [ebp - 0x38], 0x493e94d1
mov dword [ebp - 0x34], 0x71c66f55
sub dword [ebp - 0x34], 0x3f932310
mov dword [ebp - 0x30], 0x76ac90ba
sub dword [ebp - 0x30], 0x2a604c8c
mov dword [ebp - 0x2c], 0xbdb840c7
sub dword [ebp - 0x2c], 0xbdb840c7
lea eax, [ebp - 0x38]
push eax
mov eax, 0xa9bebb5b
sub eax, 0xa97deb07
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x9e7d256f
add dword [ebp - 0x38], 0xd5f543e7
mov dword [ebp - 0x34], 0xb2828065
add dword [ebp - 0x34], 0x8ee9e110
mov dword [ebp - 0x30], 0xf56300ac
sub dword [ebp - 0x30], 0x91f39440
mov dword [ebp - 0x2c], 0xc88e3d84
add dword [ebp - 0x2c], 0x3771c27c
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3a57f
push 0
call eax
mov ecx, 0x4b4c
xor ebx, ebx
add ebx, eax
mov edi, 0x7ef5711f
add edi, 0x814c3ee1
add edi, dword [ebp - 0x28]
mov edx, 0xe32edd4e
sub edx, 0x4e8b8730
sub dword [ebp - 4], 0x9f8bb0ce
mov esi, dword [edi]
xor dword [ebp - 0x20], edi
xor esi, edx
sub dword [ebp - 4], eax
mov dword [ebx], esi
mov dword [ebp - 4], 0xd92fda59
add ebx, 0xcbb36e05
sub ebx, 0xcbb36e01
add edi, 0x4165f256
add edi, 0xbe9a0dae
loop 0x405735
add eax, 0xce55f7cb
sub eax, 0xce54d7c8
mov ebx, eax
add eax, 5
mov ecx, 0x4a2c85d7
add ecx, 0xb6137a29
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x9a0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009a01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9a007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a006a
add dl, dl
jne 0x9a0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a00dc
xor eax, eax
add dl, dl
jne 0x9a0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a017d
add dl, dl
jne 0x9a00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9a00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9a0075
mov eax, 1
add dl, dl
jne 0x9a00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a00e1
sub eax, ebx
mov ebx, 1
jne 0x9a0128
mov ecx, 1
add dl, dl
jne 0x9a010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9a013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a0136
cmp eax, 0x7d00
jae 0x9a016d
cmp eax, 0x500
jb 0x9a0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a0075
cmp eax, 0x7f
ja 0x9a0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9a019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9a0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004060bc
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004060bc
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004060bc
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004060bc
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004060bc
mov dword [0x41203c], eax
call fcn.004060bc
test eax, eax
jge 0x402550
push 8
call fcn.004060bc
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004060bc
pop ecx
push 1
call fcn.004060bc
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004060bc
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004060bc
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004060bc
jmp 0x402495

Function at 0x4060bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4060cb
pop dword [ebp - 0x34]
mov eax, 0x4060cb
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3c755
push 0
mov eax, 0xb27ad56b
add eax, 0x4dc60b6d
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xe6dd39d3
sub ecx, 0xe6dce4cd
xor edi, edi
add edi, eax
mov esi, 0x9f9a5edf
sub esi, 0x9f59231b
add esi, dword [ebp - 0x34]
mov ebx, 0xc1527de0
sub dword [ebp - 4], 0xc381c501
mov edx, dword [esi]
xor dword [ebp - 0x18], 0x75f9c939
xor edx, ebx
xor dword [ebp - 8], edi
mov dword [edi], edx
add dword [ebp - 0x2c], 0xbb74e596
add edi, 0xf493c434
sub edi, 0xf493c430
add esi, 0x14b892d0
add esi, 0xeb476d34
loop 0x406121
add eax, 0xb197e0a9
sub eax, 0xb19699be
mov ebx, eax
add eax, 0x7c52cca
add eax, 0xf83ad33b
mov ecx, 0x6099851d
add ecx, 0x9fa67ae3
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x401c29
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.00405970
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41b8e4
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401d26
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402549
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.004023b6
lea ecx, [ebp - 0x214]
call fcn.00402919
push 0x41b7f0
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401d26
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401d26
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401d26
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401d26
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.00401fe6
pop ecx
test eax, eax
jne 0x401d1c
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401d26
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405641
mov esp, ebp
pop ebp
ret
Function at 0x417e10
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
mov esi, 0x190
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
push 0x80000001
mov edi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417ee7
lea ecx, [esp + 0x24]
push ebp
mov ebp, 4
push ecx
push ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Browse_For_Folder_Width
push edx
call ebx
test eax, eax
jne 0x417e94
mov edi, dword [esp + 0x1c]
xor esi, esi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.Browse_For_Folder_Height
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call ebx
test eax, eax
pop ebp
jne 0x417ec2
or esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x417edc
mov ecx, dword [0x4c7b4c]
push 0x4c783c
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x467826
Capabilities:
Encode data using xor

Disassembly:
invalid
xor dword [ebx - 0x4068d4b], 0x3aeeebc6
daa
dec ebx
cmc
inc edx
in eax, 0xc2
clc
and dword [ebp - 0x78e8286e], esp
pushfd
xchg edi, eax
push 0x25
xor dl, bh
jnp 0x46785d
mov ecx, 0x5802a9cb
and ebp, dword cs:[edx]
sbb bp, sp
xor al, 0x53
invalid
je 0x4677f2
or ah, byte [edx]
sub dl, al
in al, dx
mov esi, dword [edx]
clc
push ss
out 0x67, al
cli
or byte [ecx], al
pop edx
invalid

Function at 0x4693e8
Capabilities:
Encode data using xor

Disassembly:
das
or dword [edi], esi
or ebp, edi
add dword [edi - 0x194a1830], esp
adc eax, 0xe7819126
in eax, 0x46
fnsave dword [edx - 0x623c0040]
sar bh, 0xc3
popfd
xchg ecx, eax
and edi, 0xb2dd46e5
sar bh, 0xc3
popfd
out 0x50, eax
sal byte [esi + 0x6a], cl
xor dword [esi + esi*8], ebx
inc esi
js 0x46940d
mul byte [ecx + 0x71]
pushal
fild dword [eax - 0x35]
std
sub al, 0x40
jo 0x46940a
aaa
adc esi, esi
or eax, 0x6c9a04f4
inc dword [esi]
lcall 0xaf40, 0x1806ff6c
push es
sbb byte [eax - 0x51], al
cmp al, 0x22
jns 0x469421
jl 0x4693d4
pushal
sti
ret 0x6558
mov bl, 0xd4
push 0x39
jge 0x4693e1
add esi, dword [ebx - 0x3c]
mov al, 0x52
mov ebx, dword [eax]
mov ch, 0x61
add eax, 0xdfaeaaaa
invalid

Function at 0x49e60e
Capabilities:
Encode data using xor

Disassembly:
arpl word [ebp + 0xe], si
mov ah, 0x44
inc esp
add esp, esp
mov edx, dword [ecx - 0x7c]
adc ch, byte [edx - 0x3231326c]
cld
rol dword [edx - 0x62], cl
lcall 0x6cf8, 0x92ef5e21
lahf
mov al, 0x46
out 0x83, al
test dword [esp], edx
xor dword [ecx], ebp
xor ah, byte [esi]
and ch, dh
xchg edx, eax
jb 0x49e5c2
mul dword [ebp + esi*2 - 0x33e47a30]
dec ecx
bound ecx, qword [edx + 0x3562f1d3]
add eax, 0x2272f710
push ax
movsb byte es:[edi], byte [esi]
jne 0x49e59e
rol byte [ebp + 0x6249cc1b], 1
mov dl, bl
int1
bound esi, qword [0x72f71005]
and ah, byte [esi + 0x50]
test dword [ebx], ebx
int3
jle 0x49e64c
push edx
or bh, byte [0x910ebf3f]
dec edi
jne 0x49e5cd
aam 0x6b
pushal
daa
mov dl, 0x5e
jb 0x49e5a2
xchg dword [edx - 0x40291813], ebp
jne 0x49e5ca
out 0x9c, al
pop edi
aaa
lahf
or al, 0x66
push edx
leave
push ecx
xchg ebx, eax
loop 0x49e66f
or ebx, dword gs:[esi + 0x1f114625]
or ebx, dword [esi + 0x1f114625]
adc dword [edi], ebx
wait
aad 0x5c
inc edx
sub byte [ecx - 0x6d], al
add byte [ecx - 0x3d], dl
sub dword [ebx - 0x36], 0x2f
inc byte [ecx + 0x30039]
stosb byte es:[edi], al
mov dword [ebp - 0x31be766c], ecx
lcall 0x4f0f, 0x7882bb6d
jbe 0x49e5cc
sbb eax, 0x1ca5a573
pushfd
or eax, 0x2775fe13
enter 0xffffffffffffaef8, 0x16
out dx, al
cmp dword [esi], esi
jb 0x49e662
adc bh, cl
sub byte [edi - 0x3f], 0x85
div byte [ebp - 0x48]
cmc
jae 0x49e5e2
rol dword [ebp - 0xa478a0a], 0x73
mov fs, word [edi]
daa
cmc
pushfd
pop esp
stosb byte es:[edi], al
inc eax
and ah, byte [edx]
dec edi
adc eax, 0x6d3b61e1
outsb dx, byte [esi]
loopne 0x49e5e9
xor dword [ebx + 0x7e], eax
outsd dx, dword [esi]
sti
xchg esi, eax
jnp 0x49e609
jne 0x49e6a7
int 0x4d
test dword [ebp - 0x1c], 0x946bc735
jp 0x49e6c9
pushfd
ret 0xfe7
Function at 0x4bb8c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c4408
cmp edx, dword [eax]
je 0x4bb8e3
add eax, 8
inc ecx
cmp eax, 0x4c4498
jl 0x4bb8d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c4408]
jne 0x4bba11
mov eax, dword [0x4c8d8c]
cmp eax, 1
je 0x4bb9eb
test eax, eax
jne 0x4bb914
cmp dword [0x4c4330], 1
je 0x4bb9eb
cmp edx, 0xfc
je 0x4bba11
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb94b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bc2a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc730
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb98e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc730
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0b64
push edi
call fcn.004be600
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bc2a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc2b0
lea eax, [ebp - 0xa0]
push 0x4c0b44
push eax
call fcn.004bc2b0
push dword [esi + 0x4c440c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc2b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004be574
add esp, 0x2c
pop edi
jmp 0x4bba11
lea eax, [ebp + 8]
lea esi, [esi + 0x4c440c]
push 0
push eax
push dword [esi]
call fcn.004bc730
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 0x4018e0
Capabilities:
Get graphical window text

Disassembly:
ret

Function at 0x401c30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x812c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004058d0
lea edi, [ebp - 0x8018]
xor ebx, ebx
mov esi, 0x7fff
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_memset
mov dword [esp + 4], edi
mov ecx, 0x7fff
mov dword [esp + 8], ecx
mov dword [esp], str.Launch4j
call sub.KERNEL32.dll_GetEnvironmentVariableA
mov eax, dword [ebp + 8]
sub esp, 0xc
mov edx, str.__l4j_debug
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401d86
lea ebx, [ebp - 0x8128]
mov edx, 0x104
xor esi, esi
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov esi, 0x6f6c2e6a
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov dword [esp], ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncpy
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [eax + ebx], 0x75616c5c
mov edx, 0x3468636e
mov ecx, 0x407090
mov dword [eax + ebx + 4], edx
mov dword [eax + ebx + 8], esi
mov word [eax + ebx + 0xc], 0x67
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_fopen
mov dword [0x408090], eax
mov ebx, eax
ret
xor eax, eax
test ebx, ebx
je 0x401d7e
mov eax, dword [ebp + 8]
mov ecx, str.__l4j_debug_all
xor esi, esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401da7
mov esi, 1
mov dword [0x408028], esi
test ebx, ebx
je 0x401d79
mov dword [esp], ebx
mov esi, str.3.12
mov edi, str._n_nVersion:_t_s_n
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll_fprintf
mov eax, dword [0x408090]
test eax, eax
je 0x401d79
mov dword [esp], eax
mov edx, dword [ebp + 8]
mov ebx, str.CmdLine:_t_s__s_n
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
call sub.msvcrt.dll_fprintf
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
mov dword [esp], edi
mov edx, str.debug
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401c95
mov ebx, dword [0x408090]
jmp 0x401d33
mov dword [esp], edi
mov edx, str.debug_all
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401d28
jmp 0x401d2d

Function at 0x401ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
call sub.KERNEL32.dll_GetLastError
invalid
Function at 0x4020c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ecx, dword [0x408028]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x4020e5
mov eax, dword [0x408090]
test eax, eax
jne 0x40219c
movzx ecx, si
mov edx, 0x400
mov esi, 0xa
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov eax, dword [0x410880]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40216b
mov dword [esp + 4], eax
mov eax, dword [0x410880]
mov dword [esp], eax
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x402180
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x402180
xor edx, edx
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x402140
mov esi, dword [0x408028]
test esi, esi
je 0x40215f
mov eax, dword [0x408090]
test eax, eax
jne 0x4021da
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebx], 0
sub esp, 4
lea esi, [esi]
mov ecx, dword [0x408028]
test ecx, ecx
je 0x402193
mov eax, dword [0x408090]
test eax, eax
jne 0x4021b6
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], esi
mov edx, str.Resource__d:_t
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4020e5
mov dword [esp + 0xc], eax
mov edx, 1
mov eax, 7
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str._NULL__n
call sub.msvcrt.dll_fwrite
jmp 0x402193
mov dword [esp + 8], ebx
mov ebx, 0x407162
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 1
jmp 0x402164
Function at 0x4054c0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov eax, 0x808c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004058d0
cld
mov edx, 0x44
xor eax, eax
lea esi, [ebp - 0x68]
xor ebx, ebx
mov edi, 0x4102b0
mov ecx, 4
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
xor edi, edi
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x8068]
mov dword [esp], esi
call sub.msvcrt.dll_memset
mov dword [ebp - 0x68], 0x44
mov eax, 0x8000
mov dword [esp + 4], edi
mov edi, 0x4102b0
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov ecx, 0x22
mov edx, 0x4081a4
mov word [ebp - 0x8068], cx
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 0x2022
mov byte [eax + ebx + 2], 0
mov eax, 0x4082a8
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp + 0x20], esi
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x24], edi
mov eax, 1
xor edi, edi
mov dword [esp + 0x1c], esi
xor esi, esi
mov dword [esp + 0x18], ecx
mov edx, dword [0x4102c0]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x4055d0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4055e3
mov ebx, dword [ebp + 0xc]
mov eax, 1
mov dword [ebx], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [edx], 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
mov esi, 0xffffffff
mov dword [esp + 4], esi
mov eax, dword [0x4102b0]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov edi, dword [ebp + 0xc]
sub esp, 8
mov dword [esp + 4], edi
mov ecx, dword [0x4102b0]
mov dword [esp], ecx
call sub.KERNEL32.dll_GetExitCodeProcess
mov edx, dword [0x4102b4]
sub esp, 8
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
mov ebx, dword [0x4102b0]
sub esp, 4
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, 1
jmp 0x4055c2
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407949
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407949
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407949
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407949
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407949
mov dword [0x41203c], eax
call fcn.00407949
test eax, eax
jge 0x402550
push 8
call fcn.00407949
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407949
pop ecx
push 1
call fcn.00407949
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407949
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407949
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407949
jmp 0x402495

Function at 0x407949
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x407958
pop dword [ebp - 0x14]
mov eax, 0x407958
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3bca6
push 0
mov eax, 0x18461148
sub eax, 0x18053070
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xecfe3453
add ecx, 0x13021ca1
mov edi, eax
mov ebx, 0x413bc4
add ebx, dword [ebp - 0x14]
mov edx, 0x5e09f444
mov dword [ebp - 0x10], 0x8679d571
mov esi, dword [ebx]
sub dword [ebp - 0xc], ecx
xor esi, edx
mov dword [ebp - 0x10], 0xd622fb5d
mov dword [edi], esi
xor dword [ebp - 0x10], edx
add edi, 0x7476ba43
sub edi, 0x7476ba3f
add ebx, 0x7a6cdb7e
add ebx, 0x85932486
loop 0x4079a6
add eax, 0x19c2fe28
add eax, 0xe63e387b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc929f6ff
add ecx, 0x37160901
add ecx, dword [ebp - 0x14]
call ebx
leave
ret