joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bc800
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5bc823
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x5bc849
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x5bc830
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x5bc900
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5bc937
push esi
call fcn.005bfb40
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5bc930
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x5bc9b6
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5bc9a0
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x5bc95a
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x5bc999
cmp eax, 2
je 0x5bc9a0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5bc950
cmp eax, 3
je 0x5bc97d
cmp eax, 1
jne 0x5bc950
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
cmp eax, dword [ecx + 8]
jl 0x5bc950
mov eax, dword [ecx + 8]
mov edx, dword [esi + 0x144]
add eax, edx
mov dword [ecx + 8], eax
jmp 0x5bc950
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.005bc800
pop esi
pop ebp
ret 4
cmp ecx, 0xcc
je 0x5bc9cd
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.005bc800
pop esi
pop ebp
ret 4

Function at 0x5c8280
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x60e890]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x424f00
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x108]
push 0x424ef8
push ecx
mov byte [ebp - 5], 0
call sub.msvcrt.dll__tempnam
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5c8308
push 0
push 0x4000100
push 1
push 0
push 0
push 0x10000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x5c8308
mov dword [esi], 0x5c8170
mov dword [esi + 4], 0x5c81e0
mov dword [esi + 8], 0x5c8250
jmp 0x5c833c
mov edx, dword [edi]
mov dword [edx + 0x14], 0x3f
mov eax, dword [edi]
mov edx, 0x4081fa
mov esi, 0x50
add eax, 0x18
mov cl, byte [edx]
test cl, cl
je 0x5c832f
mov byte [eax], cl
inc eax
inc edx
dec esi
jne 0x5c8320
jmp 0x5c8333
test esi, esi
jne 0x5c8334
dec eax
mov byte [eax], 0
mov eax, dword [edi]
push edi
call dword [eax]
test ebx, ebx
je 0x5c8349
push ebx
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005f059d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5cc050
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, edx
mov edx, dword [eax + 0x1c]
mov edi, dword [ebx + 0x1c]
mov eax, dword [eax + 0xf4]
push edx
mov esi, ecx
shl edi, 3
push eax
lea ecx, [edi + edi]
push esi
mov dword [ebp - 8], edi
call fcn.005cbde0
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x5cc0d1
mov ebx, dword [ebp + 8]
mov edx, esi
sub ebx, esi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], eax
mov ecx, dword [ebx + edx]
mov eax, dword [edx]
xor esi, esi
test edi, edi
jbe 0x5cc0c2
mov edi, edi
movzx edx, byte [eax + 1]
movzx ebx, byte [eax]
add edx, esi
add ebx, edx
sar ebx, 1
mov byte [ecx], bl
inc ecx
xor esi, 1
add eax, 2
dec edi
jne 0x5cc0a0
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add edx, 4
dec eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], eax
jne 0x5cc093
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5cc190
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, edx
mov edx, dword [eax + 0x1c]
mov edi, dword [esi + 0x1c]
mov eax, dword [eax + 0xf4]
push edx
mov ebx, ecx
shl edi, 3
push eax
lea ecx, [edi + edi]
push ebx
mov dword [ebp - 0x14], edi
call fcn.005cbde0
mov esi, dword [esi + 0xc]
xor ecx, ecx
test esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
jle 0x5cc240
mov edx, ebx
mov dword [ebp - 0xc], edx
test edi, edi
mov eax, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
mov eax, dword [edx]
mov dword [ebp - 4], 1
jbe 0x5cc22f
mov ecx, dword [edx + 4]
sub ecx, eax
mov dword [ebp - 8], edi
jmp 0x5cc1f0
movzx edi, byte [ecx + eax]
movzx edx, byte [ecx + eax + 1]
mov ebx, dword [ebp - 4]
add edx, edi
movzx edi, byte [eax + 1]
add edi, ebx
movzx ebx, byte [eax]
add edi, edx
mov edx, dword [ebp - 8]
add ebx, edi
sar ebx, 2
mov byte [esi], bl
mov ebx, dword [ebp - 4]
xor ebx, 3
inc esi
add eax, 2
dec edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edx
jne 0x5cc1f0
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add edx, 8
inc ecx
cmp ecx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jl 0x5cc1d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5db1d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x5db1e3
xor eax, eax
jmp 0x5db2c4
mov eax, dword [ebp + 0x10]
cmp eax, 8
push ebx
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x5db2a4
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x425dc8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x425dc8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x425dc8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x425dc8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x425dc8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x425dc8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x425dc8]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x425dc8]
inc edx
dec edi
jne 0x5db201
pop edi
test eax, eax
je 0x5db2be
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x425dc8]
inc edx
dec eax
jne 0x5db2a8
mov eax, esi
pop esi
not eax
pop ebx
pop ebp
ret 0xc
Function at 0x5db801
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x5db82f
test ecx, ecx
jne 0x5db839
test esi, esi
jne 0x5db839
mov eax, edx
jmp 0x5db8aa
cmp eax, 0xffffffff
jne 0x5db839
push 0xfffffffffffffffe
pop eax
jmp 0x5db8aa
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x5db8aa
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x5db86f
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x5db88e
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x5db957
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x5db8cf
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5db8d9
xor ecx, ecx
jmp 0x5db918
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x5db8fb
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.005dc833
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x5db943
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x5db957
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x5db811
pop edi
pop esi
leave
ret
Function at 0x5f08eb
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x60e890]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 4], eax
mov edi, ecx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], esi
jne 0x5f0922
mov eax, 0x8876086c
jmp 0x5f0a46
cmp dword [ebp + 0xc], esi
je 0x5f09c9
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x5f09ab
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp - 0xa4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x9c], eax
jne 0x5f0981
mov eax, 0x8007000e
jmp 0x5f0a46
push esi
push esi
push dword [ebp - 0xa4]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xa0]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov dword [ebp + 0xc], esi
mov ebx, eax
cmp dword [ebp + 0xc], esi
je 0x5f09c9
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x5f09e0
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0x9c]
mov dword [edi], eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x5f0a34
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x5f0a34
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x5f0a34
cmp eax, esi
je 0x5f0a41
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x5f0a44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x5f0a46
mov dword [edi + 8], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005f059d
leave
ret 8
Function at 0x5f0c24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx], esi
push edi
je 0x5f0c39
call fcn.005f0bfe
cmp dword [ebp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
jne 0x5f0c4a
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp dword [ebp + 0x10], esi
je 0x5f0c5f
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
jne 0x5f0c6f
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
je 0x5f0c9e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebx + 8], eax
je 0x5f0c9e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebx], eax
je 0x5f0c9e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebx + 4], eax
jne 0x5f0cab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x5f0cad
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x5f0cb9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
mov esi, ecx
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov dword [esi + 4], ecx
lea eax, [ecx + eax - 1]
dec ecx
not ecx
and eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [esi + 4], eax
jne 0x5f0cfe
mov ecx, 0x100000
lea ecx, [eax + ecx - 1]
dec eax
not eax
and ecx, eax
mov dword [esi + 0x14], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x58ea60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x111000]
push edi
or ebp, 0xffffffff
jmp 0x58ea82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x58ea89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58ea78
mov eax, 1
add ebx, ebx
jne 0x58ea9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x58eaac
jne 0x58eacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58eacb
dec eax
add ebx, ebx
jne 0x58eab8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x58ea90
add ebx, ebx
jne 0x58eac7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x58eb1d
xor ecx, ecx
sub eax, 3
jb 0x58eae3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58eb52
sar eax, 1
mov ebp, eax
jmp 0x58eaee
add ebx, ebx
jne 0x58eaee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58eabc
inc ecx
add ebx, ebx
jne 0x58eafc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58eabc
add ebx, ebx
jne 0x58eb09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x58eafe
jne 0x58eb1a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x58eafe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x58eb3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x58eb2e
jmp 0x58ea7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x58eb3c
add edi, ecx
jmp 0x58ea7e
pop esi
mov edi, esi
mov ecx, 0x7fb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58eb5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x58eb5f
lea edi, [esi + 0x18c000]
mov eax, dword [edi]
or eax, eax
je 0x58ebd0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18e95c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18e998]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x58eb85
mov ecx, edi
jns 0x58ebb4
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18e9a0]
or eax, eax
je 0x58ebca
mov dword [ebx], eax
add ebx, 4
jmp 0x58eba2
call dword [esi + 0x18e99c]
mov ebp, dword [esi + 0x18e9a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x58ec04
sub esp, 0xffffff80
jmp 0x4010c4
Function at 0x401d20
Capabilities:
Execute command

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x401d52
mov eax, dword [ebx]
test eax, eax
je 0x401d52
mov dword [esp], eax
call fcn.004024a0
mov esi, eax
mov dword [esp], ebx
call fcn.00402460
sub esp, 4
mov eax, esi
add esp, 0x14
pop ebx
pop esi
ret 4
mov esi, 0xffffffff
jmp 0x401d3d
Function at 0x404890
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004048f0
Function at 0x4051f0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x405228
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40521e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40522a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x405210
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403550
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4014ac]
jne 0x4039bf
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4073f8], eax
mov dword [0x4073f4], ecx
mov dword [0x4073f0], edx
mov dword [0x4073ec], ebx
mov dword [0x4073e8], esi
mov dword [0x4073e4], edi
mov word [0x407410], ss
mov word [0x407404], cs
mov word [0x4073e0], ds
mov word [0x4073dc], es
mov word [0x4073d8], fs
mov word [0x4073d4], gs
pushfd
pop dword [0x407408]
mov eax, dword [ebp]
mov dword [0x4073fc], eax
mov eax, dword [ebp + 4]
mov dword [0x407400], eax
lea eax, [ebp + 8]
mov dword [0x40740c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x407348], 0x10001
mov eax, dword [0x407400]
mov dword [0x4072fc], eax
mov dword [0x4072f0], 0xc0000409
mov dword [0x4072f4], 1
mov eax, dword [0x4014ac]
mov dword [ebp - 0x328], eax
mov eax, dword [0x407248]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x407340], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x4014b8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x407340], 0
jne 0x403aab
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x404829
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4014ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push esi
mov word [edi], ax
push 0x2b
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40489b
cmp word [ebp - 0x20c], si
je 0x40489b
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push 0x401898
push eax
call fcn.00404736
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403550
leave
ret 8
Function at 0x4048e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 0x16
pop edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
and dword [ebp - 8], esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404980
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404980
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
ja 0x404980
add eax, eax
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x404980
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404980
mov eax, dword [ebp - 8]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push dword [ebp - 8]
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
mov edi, eax
cmp dword [ebp - 4], 0
je 0x404993
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
test esi, esi
je 0x40499f
push esi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 0x14

Function at 0x4049a7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x4014ac]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x320], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x31c], 6
jne 0x404a6c
cmp dword [ebp - 0x318], 0
jne 0x404a5c
push esi
push edi
mov edi, 0x104
push edi
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x4018bc
push 0x4018e0
push 0x80000002
call fcn.004048e5
mov ecx, 0x40193c
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404a4c
test dx, dx
je 0x404a51
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404a4c
add eax, 4
add ecx, 4
test dx, dx
jne 0x404a28
jmp 0x404a51
sbb esi, esi
sbb esi, 0xffffffff
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
jmp 0x404a75
cmp dword [ebp - 0x318], 2
jae 0x404a72
cmp dword [ebp - 0x31c], 6
ja 0x404a72
xor eax, eax
jmp 0x404a75
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403550
leave
ret
Function at 0x40e090
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [0x40f034]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0xc8839485
jmp 0x40e0d0
mov dword [ebp - 0x20], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x20]
cmp eax, 0x6c8b63be
jg 0x40e100
cmp eax, 0x4392a9cd
jg 0x40e160
cmp eax, 0xc8839484
jg 0x40e18a
cmp eax, 0xb0fa1f74
jne 0x40e0d0
jmp 0x40e198
cmp eax, 0x6c8b63bf
jne 0x40e0d0
mov dword [esp], 0
call fcn.0040e1e0
mov dword [esp], eax
call fcn.00417612
mov eax, dword [ebp - 0x14]
movzx esi, word [eax]
mov dword [esp], eax
call fcn.004050d0
mov ecx, dword [ebp - 0x14]
movzx edi, word [ecx + eax*2 - 2]
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
neg eax
sub eax, edi
neg eax
mov dword [ebp - 0x18], eax
mov ecx, 0x4392a9ce
cmp eax, dword [ebp - 0x1c]
je 0x40e0c3
mov ecx, 0xb0fa1f74
jmp 0x40e0c3
cmp eax, 0x4392a9ce
jne 0x40e0d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [str.bxw], eax
call fcn.004175ef
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xe38b3d3d
jmp 0x40e0d0
cmp eax, 0xc8839485
je 0x40e1ab
cmp eax, 0xe5102d4a
jne 0x40e1c3
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0xe38b3d3d
jmp 0x40e0d0
mov eax, 0xe5102d4a
cmp dword [ebp - 0xc], 0
je 0x40e1bb
mov eax, 0x6c8b63bf
mov dword [ebp - 0x20], eax
jmp 0x40e0d0
cmp eax, 0xe38b3d3d
jne 0x40e0d0
mov eax, dword [ebp - 0x10]
add esp, 0x1c
pop esi
pop edi
pop ebp
ret