joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100030f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100214cb
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100320ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x4bc], 0
jne 0x10003303
call fcn.10004730
test eax, eax
je 0x1000327e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1000c490
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1000315a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10001c30
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1000c490
mov edi, dword [ebp + 0xc]
add esp, 0x14
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1000318a
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10001c30
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x100031b3
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10003320
jmp 0x10003303
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 1
push 0x10022444
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], eax
call fcn.10001ad0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100031f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10001950
push 2
push 0x10022448
lea ecx, [ebp - 0x438]
call fcn.10001950
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003230
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10001950
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov ecx, esi
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.10003320
lea ecx, [ebp - 0x438]
call fcn.10001680
jmp 0x10003303
push 0x104
lea edi, [esi + 0xa8]
mov byte [esi + 0x4bc], 1
push 0
push edi
call fcn.1000c490
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x100032a6
mov eax, dword [eax]
push eax
push edi
call fcn.10001c30
push 0x104
lea edi, [esi + 0x2b0]
push 0
push edi
call fcn.1000c490
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x100032ce
mov eax, dword [eax]
push eax
push edi
call fcn.10001c30
mov eax, dword [ebp + 0x10]
add esp, 8
mov eax, dword [eax]
mov dword [esi + 0x4b8], eax
lea eax, [ebp - 0x43c]
push eax
push 0
push esi
push 0x100033a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009cb3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp + 8]
movlpd qword [ebp - 0x50], xmm0
push 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10003391
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4
Function at 0x10003780
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100215a0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100320ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x274], edi
mov edx, dword [ebp + 8]
xor eax, eax
test edx, edx
je 0x1000395c
mov ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100037d6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10001ad0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.100047c0
push 0x22c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.1000c490
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x270], ebx
cmp ebx, 0xffffffff
je 0x10003950
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10003949
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003870
sub ecx, edx
lea eax, [ebp - 0x248]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10001ad0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.100047c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ebx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
cmp ebx, 8
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae esi, edi
cmp edx, dword [ebp - 0x30]
jne 0x100038f3
test edx, edx
je 0x100038d7
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x100038f3
add eax, 2
sub edx, 1
jne 0x100038c6
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.10001680
jmp 0x10003952
mov byte [ebp - 4], 0
cmp ebx, 8
jb 0x10003927
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1000391d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000397a
push ecx
push edi
call fcn.10009ca0
add esp, 8
mov ebx, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x10003949
mov edi, dword [ebp - 0x274]
jmp 0x10003850
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.10001680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009cb3
mov esp, ebp
pop ebp
ret 4
call fcn.1000e339
int3
Function at 0x10004730
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x100320ac]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.1000c490
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x100047a2
cmp dword [ebp - 0x118], 2
jg 0x100047a2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009cb3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10009cb3
mov esp, ebp
pop ebp
ret
Function at 0x10007850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100219a6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100320ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x100078fc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x100078fc
call fcn.10005d10
mov edi, eax
jmp 0x10007a1b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1000791f
call fcn.10005d10
jmp 0x10007a0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1000793d
call fcn.10005d10
jmp 0x10007a0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x1000795e
mov edi, 0x8007000e
jmp 0x10007a10
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x10007a54
jb 0x1000797c
cmp eax, 0xffffffff
ja 0x10007a54
cmp eax, 0x400
jbe 0x10007991
push eax
lea ecx, [ebp - 0x418]
call fcn.10005b90
jmp 0x100079b7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x100079b7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x100079ce
mov edi, 0x8007000e
jmp 0x10007a10
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100079ee
call fcn.10005d10
jmp 0x10007a0e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100076b0
mov edi, eax
test esi, esi
je 0x10007a1b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10007a34
lea ecx, [ebp - 0x418]
call fcn.100061b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10009cb3
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10002930
int3
Function at 0x1001bf93
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001bc53
Function at 0x4030c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4030d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403114
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403110
lea ebx, [ebx]
cmp esi, eax
jae 0x403114
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403100
cmp esi, eax
jb 0x40311a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403860
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x14
mov eax, dword [0x434d68]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push 8
lea eax, [esp + 8]
push eax
push 5
push ecx
or esi, 0xffffffff
mov word [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4038e3
cmp word [esp + 4], 0
je 0x4038e3
lea edx, [esp + 4]
push edx
call fcn.0041327d
mov ecx, dword [0x4360b4]
add esp, 4
xor edx, edx
test ecx, ecx
je 0x4038c2
mov edi, edi
cmp ecx, eax
je 0x4038c2
mov ecx, dword [edx*8 + 0x4360bc]
add edx, 1
test ecx, ecx
jne 0x4038b0
cmp dword [edx*8 + 0x4360b4], 0
je 0x4038e3
mov eax, dword [edx*8 + 0x4360b0]
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call int.00412851
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call int.00412851
add esp, 0x14
ret
Function at 0x40675f
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x434d68]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x4067fd
push 0x42b8ac
push 4
push eax
call fcn.004130db
push eax
call fcn.00402ef0
add esp, 0x10
push ebx
push edi
call fcn.00413afa
mov edi, dword [eax]
call fcn.00413afa
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00413aa0
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00413afa
cmp dword [eax], ebx
je 0x406814
call fcn.00413afa
push dword [eax]
call fcn.0040663c
pop ecx
jmp 0x40681b
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4067ae
jmp 0x40688d
call fcn.00413afa
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x406889
cmp dword [ebp - 0x40], esi
jae 0x406889
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00413b40
add esp, 0xc
push 0x42b60c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40687b
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40687b
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40687b
push ebx
push ebx
push esi
jmp 0x406881
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40688b
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call int.00412851
add ebp, 0x1f4
leave
ret
Function at 0x40f7c5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40f7f3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f811
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040f72f
jmp 0x40f811
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f811
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f72f
test edi, edi
mov eax, edi
jne 0x40f7fb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43854c]
test ecx, ecx
je 0x40f8d4
jmp 0x40f7c4
ret 8
Function at 0x426fee
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x434d68]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00426f83
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00413b40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42703d
cmp dword [ebp - 0x1c], 5
jb 0x427055
jmp 0x427051
cmp dword [ebp - 0x10], 1
jne 0x427055
cmp dword [ebp - 0x1c], 4
ja 0x427051
jne 0x427055
cmp dword [ebp - 0x18], 0
jbe 0x427055
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42e76c
call fcn.00426e57
test eax, eax
jge 0x427076
mov byte [0x43952c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call int.00412851
add ebp, 0x78
leave
ret
Function at 0x10002540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002598
cmp byte [esi + ebx - 1], 0xa
je 0x1000256c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10007084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10002d98
mov edi, dword [0x10007084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10002ca7
test byte [0x10003030], 8
jne 0x10002d40
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10003040], 8
jne 0x10002d00
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10002c49
cmp esi, 3
jbe 0x10002cb8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10002c5a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10005168]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10002c49
mov dword [esp], 0x10003040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002c20
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10002c20
mov dword [esp], 0x10003030
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10002c0b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10002c13
mov eax, 0xffffffff
jmp 0x10002ca7
Function at 0x1781058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017811a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x178107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x178106a
add dl, dl
jne 0x1781089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17810dc
xor eax, eax
add dl, dl
jne 0x1781096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x178117d
add dl, dl
jne 0x17810a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17810b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17810bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17810c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17810d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1781075
mov eax, 1
add dl, dl
jne 0x17810ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17810f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17810e1
sub eax, ebx
mov ebx, 1
jne 0x1781128
mov ecx, 1
add dl, dl
jne 0x178110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1781119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1781105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1781075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x178113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x178114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1781136
cmp eax, 0x7d00
jae 0x178116d
cmp eax, 0x500
jb 0x1781168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1781075
cmp eax, 0x7f
ja 0x1781170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1781075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x178119e
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 0x1781075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8

Function at 0x433876
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x433885
pop dword [ebp - 0x48]
mov eax, 0x433885
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x99e7973d
add dword [ebp - 0x58], 0xb46aae0e
mov dword [ebp - 0x54], 0x3a0fc74a
add dword [ebp - 0x54], 0xf82384fb
mov dword [ebp - 0x50], 0xedc26feb
add dword [ebp - 0x50], 0x5e89d443
mov dword [ebp - 0x4c], 0x7139b5ed
sub dword [ebp - 0x4c], 0x7139b5ed
lea eax, [ebp - 0x58]
push eax
mov eax, 0x6666f039
add eax, 0x99dcd1f3
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x7dd83d40
sub dword [ebp - 0x58], 0x965d3ea
mov dword [ebp - 0x54], 0x2e47bd27
add dword [ebp - 0x54], 0x1324a44e
mov dword [ebp - 0x50], 0x56703b6c
add dword [ebp - 0x50], 0xcff3100
mov dword [ebp - 0x4c], 0xea0c3878
add dword [ebp - 0x4c], 0x15f3c788
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x6680962a
sub eax, 0x663cd33a
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x4738f
push 0
call eax
mov ecx, 0x4d3c
mov esi, eax
mov edx, 0x475600
add edx, dword [ebp - 0x48]
mov edi, 0x1bde6955
mov ebx, dword [edx]
mov dword [ebp - 8], 0x897e33a3
sub ebx, edi
xor dword [ebp - 0x38], ecx
mov dword [esi], ebx
xor dword [ebp - 0x2c], edx
add esi, 4
add edx, 0x775d5160
sub edx, 0x775d515c
loop 0x433990
add eax, 0x37c5b6b5
sub eax, 0x37c48ef2
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret