joyce8/EMBER2024-capa huggingface dataset:
Function at 0x75ef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7739fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x75f002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00762dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x75f002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0075a6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0076320b
push 0x10
call fcn.007631d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x75efc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0074f1c0
jmp 0x75efc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0075eb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x75eff0
mov ecx, edi
call fcn.0074f2c0
push edi
call fcn.007631c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x75f021
inc ebx
cmp ebx, 0x20
jb 0x75ef3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x760250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x774808
push 0x764288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x760329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x760329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007631d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x760329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x760329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x76032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00760351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x761000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x761131
push esi
call fcn.00764145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00753080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x761131
push 0
push ebp
call fcn.007533a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00753260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x76108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007532f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x761121
push 0x779918
push edi
call fcn.007623f0
push eax
push ebx
push esi
call fcn.00760f60
push 0x7798f8
push edi
call fcn.007623f0
push eax
push ebx
push esi
call fcn.00760f60
push 0x7798d8
push edi
call fcn.007623f0
push eax
push ebx
push esi
call fcn.00760f60
push 0x7798c0
push edi
call fcn.007623f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00760f60
push 0x7798a0
push edi
call fcn.007623f0
push eax
push ebx
push esi
call fcn.00760f60
push 0x779888
push edi
call fcn.007623f0
push eax
push ebx
push esi
call fcn.00760f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7621b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00762140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00762140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00762140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00762140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x762bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x762c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x77487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x762c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x762c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x1003d210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1003d21f
pop dword [ebp - 0x3c]
mov eax, 0x6fb8f6c3
add eax, 0xa04adb5c
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x931d89c3
sub dword [ebp - 0x4c], 0x44cb4478
mov dword [ebp - 0x48], 0xe28ffc43
add dword [ebp - 0x48], 0x4fa35002
mov dword [ebp - 0x44], 0x2f576983
sub dword [ebp - 0x44], 0xe30b2555
mov dword [ebp - 0x40], 0x5efd6865
add dword [ebp - 0x40], 0xa102979b
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xc3f2f282
add eax, 0x4c110e92
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xdee2062e
sub dword [ebp - 0x4c], 0x6a6f9cd8
mov dword [ebp - 0x48], 0x6966b1d5
sub dword [ebp - 0x48], 0x27fa5060
mov dword [ebp - 0x44], 0xd1887573
add dword [ebp - 0x44], 0x91e6f6f9
mov dword [ebp - 0x40], 0x609b4147
add dword [ebp - 0x40], 0x9f64beb9
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xc19ae95e
sub eax, 0xb196e806
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c4ca
push 0
call eax
mov ecx, 0x75100072
add ecx, 0x8af04be1
xor edi, edi
add edi, eax
mov ebx, 0x10094a00
add ebx, dword [ebp - 0x3c]
mov esi, 0x82ee4adf
add esi, 0xe0489232
sub dword [ebp - 8], ecx
mov edx, dword [ebx]
mov dword [ebp - 0x18], 0x5aac339a
sub edx, esi
sub dword [ebp - 0x28], 0x38d14dd
mov dword [edi], edx
xor dword [ebp - 0xc], ecx
add edi, 0x215a7f32
add edi, 0xdea580d2
add ebx, 4
loop 0x1003d33d
add eax, 0xc34f99fe
sub eax, 0xc34e75df
xor ebx, ebx
add ebx, eax
add eax, 0xa339ea77
add eax, 0x5cc6158e
mov ecx, 0xef9169d9
sub ecx, 0xdf9169d9
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x1003dfd1
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x1003dfe8
mov bl, byte [eax]
inc eax
mov dword [esi + 0x50], eax
jmp 0x1003e054
cmp dword [esi + 0x4c], 0
jl 0x1003e052
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003e020
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003dff1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003dff1
cmp ebx, 1
jge 0x1003e02d
or dword [esi + 0x4c], 0xffffffff
xor bl, bl
jmp 0x1003e072
lea eax, [edi + 1]
mov dword [esi + 0x50], eax
lea eax, [ebx + edi]
mov dword [esi + 0x54], eax
mov bl, byte [edi]
test bl, bl
jne 0x1003e054
push esi
call fcn.1003f085
mov eax, dword [esi + 0x50]
or dword [esi + 0x4c], 0xffffffff
pop ecx
mov dword [esi + 0x54], eax
jmp 0x1003e054
xor bl, bl
cmp bl, 0xa
jne 0x1003e068
mov eax, dword [esp + 0x18]
and dword [eax], 0
mov eax, dword [esp + 0x14]
inc dword [eax]
jmp 0x1003e072
test bl, bl
je 0x1003e072
mov ecx, dword [esp + 0x18]
inc dword [ecx]
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x52f7cc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a4c
mov eax, dword [ebp - 8]
call fcn.00406a4c
xor eax, eax
push ebp
push 0x52f902
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov ecx, 0x52f91c
mov edx, 0x52f94c
mov eax, 0x80000001
call fcn.0052efc8
xor eax, eax
push ebp
push 0x52f845
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov ecx, 0x52f9d4
mov edx, 0x52f9f4
mov eax, 0x80000002
call fcn.0052efc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52f865
xor eax, eax
push ebp
push 0x52f8ad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52fafc
push dword [ebp - 8]
push 0x52fafc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004075c8
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x52fb0c
mov eax, 0x80000002
call fcn.0052ef1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52f8e7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f909
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004069c8
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
not dword [eax - 0x6f6e6f70]
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x89608d4
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2dc70aec
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4f0140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9b000]
push edi
jmp 0x4f015a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f0161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0150
mov eax, 1
add ebx, ebx
jne 0x4f0173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f0184
jne 0x4f01a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f01a3
dec eax
add ebx, ebx
jne 0x4f0190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f0168
add ebx, ebx
jne 0x4f019f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f01f5
xor ecx, ecx
sub eax, 3
jb 0x4f01bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f022a
sar eax, 1
mov ebp, eax
jmp 0x4f01c6
add ebx, ebx
jne 0x4f01c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0194
inc ecx
add ebx, ebx
jne 0x4f01d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f0194
add ebx, ebx
jne 0x4f01e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f01d6
jne 0x4f01f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f01d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f0214
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f0206
jmp 0x4f0156
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f0214
add edi, ecx
jmp 0x4f0156
pop esi
mov edi, esi
mov ecx, 0x3ee4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f0232
cmp byte [edi], 0x11
jne 0x4f0232
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 0x4f0237
lea edi, [esi + 0xe9000]
mov eax, dword [edi]
or eax, eax
je 0x4f02af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x107868]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1079e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f0264
mov ecx, edi
jns 0x4f0293
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 + 0x1079e8]
or eax, eax
je 0x4f02a9
mov dword [ebx], eax
add ebx, 4
jmp 0x4f0281
call dword [esi + 0x1079f8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f02e0
cmp al, 0xef
ja 0x4f02d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f02b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f02c2
mov ebp, dword [esi + 0x1079ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4f0314
sub esp, 0xffffff80
jmp 0x427864
Function at 0x4018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x68125c]
mov dword [ebp - 4], eax
jmp 0x4018f9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x401916
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4018f0
mov esp, ebp
pop ebp
ret

Function at 0x401920
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x68126c], eax
je 0x40193e
mov eax, 0x10dd
jmp 0x401a1f
mov eax, dword [0x68127c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4019bc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x40199a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x40199a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00401a90
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0059f0cc
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x401946
mov dword [0x68127c], 0
call fcn.00401a30
mov ecx, dword [0x681278]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x401a09
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0059f0cc
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x4019d4
mov dword [0x681278], 0
mov dword [0x68126c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401f90
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x401fa5
xor eax, eax
jmp 0x40201a
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x401fd2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x402015
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x402013
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x40200f
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x402013
xor eax, eax
jmp 0x40201a
jmp 0x401fc9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4020c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x681270], 0
je 0x4020d9
mov eax, dword [0x681270]
jmp 0x402179
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x4020eb
xor eax, eax
jmp 0x402179
push 8
call fcn.0059e2c1
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402141
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x40212a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0059f0cc
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x681270], eax
mov dword [0x681274], 0
mov eax, dword [ebp - 4]
jmp 0x402179
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x40215b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40210b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x681278]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x681278], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4029a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00402a70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x402a5c
cmp dword [ebp - 4], 0x50000000
jb 0x4029dc
cmp dword [ebp - 4], 0x80000000
ja 0x4029dc
mov dword [ebp - 4], 0x80010000
jmp 0x4029b5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.005a38c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x402a02
jmp 0x402a5c
cmp dword [ebp - 0x10], 0x10000
jne 0x402a45
cmp dword [ebp - 0x14], 0x10000
jb 0x402a45
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402a38
mov eax, dword [ebp - 0x24]
jmp 0x402a5e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x402a57
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00402a70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4029b5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00402b70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x402b64
cmp dword [ebp - 4], 0x50000000
jb 0x402ae1
cmp dword [ebp - 4], 0x80000000
ja 0x402ae1
mov dword [ebp - 4], 0x4fff0000
jmp 0x402aba
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.005a38c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x402b07
jmp 0x402b64
cmp dword [ebp - 0x10], 0x10000
jne 0x402b4a
cmp dword [ebp - 0x14], 0x10000
jb 0x402b4a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x402b3d
mov eax, dword [ebp - 0x24]
jmp 0x402b66
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x402b5f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00402b70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x402aba
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40aca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x68205f
call fcn.0059e74b
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40acd7
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x40acde
mov al, 1
jmp 0x40adce
call fcn.0040e9a0
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x7c], eax
call fcn.0040e9a0
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.0040e9f0
add esp, 8
movzx eax, al
test eax, eax
je 0x40ad1a
xor al, al
jmp 0x40adce
mov dword [ebp - 0xc], 0x20
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x38]
call fcn.00410a70
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x40ad62
cmp dword [ebp - 0x84], 1
je 0x40ad69
cmp dword [ebp - 0x84], 3
je 0x40adc1
jmp 0x40adcc
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x40ad98
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x30]
push eax
call fcn.005ac8aa
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40ad98
xor al, al
jmp 0x40adce
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x40adaf
mov dword [ebp - 0x84], 1
jmp 0x40adb9
mov dword [ebp - 0x84], 0
mov al, byte [ebp - 0x84]
jmp 0x40adce
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x40adce
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret