joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6dd81fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
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 0x6dd81ffb
cmp byte [esi + ebx - 1], 0xa
je 0x6dd81fcf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6dd86084], 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]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6dd82550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x6dd86094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x6dd82710
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x6dd86094]
movzx eax, al
bt eax, esi
jae 0x6dd82770
mov ecx, dword [0x6dd86084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x6dd82616
test byte [0x6dd83030], 8
jne 0x6dd826b0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x6dd83040], 8
jne 0x6dd82660
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 dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6dd825e5
cmp esi, 3
jbe 0x6dd82620
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x6dd85300]
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 0x6dd825e5
mov ecx, dword [0x6dd86094]
test ecx, ecx
je 0x6dd82750
mov dword [esp], 0x6dd83040
call dword [0x6dd86094]
test al, 8
je 0x6dd825bc
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 dbg.sprintf
add edi, eax
jmp 0x6dd825bc
mov ebx, dword [0x6dd86094]
test ebx, ebx
je 0x6dd82730
mov dword [esp], 0x6dd83030
call dword [0x6dd86094]
test al, 8
je 0x6dd825a9
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x6dd825af
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6dd86094
call sym._load_func.part.0
jmp 0x6dd82570
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6dd86094
call sym._load_func.part.0
jmp 0x6dd826ba
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x6dd86094
call sym._load_func.part.0
jmp 0x6dd8266e
mov eax, 0xffffffff
jmp 0x6dd82616
Function at 0x40552e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [ebp - 0x3337b], cl
call dword [eax + 0x6a]
add bh, bh
xchg ebp, eax
enter 0xfffffffffffffffa, 0xffffffffffffffff
call fcn.00404689
push ebp
fcom qword [edx - 0x34]
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00404667
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00404699
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040464e
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00404689
or dl, bl
mov ah, byte [esi + 0x10468]
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid

Function at 0x406200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
std
add eax, dword [eax]
add byte [ebx - 0x6fb43], al
inc dword [ecx]
Function at 0xe7c8bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe7c8c6
pushal
call 0xe7c8cc
pop ebp
sub ebp, 0x10
sub ebp, 0xa7c8bc
jmp 0xe7c8e2
mov eax, 0xa7c8bc
add eax, ebp
add eax, 0x4c
mov ecx, 0x591
mov edx, 0xbdaeaeec
xor byte [eax], dl
inc eax
dec ecx
jne 0xe7c8f9
jmp 0xe7c90c
and dword [bx + 0x65], esp
shr ah, 1
in al, dx
in al, dx
insd dword es:[edi], dx
sub eax, 0xececec14
out dx, eax
and dword [edi - 0x14], edx
in al, dx
in al, dx
push esi
invalid
Function at 0x100037e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019a08
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1002300c]
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 dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
xor bl, bl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
jl 0x10003850
mov dword [ebp - 0x14], esi
lock inc dword [eax]
jmp 0x10003869
mov eax, dword [0x10023034]
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.10001790
push ecx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push 0
push eax
mov edx, 0x1001b7cc
lea ecx, [ebp - 0x14]
call fcn.10001060
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov esi, dword [ebp - 0x20]
sub eax, esi
and eax, 0xfffffffc
cmp eax, 8
jne 0x1000393c
push dword [esi]
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
call esi
mov edi, eax
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
call esi
add esp, 8
mov edx, eax
mov ecx, edi
call fcn.10003760
test eax, eax
je 0x10003939
mov eax, dword [ebp + 8]
mov edi, 1
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsstr]
cmp dword [eax - 8], 0
jl 0x1000390b
push 0x1001b7d0
push eax
call esi
add esp, 8
test eax, eax
je 0x1000390b
sub eax, dword [ebp + 8]
sar eax, 1
test eax, eax
jle 0x1000390b
call fcn.1000ba30
test al, al
jne 0x1000390b
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x44], 0
movzx ebx, bl
sete al
test al, al
cmovne ebx, edi
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jl 0x10003939
push 0x1001b7d8
push eax
call esi
add esp, 8
test eax, eax
je 0x10003939
sub eax, dword [ebp + 8]
sar eax, 1
test eax, eax
jle 0x10003939
call fcn.1000bb50
test al, al
movzx ebx, bl
cmovne ebx, edi
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
or edi, 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x10003964
lea ecx, [eax - 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10003964
push ecx
call fcn.1000e2ae
add esp, 4
test esi, esi
je 0x10003988
push dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.10001530
mov eax, dword [ebp - 0x18]
add esp, 8
sub eax, esi
sar eax, 2
push eax
push esi
call fcn.100014d0
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x100039b1
add eax, 0xfffffff4
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100039b1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff4
push ecx
call fcn.1000e2ae
add esp, 4
mov al, bl
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.1000e271
mov esp, ebp
pop ebp
ret
Function at 0x10004ef0
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x10004f38
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x54e
push dword [edi]
call esi
push 0xffffffffffffffff
push dword [edi]
mov ebp, eax
call esi
push 0x3f3
push dword [edi]
mov ebx, eax
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
push 0
push ebp
call esi
push 0
push ebx
call esi
push 0
push edi
call esi
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
ret 4

Function at 0x10008670
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x10008682
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10008690
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x10008700
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x10008714
pop ebp
lea eax, [ebx + 0xd]
pop ebx
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop word [eax + eax]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10008725
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10008720
push esi
push ebx
push 7
push 0
push dword [esp + 0x24]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x10008f70
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x10008fd5
cmp dword [edi], 0
mov esi, dword [esi]
je 0x10008fb5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008fcb
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10008fcb
push 0
push dword [edi]
push 0
push 0
push dword [esp + 0x1c]
push esi
call eax
pop edi
pop esi
ret 4
cmp dword [edi + 4], 0
je 0x10008fcb
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
cmp byte [0x10024fa4], 0
jne 0x10009015
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10009007
push 0x1001bd7c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10024fa0], eax
mov byte [0x10024fa4], 1
jmp 0x1000901a
mov eax, dword [0x10024fa0]
mov byte [0x10024fa4], 1
jmp 0x1000901a
mov eax, dword [0x10024fa0]
test eax, eax
je 0x10009030
push 0
push dword [esi + 4]
push dword [esp + 0x14]
push dword [esi]
call eax
pop edi
pop esi
ret 4
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
Function at 0x10009a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x1001a073
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1002300c]
xor eax, ebp
mov dword [ebp + 0x410], 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 + 0x420]
mov esi, dword [ebp + 0x41c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x404], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp]
movq qword [ebp + 0x408], xmm0
push 0
push eax
mov dword [ebp + 0x40c], ecx
mov dword [ebp + 0x408], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x10009aff
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x10009aff
call fcn.10007f30
mov esi, eax
jmp 0x10009bcb
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10009b1c
call fcn.10007f30
jmp 0x10009bbe
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x10009b37
call fcn.10007f30
jmp 0x10009bbe
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x14], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10009b52
mov esi, 0x8007000e
jmp 0x10009bc0
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10007ef0
jmp 0x10009b70
mov dword [ebp - 4], 1
cmp dword [ebp], 0
jne 0x10009b84
mov esi, 0x8007000e
jmp 0x10009bc0
push esi
push dword [ebp]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10009ba1
call fcn.10007f30
jmp 0x10009bbe
mov eax, dword [ebp]
xor edx, edx
push dword [ebp + 0x428]
mov word [eax + ecx*2], dx
lea ecx, [ebp + 0x408]
push dword [ebp]
call fcn.100098d0
mov esi, eax
test edi, edi
je 0x10009bcb
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x10009be0
lea ecx, [ebp]
call fcn.10007ea0
nop dword [eax + eax]
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 + 0x410]
xor ecx, ebp
call fcn.1000e271
lea esp, [ebp + 0x414]
pop ebp
ret 0x10
Function at 0x1000bb50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
push edi
mov byte [ebp - 0x70], 0x16
call fcn.1000b6a9
js 0x1000bb83
lcall 0xffff, 0x7c858d48
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x1000bd90
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000bd80
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000bd9e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
or byte [ecx], al
add byte [eax], al
or byte [ecx], al
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000bdfc
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000bde3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000bdec
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000bdf6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000bdd8
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000bd62
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000be49
dec eax
je 0x1000be40
sub eax, 3
je 0x1000be37
mov dword [ebp - 4], 0x40
jmp 0x1000be66
mov dword [ebp - 4], 4
jmp 0x1000be4c
mov dword [ebp - 4], 0x20
jmp 0x1000be4c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000be98
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000be18
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000b6a9
sbb cl, byte [bp + di - 0xdf]
jne 0x1000bea3
push 1
push esi
call edi
mov eax, esi
jmp 0x1000bea4
rcr byte [edi + 0x5e], 0x5b
Function at 0x10012300
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a6b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1002300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x10023d68
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx], 0x10023d68
mov byte [ebp - 4], 1
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x1001deac
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10012590
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42ede0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc8
push esi
mov esi, eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
xor eax, eax
push edi
mov edi, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], str.What
mov dword [esp + 0x48], eax
cmp esi, eax
jne 0x42ee6d
movzx esi, word [ecx]
imul esi, esi, 0x15
mov esi, dword [esi + 0x5118d8]
mov dword [esp + 0x40], esi
movzx esi, word [ecx + 4]
mov ecx, dword [ecx + 8]
mov esi, dword [esi*4 + 0x514e0c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], str.File
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa0], ecx
cmp edx, eax
je 0x42ef0d
cmp word [edx], ax
je 0x42ef0d
mov edi, 0xa
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc0], edx
lea edx, [esp + 8]
push edi
push edx
call fcn.00499d10
add esp, 8
pop edi
pop esi
add esp, 0xc8
ret 4
Function at 0x450e00
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4d706e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, edx
xor eax, eax
push esi
push eax
mov edi, ecx
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x450e50
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
je 0x450fd1
cmp byte [esp + 0x230], 0
push 0x104
push edi
push 0
push ebp
je 0x450e6b
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x450e71
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test byte [0x51a0cc], 1
mov ebx, eax
jne 0x450ec9
or dword [0x51a0cc], 1
push 0x4f0a68
mov dword [esp + 0x22c], 0
call fcn.0049fce0
add esp, 4
push eax
push str.__3__
call fcn.0049fc00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51a0c8], eax
mov dword [esp + 0x228], 0xffffffff
jmp 0x450ece
mov eax, dword [0x51a0c8]
test ebx, ebx
jne 0x450fc8
test eax, eax
je 0x450fc8
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x450fc8
cmp byte [esp + 0x230], 0
je 0x450f37
push 0x5c
push edi
call fcn.004c6cf1
add esp, 8
test eax, eax
je 0x450fc8
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x450f13
sub ecx, esi
sar ecx, 1
add ecx, ecx
push ecx
add eax, 2
push eax
push edi
call fcn.004c5960
add esp, 0xc
jmp 0x450fc8
mov ecx, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], cx
lea esp, [esp]
push 0x104
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x450f89
sub esi, 2
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.004c6e79
add esp, 0xc
test eax, eax
jne 0x450f89
cmp word [edi + esi*2], 0x5c
je 0x450f9d
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x450f50
jmp 0x450fc8
mov dx, word [esp + 0x10]
mov ax, word [esp + 0x12]
sub ebx, esi
mov word [edi], dx
lea ecx, [ebx + ebx + 2]
push ecx
lea edx, [edi + esi*2]
mov word [edi + 2], ax
push edx
add edi, 4
push edi
call fcn.004c5960
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x403471
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, 0xffffffff
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0x5c
jne 0x4034c2
cmp byte [ebx + 1], 0x5c
jne 0x4034c2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 8]
push ecx
lea eax, [ebp - 0xc]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x403520
mov esi, dword [ebp - 0xc]
imul esi, dword [ebp - 8]
shr esi, 8
imul esi, dword [ebp - 4]
shr esi, 2
jmp 0x403520
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x403520
push ebx
push edi
call fcn.004042c0
add esp, 8
cmp byte [edi + 1], 0x3a
jne 0x4034ed
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 8]
push ecx
lea eax, [ebp - 0xc]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x403519
mov esi, dword [ebp - 0xc]
imul esi, dword [ebp - 8]
shr esi, 8
imul esi, dword [ebp - 4]
shr esi, 2
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret