joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd40058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d401a8
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 0xd4007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd4006a
add dl, dl
jne 0xd40089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd400dc
xor eax, eax
add dl, dl
jne 0xd40096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd4017d
add dl, dl
jne 0xd400a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd400b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd400bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd400c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd400d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd40075
mov eax, 1
add dl, dl
jne 0xd400ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd400f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd400e1
sub eax, ebx
mov ebx, 1
jne 0xd40128
mov ecx, 1
add dl, dl
jne 0xd4010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd40119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd40105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd40075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd4013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd4014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd40136
cmp eax, 0x7d00
jae 0xd4016d
cmp eax, 0x500
jb 0xd40168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd40075
cmp eax, 0x7f
ja 0xd40170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd40075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd4019e
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 0xd40075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4b5318
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b53d9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x113]
mov edx, 0x4b53ec
call fcn.00409fe0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
xor edx, edx
call fcn.00404d3c
je 0x4b5380
lea eax, [ebp - 0x21c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.00404548
mov edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x108]
call fcn.00409fe0
jmp 0x4b5391
lea eax, [ebp - 0x108]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x113]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x105
call fcn.00404b64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b53e0
lea eax, [ebp - 0x21c]
call fcn.004042b0
ret
Function at 0x4bd677
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4d9f9a
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4bd6cf
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4d9fbb
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4bd6c5
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4bd6d3
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4c9d00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4c9d08
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404770
xor eax, eax
push ebp
push 0x4c9f52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.0047997c
push 0x4c9f68
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004091d0
push dword [ebp - 0x14]
push 0x4ca310
push 0x4ca36c
push 0x4ca378
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00404640
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004913bc
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor edx, edx
push ebp
push 0x4c9d9f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
call fcn.00479970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c9de3
lea eax, [ebp - 8]
call fcn.004042b0
jmp 0x4c9e77
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00409130
cmp dword [ebp - 0x1c], 0
je 0x4c9e20
push dword [ebp - 8]
push 0x4ca418
push 0x4ca36c
push 0x4ca424
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404640
push dword [ebp - 8]
push 0x4ca430
mov edx, 0x4ca43c
mov eax, dword [ebp - 0xc]
call fcn.0047a980
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x20]
push 0x4ca450
mov edx, 0x4ca43c
mov eax, dword [ebp - 0xc]
call fcn.0047a980
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0x24]
push 0x4ca46c
lea eax, [ebp - 8]
mov edx, 6
call fcn.00404640
mov eax, dword [ebp - 0xc]
call fcn.0047c0c0
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xa1], 0
je 0x4c9df0
push 0x4ca480
push dword [ebp - 4]
push 0x4ca424
push 0x4ca36c
push 0x4ca494
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 6
call fcn.00404640
mov eax, dword [ebp - 0xc]
call fcn.0047997c
mov eax, dword [ebp - 0xc]
call fcn.004913bc
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor edx, edx
push ebp
push 0x4c9ee6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
call fcn.004912e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c9f2a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9f59
lea eax, [ebp - 0x28]
mov edx, 7
call fcn.004042d4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004042d4
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x10001270
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10001291
push 0
push 0
push 0
push 0x10001220
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x41f890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x41f8b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f8b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f8a8
mov eax, 1
add ebx, ebx
jne 0x41f8cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f8c0
jne 0x41f8dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f8c0
xor ecx, ecx
sub eax, 3
jb 0x41f8f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f962
mov ebp, eax
add ebx, ebx
jne 0x41f8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f92c
inc ecx
add ebx, ebx
jne 0x41f918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f90d
jne 0x41f929
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f90d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f94c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f93d
jmp 0x41f8ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f94c
add edi, ecx
jmp 0x41f8ae
pop esi
mov edi, esi
mov ecx, 0x45e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f96a
cmp byte [edi], 0xc
jne 0x41f96a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x41f96f
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f9e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f14c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f99c
mov ecx, edi
jns 0x41f9cb
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 + 0x1f154]
or eax, eax
je 0x41f9e1
mov dword [ebx], eax
add ebx, 4
jmp 0x41f9b9
call dword [esi + 0x1f150]
mov ebp, dword [esi + 0x1f158]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x41fa1b
sub esp, 0xffffff80
jmp 0x40f970

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10004660
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10004698
lea ecx, [esp + 4]
push ecx
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100046d2
mov esi, dword [esp + 0x14]
test esi, esi
je 0x100046af
push esi
call fcn.100547f0
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x100046b1
xor eax, eax
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x100046e0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10004718
lea ecx, [esp + 4]
push ecx
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1000473e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x10004750
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1000478d
lea ecx, [esp + 8]
push ecx
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1000480d
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x100047f7
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.1005473e
mov esi, eax
add esp, 4
test esi, esi
je 0x100047f7
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
Function at 0x10004820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10004859
lea ecx, [esp + 8]
push ecx
push edi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100048d2
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 1
jb 0x100048bc
inc eax
push eax
mov dword [esp + 0x1c], eax
call fcn.1005473e
mov esi, eax
add esp, 4
test esi, esi
je 0x100048bc
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push esi
push eax
push 0
push edi
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8

Function at 0x100048e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push esi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10004922
lea ecx, [esp + 4]
push ecx
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1000495e
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret 8
Function at 0x10005450
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x10005467
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100054bb
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x100054bb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x100054bb
mov eax, dword [esi + 0x18]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x18], 0
not ecx
dec ecx
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100054ee
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
push ecx
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
pop edi
pop esi
pop ebx
ret 4

Function at 0x10005500
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 8]
test eax, eax
je 0x10005516
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10005569
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x10005569
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x10005569
mov eax, dword [esi + 0x18]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
mov dword [esp + 0x18], 0
call fcn.100547f0
mov edx, dword [esi + 0x18]
add esp, 4
shl eax, 1
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000559b
lea eax, [esp + 0xc]
push 0
push eax
push edi
mov dword [esp + 0x18], 0
call fcn.100547f0
add esp, 4
shl eax, 1
push eax
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
pop edi
pop esi
ret 4
Function at 0x100088c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x101f2890
jmp 0x100088f0
push 0xffffffffffffffff
push 0x10185d8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1019175c]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 8], eax
xor eax, eax
mov edx, 0x11
mov ecx, 0xa
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ecx
mov ecx, esi
mov byte [esp + 0x10], 3
mov dword [esi], 0x10191648
mov dword [esi + 0x5c], eax
call fcn.10008be0
mov ecx, esi
call fcn.10008d80
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100109d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10186d25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
xor eax, eax
push ebx
mov dword [esp + 0xc], eax
push esi
lea ecx, [esp + 0xc]
push edi
xor ebx, ebx
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
call fcn.10015110
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x23]
mov ecx, dword [esp + 0x21]
stosw word es:[edi], ax
add esp, 4
and edx, 0xff
stosb byte es:[edi], al
mov eax, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x20]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x23]
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x26]
push edx
mov edx, dword [esp + 0x29]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x2c]
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x2e]
push edx
mov edx, dword [esp + 0x30]
and eax, 0xff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x30]
and edx, 0xffff
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
push 0x101b07e0
push ecx
call fcn.10054150
add esp, 0x34
lea ecx, [esp + 0xc]
push 0x101f1d04
call fcn.1002dab0
lea edx, [esp + 0x28]
lea eax, [esp + 0xc]
push edx
mov edi, 1
push 0x101b07d8
push eax
mov dword [esp + 0x140], edi
call fcn.10031240
mov esi, dword [esp + 0x148]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.1002d9b0
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], bl
call fcn.1002e3e0
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x10010b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10186d55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
xor eax, eax
push ebx
mov dword [esp + 0xc], eax
push esi
lea ecx, [esp + 0xc]
push edi
xor ebx, ebx
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
call fcn.10015110
mov edx, dword [esp + 0x23]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1d]
and edx, 0xff
stosw word es:[edi], ax
mov eax, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x20]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x23]
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x26]
push edx
mov edx, dword [esp + 0x29]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x2c]
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x2e]
push edx
mov edx, dword [esp + 0x30]
and eax, 0xff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x30]
and edx, 0xffff
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
push str._08lX__04lX__04lX__02lX_02lX__02lX_02lX_02lX_02lX_02lX_02lX
push ecx
call fcn.1005474c
add esp, 0x34
lea ecx, [esp + 0xc]
push 0x101f1d00
call fcn.10032fc0
lea edx, [esp + 0x28]
lea eax, [esp + 0xc]
push edx
mov edi, 1
push str._s.txt
push eax
mov dword [esp + 0x244], edi
call fcn.100366e0
mov esi, dword [esp + 0x24c]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.10032d60
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x238], bl
call fcn.10033760
mov eax, esi
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x10010c70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10186d7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0x101f1d00
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.10032fc0
push 0x104
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call fcn.10034430
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.10034500
push 0x101ae4fc
lea ecx, [esp + 8]
call fcn.10036fd0
push str._sTKS
lea ecx, [esp + 8]
call fcn.100343b0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.10032d60
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.10033760
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10010d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10186dc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push 0x101f1d04
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call fcn.1002dab0
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 1
push eax
call fcn.100109d0
mov esi, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
push ecx
call fcn.10010c70
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x24], 3
call fcn.1002dc80
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0xc]
push 0x101b08b4
push ecx
mov byte [esp + 0x30], 4
call fcn.10031240
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x20], 3
call fcn.1002e3e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.10033760
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.1002e3e0
mov esi, dword [esp + 0x28]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.1002d9b0
mov dword [esp + 0x14], 1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.1002e3e0
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret