joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a8a7c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x5a8a85
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x5a8c37
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005a8dcc
xor eax, eax
push ebp
push 0x5a8c15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x5a8ad4
call fcn.00406670
jmp 0x5a8c1c
mov eax, dword [ebp - 4]
test byte [eax + 0x38], 8
je 0x5a8ba3
mov eax, dword [ebp - 4]
test byte [eax + 0x38], 1
je 0x5a8b29
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x5a8b29
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.005a8984
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x58]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407f00
mov eax, dword [ebp - 0xc]
push eax
movzx ecx, byte [ebp - 5]
mov edi, dword [ebp - 4]
mov edx, esi
mov eax, dword [edi + 0x44]
call dword [edi + 0x40]
mov eax, dword [ebp - 4]
test byte [eax + 0x38], 4
je 0x5a8b62
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.005a8984
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x58]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00407f00
mov eax, dword [ebp - 0x14]
call fcn.00407c1c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x38], 2
je 0x5a8bff
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005a8984
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
push dword [eax + 0x58]
push ebx
push 0x5a8c54
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00407f00
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.005a89f0
jmp 0x5a8bff
mov eax, dword [ebp - 4]
test byte [eax + 0x38], 1
je 0x5a8bc6
mov eax, dword [ebp - 4]
cmp word [eax + 0x42], 0
je 0x5a8bc6
push ebx
movzx ecx, byte [ebp - 5]
mov edi, dword [ebp - 4]
mov edx, esi
mov eax, dword [edi + 0x44]
call dword [edi + 0x40]
mov eax, dword [ebp - 4]
test byte [eax + 0x38], 4
je 0x5a8bdc
mov eax, ebx
call fcn.00407c1c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x38], 2
je 0x5a8bff
lea eax, [ebp - 0x24]
mov ecx, 0x5a8c54
mov edx, ebx
call fcn.00407e78
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.005a89f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a8c1c
mov eax, dword [ebp - 4]
call fcn.005a8dd8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a8c3e
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00406ee4
ret
Function at 0x5b13c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov esi, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, 1
jmp 0x5b13e5
inc edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
call fcn.00407380
cmp edi, eax
jg 0x5b13fd
cmp byte [esi + edi - 1], 0x20
je 0x5b13e4
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5b140e
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x5b14e8
cmp byte [esi + edi - 1], 0x2e
je 0x5b1512
jmp 0x5b14e8
cmp byte [esi + edi - 1], 0x2e
jne 0x5b1482
inc dword [esp + 4]
cmp dword [esp + 4], 3
jg 0x5b1512
cmp dword [esp + 8], 0xff
jg 0x5b1512
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x5b1462
sub ebp, 4
mov ebp, dword [ebp]
cmp ebp, edi
jg 0x5b146a
mov bl, 1
jmp 0x5b1478
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x5b1512
jmp 0x5b14e7
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x5b14a7
mov eax, dword [esp + 8]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [esp + 8], eax
jmp 0x5b14e7
inc edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
call fcn.00407380
cmp edi, eax
jg 0x5b14bf
cmp byte [esi + edi - 1], 0x20
je 0x5b14a6
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x5b14df
mov eax, dword [esp + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0xc]
jle 0x5b1512
jmp 0x5b14fd
inc edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
call fcn.00407380
cmp edi, eax
jle 0x5b1426
cmp dword [esp + 4], 3
jne 0x5b1512
cmp dword [esp + 8], 0xff
jg 0x5b1512
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5cb9e8
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, 4
mov ecx, esi
xor eax, eax
call fcn.00408208
cmp byte [ebp - 1], 0
jne 0x5cba48
mov eax, esi
call fcn.00407444
movzx edx, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x5cba62
sub al, 2
jb 0x5cba69
jmp 0x5cba6e
mov ebx, 2
jmp 0x5cba6e
mov ebx, 1
mov eax, esi
call fcn.00407444
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x5cbb52
test edi, edi
jle 0x5cbaca
mov eax, esi
call fcn.00407444
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.00407444
mov byte [eax + ebx - 1], 0
jmp 0x5cbb46
test edi, edi
jge 0x5cbb10
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00407444
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x5cbb46
mov eax, esi
call fcn.00407444
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
movzx ecx, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.00407444
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x5cba86
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x5cbb63
sub al, 2
jb 0x5cbb9d
jmp 0x5cbbe5
cmp edi, 2
jne 0x5cbb69
dec ebx
mov eax, ebx
sub eax, 2
jl 0x5cbbe5
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00407444
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x614fc8]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x5cbb79
jmp 0x5cbbe5
cmp edi, 2
jne 0x5cbba3
dec ebx
test ebx, ebx
jle 0x5cbbe0
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00407444
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x614fcc]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x5cbbaf
jmp 0x5cbbe0
inc ebx
mov eax, esi
call fcn.00407444
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x5cbbd3
mov eax, esi
xor ecx, ecx
mov edx, ebx
call fcn.00407954
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5f2974
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5f2a9c
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.005f2860
mov eax, dword [esi]
call fcn.00408f1c
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x419c48]
call fcn.004090d0
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.004047a8
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.004047a8
add ebx, 0x1c
mov eax, dword [esi]
call fcn.00408f1c
mov dword [ebp - 0xc], eax
mov eax, dword [0x616f94]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.005dbb30
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00404bd8
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.00408f1c
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.005dbb0c
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.005dbabc
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.005dbb28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2aa3
lea eax, [ebp - 4]
mov edx, dword [0x419c48]
call fcn.004090dc
ret

Function at 0x5f8bd8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f68
xor eax, eax
push ebp
push 0x5f8cb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40a]
mov edx, dword [ebp - 4]
call fcn.00421ab8
lea eax, [ebp - 0x450]
xor ecx, ecx
mov edx, 0x44
call fcn.00404bd8
mov dword [ebp - 0x450], 0x44
mov dword [ebp - 0x424], 1
mov word [ebp - 0x420], bx
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x450]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x40a]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x5f8c6d
mov dword [ebp - 8], 0xffffffff
jmp 0x5f8ca0
mov eax, dword [ebp - 0x460]
call fcn.005f8b88
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x460]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x460]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x45c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8cbd
lea eax, [ebp - 4]
call fcn.00406e84
ret
Function at 0x5f8cc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f68
xor eax, eax
push ebp
push 0x5f8d33
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041fa4c
cmp dword [ebp - 8], 0
je 0x5f8d18
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407c1c
push eax
push 0x5f8d40
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8d3a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ee4
ret

Function at 0x5f8d4c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5f8e21
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x5f8e3c
call fcn.004072ac
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.00407c1c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5f8e0b
mov eax, dword [ebp - 0xc]
call fcn.00404534
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5f8e04
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x5f8dee
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00407c1c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x5f8dee
mov eax, dword [ebp - 0x14]
mov esi, eax
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8e0b
mov eax, dword [ebp - 0x10]
call fcn.00404550
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f8e28
lea eax, [ebp - 4]
call fcn.00406e84
ret

Function at 0x5f9198
Capabilities:
Move file

Disassembly:
push ebx
push esi
add esp, 0xfffffeec
mov esi, eax
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x114
call fcn.00404bd8
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5f91d0
cmp eax, 2
jne 0x5f91e5
push 5
push 0
push esi
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x155ed43
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and byte [ebp - 0xc], 0
push 1
pop eax
test eax, eax
je 0x155ee42
movsx eax, byte [0x40fb74]
cmp eax, 0x68
je 0x155ed74
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x155ed5b
push 0x40fb74
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0x1558ff8
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x86f16b
lea eax, [ebp - 0x10c]
push eax
call fcn.0155a82c
pop ecx
pop ecx
push 0x1559004
push 0x86f16b
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x110], eax
push dword [ebp - 0x110]
push 1
push 5
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push dword [ebp - 0x110]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
movsx eax, byte [ebp - 8]
cmp eax, 0x4d
jne 0x155ee32
movsx eax, byte [ebp - 7]
cmp eax, 0x44
jne 0x155ee32
push 0x86f06c
call fcn.01559945
pop ecx
test eax, eax
je 0x155ee1e
push 0
push 0x86f06c
push 0x86f16b
call dword [0x40fda0]
jmp 0x155ee30
push 0
push 0x86f06c
push 0x86f16b
call dword [0x40fda0]
jmp 0x155ee42
push 0x2710
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x155ed50
xor eax, eax
leave
ret
Function at 0x155ee46
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x1559008
push 0x86f06c
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 1
push 8
push 0x40fdb8
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
movsx eax, byte [0x40fdb8]
cmp eax, 0x4d
jne 0x155efbf
movsx eax, byte [0x40fdb9]
cmp eax, 0x44
jne 0x155efbf
push 0x86f06c
call fcn.015598e8
pop ecx
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [ebp - 8], eax
push dword [ebp - 4]
push 1
push 0x86f06c
call fcn.015598e8
pop ecx
sub eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push 2
push dword [ebp - 8]
call fcn.015592f0
pop ecx
pop ecx
mov dword [ebp - 8], eax
push 0x155900c
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_strtok]
pop ecx
pop ecx
push eax
push 0x40fdc0
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0x40fdc0
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 6]
mov dword [ebp - 8], eax
push 0x1559014
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_strtok]
pop ecx
pop ecx
push eax
push 0x414be0
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0x414be0
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 6]
mov dword [ebp - 8], eax
push 0x155901c
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_strtok]
pop ecx
pop ecx
push eax
push 0x419a00
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0x419a00
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 6]
mov dword [ebp - 8], eax
push 0x1559024
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_strtok]
pop ecx
pop ecx
push eax
push 0x41e820
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0x41e820
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 6]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x423640
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
xor eax, eax
jmp 0x155efcc
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
leave
ret
Function at 0x155f64c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [0x40fc7c]
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
call fcn.01559ccc
movzx eax, al
test eax, eax
jne 0x155f67a
call fcn.01559c47
movzx eax, al
test eax, eax
je 0x155f681
xor eax, eax
jmp 0x155f86c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
call fcn.0155a4d1
push 0x86ea72
call fcn.01559945
pop ecx
test eax, eax
jne 0x155f6b6
push 0x86e973
call fcn.01559945
pop ecx
test eax, eax
je 0x155f744
push 0x86ea72
push 0x86eb71
call dword [sym.imp.MSVCRT.dll__strcmpi]
pop ecx
pop ecx
test eax, eax
je 0x155f6e2
push 0x86e973
push 0x86eb71
call dword [sym.imp.MSVCRT.dll__strcmpi]
pop ecx
pop ecx
test eax, eax
jne 0x155f6e4
jmp 0x155f744
push 0
push 0x1559128
push dword [0x40fc7c]
call fcn.01559dd9
add esp, 0xc
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x86ea72
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
push 0x86e973
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
call fcn.0155a6e0
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [0x40fc7c]
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [sym.imp.MSVCRT.dll___argc]
cmp dword [eax], 1
jle 0x155f7cb
push 0x15577d4
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov dword [ebp - 0x108], 1
jmp 0x155f77a
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
mov eax, dword [sym.imp.MSVCRT.dll___argc]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [eax]
jge 0x155f7bc
mov eax, dword [sym.imp.MSVCRT.dll___argv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x108]
push dword [eax + ecx*4]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x155912c
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x155f76d
push 0xa
lea eax, [ebp - 0x104]
push eax
call dword [0x46ce28]
push 0x1559130
push 0x7f
push 0
push 4
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x155f7f1
xor eax, eax
jmp 0x155f86c
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x155f61c
push 0x400
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x155ab6a
push 0x400
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x155efce
push 0x400
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x155f211
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 1
pop eax
test eax, eax
je 0x155f86a
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x155f856
xor eax, eax
leave
ret 0x10
Function at 0x100011b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x100011ba
ret 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
ret 0xc

Function at 0x100011e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x100011ea
ret 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
ret 0xc

Function at 0x10001fd0
Capabilities:
Print debug messages

Disassembly:
push ecx
push esi
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1000204b
mov ecx, esi
call fcn.10004290
cmp dword [esp + 0x1c], eax
ja 0x1000204b
mov ecx, esi
call fcn.10004280
cmp dword [esp + 0x20], eax
ja 0x1000204b
mov ecx, esi
call fcn.10004280
mov ecx, esi
call fcn.10004280
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1000204b
mov ecx, esi
call fcn.100042c0
cmp ax, 0x20
je 0x1000205c
mov ecx, esi
call fcn.100042c0
and eax, 0xffff
push eax
lea eax, [esp + 0xc]
push str.pImage_not_32:__d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x18
push edi
call sym.BuildBG.dll_LoadMyImage
mov esi, eax
test esi, esi
je 0x1000204b
mov ecx, esi
call fcn.100042c0
cmp ax, 0x20
push esi
jne 0x10002082
call sym.BuildBG.dll_DeleteImage
push str.pImageSour_not_32
jmp 0x10002045
call sym.BuildBG.dll_DeleteImage
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x18
Function at 0x1000c690
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0x9ac6cdd7
jne 0x1000c6d2
mov dword [esp + 8], eax
lea ecx, [esi + 2]
mov edx, 9
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x1000c6aa
cmp ax, word [esi + 0x14]
jne 0x1000c6d2
mov si, word [esi + 0xe]
test si, si
jbe 0x1000c6d2
cmp si, 0x9ec
ja 0x1000c6d2
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x10012d10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.10004280
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x10012d42
mov dword [esp + 0x2c], 0
jmp 0x10012d5d
mov ecx, ebp
call fcn.10004280
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.10004280
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.10004290
cmp eax, esi
jae 0x10012d9d
mov ecx, ebp
call fcn.10004290
mov dword [esp + 0x10], eax
jmp 0x10012da1
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.100040b0
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x10012e0d
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x10012e08
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.10004ab0
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x10012dfb
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.10004f20
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x10012dc8
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x10012db6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8