joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40166a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
pushal
cmp dword [ebp + 8], 0
jne 0x40167c
mov eax, dword [0x40f900]
mov dword [ebp + 8], eax
mov edi, 0x40b110
mov eax, dword [ebp + 0xc]
jmp 0x401689
add edi, 0x10
cmp dword [edi], eax
jne 0x401686
mov eax, dword [edi + 4]
or eax, eax
jne 0x4016e1
push 0x40b108
push 0x40
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtectEx
lea eax, [edi + 8]
push 0
push 2
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
push 0x40b108
push dword [0x40b108]
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtectEx
xor eax, eax
mov ecx, 4
rep stosd dword es:[edi], eax
jmp 0x401782
cmp eax, 1
jne 0x401761
push 0x40b108
push 0x40
push 2
push dword [edi + 8]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtectEx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 2
push 0x40b003
push eax
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
pop eax
add eax, 2
push 0
push 0x100
push 0x40b008
push eax
push dword [ebp + 8]
call sub.kernel32.dll_ReadProcessMemory
push 0
push dword [edi + 0xc]
push 0x40b008
push dword [edi + 8]
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
push 0x40b108
push dword [0x40b108]
push 2
push dword [edi + 8]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtectEx
xor eax, eax
mov ecx, 4
rep stosd dword es:[edi], eax
jmp 0x401782
cmp eax, 0xffffffff
jne 0x401782
push 0
push 2
push 0x40f130
push dword [edi]
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
xor eax, eax
mov ecx, 4
rep stosd dword es:[edi], eax
popal
leave
ret 8

Function at 0x401a0e
Capabilities:
Create thread

Disassembly:
pushal
xor ebx, ebx
mov esi, dword [0x40f174]
mov edi, dword [0x40f170]
jmp 0x401a49
mov ecx, ebx
shl ecx, 2
add ecx, dword [0x40f16c]
mov ecx, dword [ecx]
add ecx, ebx
push esi
push 0
push ecx
push 0x401787
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [edi], eax
add esi, 4
add edi, 4
inc ebx
cmp ebx, dword [0x40f178]
jb 0x401a1f
push 0xffffffffffffffff
push 1
push dword [0x40f170]
push dword [0x40f178]
call sub.kernel32.dll_WaitForMultipleObjects
cmp dword [0x40f1ac], 0
jne 0x401a91
mov eax, dword [0x40f1b0]
mov dword [esp + 0x1c], eax
mov eax, dword [0x40f1b4]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [0x40f1b0], eax
mov dword [0x40f1b4], eax
popal
ret
mov dword [0x40f1ac], 0
push 0
call sub.kernel32.dll_ExitThread
Function at 0x403162
Capabilities:
Allocate or change rwx memory

Disassembly:
pushal
mov eax, dword [0x40f804]
mov edx, dword [0x40f42c]
xor ecx, ecx
jmp 0x403176
add edx, 0x28
inc ecx
cmp eax, dword [edx + 0xc]
jae 0x403172
sub edx, 0x28
and dword [edx + 0x24], 0x3fffffbf
add dword [edx + 0x24], 0xc0000040
mov eax, dword [edx + 0xc]
add eax, dword [0x40f424]
mov dword [0x40f7d8], eax
add eax, dword [edx + 8]
mov dword [0x40f7dc], eax
sub eax, dword [0x40f7d8]
mov dword [0x40f7e0], eax
mov eax, dword [0x40f7d8]
cmp eax, dword [0x40f878]
jb 0x4031e4
cmp eax, dword [0x40f87c]
ja 0x4031e4
push 0x40
push 0x1000
push 0x5000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [0x40f6c8], eax
mov dword [0x40f7e4], 1
popal
ret

Function at 0x4031e6
Capabilities:
Allocate or change rwx memory

Disassembly:
pushal
inc dword [0x40f7d4]
mov eax, dword [0x40f81c]
or eax, eax
jne 0x40320e
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [0x40f81c], eax
jmp 0x403213
add eax, 0x14
cmp dword [eax + 0x10], 0
jne 0x403210
mov ebx, eax
mov eax, dword [0x40f804]
mov dword [ebx + 0x10], eax
mov eax, dword [0x40f7ec]
or eax, eax
jne 0x403244
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [0x40f7ec], eax
mov edi, eax
mov esi, 0x40f6d4
jmp 0x40324e
inc edi
cmp dword [edi], 0
jne 0x40324d
cmp edi, dword [0x40f7ec]
je 0x40325c
inc edi
mov eax, dword [0x40f42c]
mov ecx, dword [0x40f420]
dec ecx
jmp 0x40326e
add eax, 0x28
dec ecx
cmp ecx, 0
ja 0x40326a
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 8]
mov eax, edi
sub eax, dword [0x40f7ec]
add eax, 0x1000
add eax, ecx
mov dword [ebx + 0xc], eax
push esi
call sub.kernel32.dll_lstrlenA
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
popal
ret
Function at 0x10028cb0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10047ca4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], 0
push eax
push 0
push 2
push edx
push 0
push ecx
mov dword [esi], 0
mov dword [ebp - 0x228], 0x10e
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x10028d13
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100401a0
mov esp, ebp
pop ebp
ret 4
push 0x10e
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10028d6b
cmp eax, 0x10e
jae 0x10028d6b
mov edx, 0x10e
lea ecx, [ebp - 0x224]
push 0x100073d0
sub edx, eax
add ecx, eax
call fcn.100297b0
test eax, eax
js 0x10028d6b
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.100401a0
mov esp, ebp
pop ebp
ret 4

Function at 0x10028f60
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10047ca4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10049420
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10049448], 0
je 0x10029062
mov ecx, dword [0x10049450]
mov eax, ecx
mov edx, dword [0x10049454]
or eax, edx
je 0x10028fbb
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [0x10049450], 0
mov dword [0x10049454], 0
push 0x10e
lea eax, [ebp - 0x114]
mov dword [0x1004926c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10029058
cmp eax, 0x10e
jae 0x10029058
mov edx, 0x10e
lea ecx, [ebp - 0x114]
push 0x100073d0
sub edx, eax
add ecx, eax
call fcn.100297b0
test eax, eax
js 0x10029058
mov ecx, dword [0x1004926c]
mov eax, ecx
not eax
mov dword [0x10049460], 1
and eax, 0xfff
xor ecx, eax
cmp dword [0x1004945c], 0
lea eax, [ebp - 0x114]
mov dword [0x1004926c], ecx
mov dword [0x100470e0], eax
jne 0x1002904e
mov ecx, 0x23fa
call fcn.1000d982
cmp dword [0x10047cac], 0xffffffff
jne 0x1002904e
push 1
call fcn.10028550
mov dword [0x100470e0], 0x10007464
mov dword [0x10049448], 0
push 0x10049420
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100401a0
mov esp, ebp
pop ebp
ret
Function at 0x10040640
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1004067e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10040676
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10040680
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10040666
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10040750
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10040766
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10040781
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
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 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x9ff008], 0x8088405
inc edx
mov dword [ebx + 0x9ff008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cc40
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
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 0x41cc68
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x9e86d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9e86da
ret
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x9e90cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0xa01258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0xa01258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0xa000e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9e90d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x443100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x443122
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x443129
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x443118
mov eax, 1
add ebx, ebx
jne 0x44313b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44314c
jne 0x44316b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44316b
dec eax
add ebx, ebx
jne 0x443158
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x443130
add ebx, ebx
jne 0x443167
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4431bd
xor ecx, ecx
sub eax, 3
jb 0x443183
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4431f2
sar eax, 1
mov ebp, eax
jmp 0x44318e
add ebx, ebx
jne 0x44318e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44315c
inc ecx
add ebx, ebx
jne 0x44319c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44315c
add ebx, ebx
jne 0x4431a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44319e
jne 0x4431ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44319e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4431dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4431ce
jmp 0x44311e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4431dc
add edi, ecx
jmp 0x44311e
pop esi
mov edi, esi
mov ecx, 0x4c0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4431fa
cmp byte [edi], 9
jne 0x4431fa
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 0x4431ff
lea edi, [esi + 0x41000]
mov eax, dword [edi]
or eax, eax
je 0x443277
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x442cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x44394]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44322c
mov ecx, edi
jns 0x44325b
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 + 0x44398]
or eax, eax
je 0x443271
mov dword [ebx], eax
add ebx, 4
jmp 0x443249
call dword [esi + 0x443a0]
mov ebp, dword [esi + 0x4439c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4432ab
sub esp, 0xffffff80
jmp 0x40fde4
Function at 0x10119ff
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10032a0
call fcn.01011b80
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1011a3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1011a3a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1011a52
cmp eax, 0x20b
je 0x1011a3f
mov dword [ebp - 0x1c], edi
jmp 0x1011a66
cmp dword [ecx + 0x84], 0xe
jbe 0x1011a3a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1011a60
cmp dword [ecx + 0x74], 0xe
jbe 0x1011a3a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1013310], 0xffffffff
or dword [0x1013314], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1013308]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1013304]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101330c], eax
call fcn.01004fa8
cmp dword [0x1013218], edi
jne 0x1011ac1
push fcn.01004fa8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01011c59
push 0x101302c
push 0x1013028
call sub.msvcrt.dll__initterm
mov eax, dword [0x1013300]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10132fc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1013024
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100ec60
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1011b38
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1011b6d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01011bbb
ret
Function at 0x4016a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x522063
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x55bb24]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.004e1015
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4016f1
mov eax, dword [esi + 0x1c]
push eax
call fcn.004f0cfc
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x408380
Capabilities:
Create thread

Disassembly:
push ecx
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
test al, al
je 0x408413
push 0x534dc4
push ecx
push str.Starting_QSWriter_thread.
push ecx
push 0x534dd4
push ecx
push 0x127
push ecx
push 0x534dd8
push ecx
push str.RetryWriteQSId
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
push 0x100
call fcn.004cf0e5
mov ecx, 0x561540
call fcn.004d7461
push 0
push 0
push 0
push 0x4081e0
push 0
push 0
call fcn.004f13ad
add esp, 0x18
mov ecx, 0x561540
mov dword [0x5612f4], eax
call fcn.004d74ea
pop ecx
ret
Function at 0x409140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5235e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x55bb24]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x55bb24]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x409188
xor eax, eax
jmp 0x40931d
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
xor edx, edx
cmp ecx, edx
je 0x4091b3
mov eax, dword [edi + 0x34]
mov esi, dword [eax]
add esi, ecx
cmp ecx, esi
jae 0x4091b3
dec dword [eax]
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
mov eax, ebx
jmp 0x40931d
mov eax, dword [edi + 0x4c]
cmp eax, edx
je 0x40931a
cmp dword [edi + 0x3c], edx
jne 0x4091e0
push eax
movsx eax, bl
push eax
call fcn.004f0f90
add esp, 8
cmp eax, 0xffffffff
je 0x40931a
mov eax, ebx
jmp 0x40931d
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x20], dl
mov byte [esp + 0x13], bl
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 8
cmp ecx, 0x10
jae 0x40920c
lea eax, [esp + 0x20]
mov byte [eax + 8], dl
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov edx, eax
cmp ebx, 0x10
jae 0x409228
lea edx, [esp + 0x20]
mov eax, edx
mov ecx, dword [edi + 0x3c]
mov esi, dword [ecx]
lea ebx, [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x34]
add edx, ebx
push edx
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x27]
push edx
lea eax, [edi + 0x44]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
jl 0x409311
cmp eax, 1
jg 0x4092ce
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, eax
cmp ebx, 0x10
jae 0x409272
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x40929f
cmp ebx, 0x10
jae 0x409283
lea eax, [esp + 0x20]
mov ecx, dword [edi + 0x4c]
push ecx
push esi
push 1
push eax
call fcn.004f15bf
add esp, 0x10
cmp esi, eax
jne 0x409311
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x13]
mov byte [edi + 0x41], 1
cmp dword [esp + 0x18], edx
jne 0x409303
test esi, esi
ja 0x40921b
cmp dword [esp + 0x30], 0x20
lea ecx, [esp + 0x1c]
jae 0x409315
push 0
push 8
call fcn.00404d30
jmp 0x409213
cmp eax, 3
jne 0x409311
mov eax, dword [edi + 0x4c]
mov cl, byte [esp + 0x13]
call fcn.00406380
test al, al
je 0x4092f3
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x1c]
call fcn.00402b30
mov eax, esi
jmp 0x40931d
lea ecx, [esp + 0x1c]
or esi, 0xffffffff
call fcn.00402b30
mov eax, esi
jmp 0x40931d
lea ecx, [esp + 0x1c]
call fcn.00402b30
mov eax, dword [ebp + 8]
jmp 0x40931d
lea ecx, [esp + 0x1c]
call fcn.00402b30
or eax, 0xffffffff
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f070d
mov esp, ebp
pop ebp
ret 4