joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006964
Capabilities:
Get common file path
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1018054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x100223c
call fcn.010037b8
pop ecx
xor edi, edi
xor esi, esi
call fcn.01005d00
test eax, eax
je 0x10069c7
push 0x1002210
push edi
push edi
push 0x1002204
push 0xfb
push 0x1001f04
call fcn.0100390a
add esp, 0x18
push edi
push 0x30
push 0x1f42
call fcn.01006bdc
jmp 0x1006b19
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1006a08
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001ff8
push 0x1002204
push 0x101
push 0x1001f04
call fcn.0100390a
add esp, 0x18
push edi
push 0x30
push 0x72
jmp 0x10069bd
call fcn.01005d80
test eax, eax
je 0x1006ae2
call fcn.01005e13
test eax, eax
jne 0x1006ae2
mov esi, 0x10021f4
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01004408
test eax, eax
jne 0x1006a6a
push esi
lea eax, [ebp - 0x108]
push eax
push 0x1001978
push edi
push edi
push 0x1002204
push 0x10b
push 0x1001f04
call fcn.0100390a
add esp, 0x20
jmp 0x1006b19
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01006b31
test al, al
jne 0x1006a97
push 0x1001bec
push edi
push edi
push 0x1002204
push 0x110
jmp 0x10069f4
mov eax, dword [ebp - 0x234]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x238]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x10021cc
call fcn.010037b8
mov eax, dword [ebp - 0x238]
shr eax, 0x10
add esp, 0x14
cmp ax, 5
jb 0x1006adf
jne 0x1006adb
cmp word [ebp - 0x238], 0x50
jb 0x1006adf
xor esi, esi
jmp 0x1006ae2
xor esi, esi
inc esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push esi
push ebx
call fcn.010065ca
lea esi, [eax - 3]
neg esi
sbb esi, esi
inc esi
call fcn.01004090
cmp esi, edi
je 0x1006b19
push 0x10021bc
call fcn.010037b8
pop ecx
call fcn.01004163
push edi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100765e
leave
ret 4
Function at 0x1006b31
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x34
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
call fcn.01007860
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x1006b61
xor al, al
jmp 0x1006baa
push edi
push esi
call fcn.0100782b
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1006ba7
push esi
push ebx
push edi
call fcn.01007860
add esp, 0xc
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1006ba0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x1001310
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1006bb0
push edi
call fcn.0100781b
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp - 4], 0x34
je 0x1006bc1
push edi
call fcn.0100781b
pop ecx
mov al, bl
jmp 0x1006ba9
push 0x34
push dword [ebp - 8]
push 0x34
push dword [ebp + 0xc]
call fcn.010078df
add esp, 0x10
mov bl, 1
jmp 0x1006bb6
Function at 0x10081e0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x1018068]
je 0x1008206
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x10081f4
cmp esi, 0x17
jae 0x1008360
push 3
call fcn.0100e225
cmp eax, 1
pop ecx
je 0x100832a
push 3
call fcn.0100e225
test eax, eax
pop ecx
jne 0x1008239
cmp dword [0x1018050], 1
je 0x100832a
cmp edi, 0xfc
je 0x1008360
push 0x1002848
mov edi, 0x314
push edi
mov esi, 0x1019768
push esi
call fcn.0100c4a1
add esp, 0xc
test eax, eax
je 0x100826f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100a451
add esp, 0x14
mov byte [0x1019885], bl
push 0x104
mov ebx, 0x1019781
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10082b2
push 0x1002830
push 0x2fb
push ebx
call fcn.0100c4a1
add esp, 0xc
test eax, eax
je 0x10082b2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0100a451
add esp, 0x14
push ebx
push edi
push esi
call fcn.0100e1ac
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x10082d0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100a451
add esp, 0x14
push 0x1001400
push edi
push esi
call fcn.0100e1ac
add esp, 0xc
test eax, eax
je 0x10082f0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100a451
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x101806c]
push edi
push esi
call fcn.0100e1ac
add esp, 0xc
test eax, eax
je 0x1008315
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100a451
add esp, 0x14
push 0x12010
push 0x1002808
push esi
call fcn.0100e007
add esp, 0xc
jmp 0x1008360
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x1008360
cmp edi, 0xffffffff
je 0x1008360
mov edx, dword [esi*8 + 0x101806c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008349
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100dbc0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x100dbd3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100dbcf
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x100dc00
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100dc3f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x100dc35
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x100dc41
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x100dc25
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100e007
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01008d0f
xor ebx, ebx
cmp dword [0x101a084], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x100e0de
push 0x1002ac4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x100e049
xor eax, eax
jmp 0x100e1a2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002ab8
push edi
call esi
cmp eax, ebx
je 0x100e042
push eax
call fcn.01008ca4
mov dword [esp], 0x1002aa8
push edi
mov dword [0x101a084], eax
call esi
push eax
call fcn.01008ca4
mov dword [esp], 0x1002a94
push edi
mov dword [0x101a088], eax
call esi
push eax
call fcn.01008ca4
mov dword [0x101a08c], eax
lea eax, [ebp - 8]
push eax
call fcn.01007f63
test eax, eax
pop ecx
pop ecx
je 0x100e0ac
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100a451
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x100e0de
push 0x1002a78
push edi
call esi
push eax
call fcn.01008ca4
cmp eax, ebx
pop ecx
mov dword [0x101a094], eax
je 0x100e0de
push 0x1002a60
push edi
call esi
push eax
call fcn.01008ca4
pop ecx
mov dword [0x101a090], eax
mov eax, dword [0x101a090]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x100e157
cmp dword [0x101a094], esi
je 0x100e157
push eax
call fcn.01008d1d
pop ecx
call eax
cmp eax, ebx
je 0x100e124
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x101a094]
call fcn.01008d1d
pop ecx
call eax
test eax, eax
je 0x100e124
test byte [ebp - 0x18], 1
jne 0x100e157
lea eax, [ebp - 0xc]
push eax
call fcn.01007fa4
test eax, eax
pop ecx
je 0x100e13f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100a451
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100e14e
or dword [ebp + 0x10], 0x200000
jmp 0x100e188
or dword [ebp + 0x10], 0x40000
jmp 0x100e188
mov eax, dword [0x101a088]
cmp eax, esi
je 0x100e188
push eax
call fcn.01008d1d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100e188
mov eax, dword [0x101a08c]
cmp eax, esi
je 0x100e188
push dword [ebp - 4]
push eax
call fcn.01008d1d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x101a084]
call fcn.01008d1d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101152e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1018054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.01007f63
test eax, eax
pop ecx
je 0x1011563
push edi
push edi
push edi
push edi
push edi
call fcn.0100a451
add esp, 0x14
push 4
pop eax
call fcn.01011690
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1011671
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x10115ea
push 0x1002a44
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x10115ea
push 0x1003404
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10115ea
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x10115ea
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x10115ea
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.01011502
add esp, 0xc
test eax, eax
jl 0x1011671
not edi
and dword [ebp - 8], edi
je 0x101161c
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.01011502
add esp, 0xc
test eax, eax
jl 0x1011671
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x1011627
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x101163b
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x1011671
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1011671
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1011671
xor eax, eax
inc eax
jmp 0x1011673
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100765e
leave
ret
Function at 0x10120b3
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0100ecf3
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x14], edx
je 0x101213b
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.0100ecf3
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x101213b
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x10121d0
jg 0x1012114
cmp esi, ebx
jbe 0x10121d0
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1012147
call fcn.0100a553
mov dword [eax], 0xc
call fcn.0100a553
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.01012897
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x1012167
jg 0x1012163
cmp esi, ebx
jb 0x1012167
mov eax, ebx
jmp 0x1012169
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0100ee9b
add esp, 0xc
cmp eax, 0xffffffff
je 0x10121b3
cdq
sub esi, eax
sbb edi, edx
js 0x101218a
jg 0x1012159
test esi, esi
ja 0x1012159
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.01012897
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x1012239
call fcn.0100a56b
cmp dword [eax], 5
jne 0x10121c8
call fcn.0100a553
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x101218d
cmp edi, ebx
jg 0x1012245
jl 0x10121da
cmp esi, ebx
jae 0x1012245
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100ecf3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x101213b
push dword [ebp + 8]
call fcn.0100facb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], edx
jne 0x1012245
call fcn.0100a553
mov dword [eax], 0xd
call fcn.0100a56b
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x101213b
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0100ecf3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x101213b
xor eax, eax
jmp 0x1012142
Function at 0x48b290
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x48b31f
xor eax, eax
cmp dword [edi + 0x60], 8
mov word [ebp - 8], ax
mov dword [ebp - 4], eax
lea eax, [edi + 0x4c]
jb 0x48b2bb
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [ebp - 4]
push eax
call fcn.0065aa04
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x48b31f
push eax
push 2
lea eax, [ebp - 8]
push 1
push eax
call fcn.0065aed9
push dword [ebp - 4]
call fcn.0065aae4
mov cl, byte [ebp - 8]
add esp, 0x14
mov al, byte [ebp - 7]
cmp cl, 0xff
jne 0x48b2fc
cmp al, 0xfe
je 0x48b31f
cmp al, 0xff
jne 0x48b305
cmp cl, 0xfe
je 0x48b31f
mov eax, dword [ebx]
test eax, eax
je 0x48b318
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.0048c890
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x48b32c
mov eax, dword [esi]
jmp 0x48b32e
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x48b3cc
cmp dword [esi + 0x14], 8
jb 0x48b356
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x48b381
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
push 0
jne 0x48b3b1
mov ecx, 0xfeff
mov word [ebp - 4], cx
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 8]
mov word [ebp - 4], 0xbbef
push ecx
push 3
lea ecx, [ebp - 4]
mov byte [ebp - 2], 0xbf
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48b980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x48b990
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x777a1c
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48b9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x48ba00
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x777a24
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4910e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bc1d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7f3784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0063bae8
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0063d9a4
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494410
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
lea esi, [eax + 0x4c]
mov dword [ebp - 0xc], eax
xor bl, bl
cmp dword [esi + 0x14], 8
push edi
jb 0x49442d
mov eax, dword [esi]
jmp 0x49442f
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49445a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x494479
mov eax, dword [ebp - 0x14]
mov bl, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x494485
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4944fb
cmp dword [ebp - 4], 0
jl 0x4944fb
jg 0x4944a1
cmp dword [ebp - 8], 0xa00000
jb 0x4944fb
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x68]
lea edi, [ebx + 0x68]
test eax, eax
je 0x4944b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x4944bd
mov esi, dword [esi]
push 0
push 0x80
push 5
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
test eax, eax
je 0x4944e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x494fd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x495033
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x495033
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x495002
pop edi
shr eax, 4
pop esi
and al, 1
pop ebx
pop ebp
ret 4
push esi
call fcn.006713c5
mov edi, eax
push 0x5c
push edi
call fcn.006babf2
add esp, 0xc
test eax, eax
je 0x495051
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.00494fd0
push edi
test al, al
jne 0x49503c
call fcn.00665390
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
call fcn.00665390
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x495033
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x498e00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bc599
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7f3784]
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], 0x7f9e50
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x7f9e50
mov dword [esi + 0x30], 0x7f9e50
mov dword [esi + 0x34], 0x7f9e50
mov edi, dword [ebp + 8]
mov edx, edi
mov byte [ebp - 4], 3
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x498ea1
sub edx, ebx
push edx
push edi
call fcn.00498b70
mov edi, dword [ebp + 0xc]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x498ec0
sub edx, ecx
lea ecx, [esi + 0x30]
push edx
push edi
call fcn.00498b70
mov edi, dword [ebp + 0x10]
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x498ee0
sub edx, ecx
lea ecx, [esi + 0x34]
push edx
push edi
call fcn.00498b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x498f10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bc5d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x7f3784]
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], 0x7f9e50
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
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x7f9e50
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x7175c0
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00498b70
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