joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e2a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ff30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x590cc0]
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 eax, dword [ebp + 8]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 1
cmp esi, edi
je 0x49e437
cmp esi, 0xffffffff
je 0x49e437
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
cmp ebx, edi
jne 0x49e33c
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], 8
jb 0x49e449
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x49e441
lea esi, [ebx + 1]
push esi
call fcn.004b7ad5
mov edi, eax
add esp, 4
test edi, edi
je 0x49e35c
push esi
push 0
push edi
call fcn.004ba010
add esp, 0xc
jmp 0x49e35e
xor edi, edi
mov esi, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x34]
push ecx
push ebx
push edi
push esi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x49e427
cmp dword [ebp - 0x34], ebx
jne 0x49e427
test edi, edi
jne 0x49e390
xor eax, eax
jmp 0x49e3c0
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x49e3a6
xor eax, eax
jmp 0x49e3bd
lea eax, [esi + esi]
call fcn.004bb0f0
mov eax, esp
push 0xfde9
push esi
push edi
push eax
call fcn.004095f0
mov esi, dword [ebp - 0x30]
mov ecx, eax
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x49e3c5
sub ecx, ebx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402460
push edi
call fcn.004b9ded
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x49e416
push 0xa
push 0
push 0x55d694
lea ecx, [ebp - 0x2c]
call fcn.00408330
cmp eax, 0xffffffff
je 0x49e416
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.0051c7a0
mov al, 1
jmp 0x49e44b
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.0051c7a0
jmp 0x49e449
push edi
call fcn.004b9ded
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x18], 8
jb 0x49e449
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
xor al, al
lea esp, [ebp - 0x44]
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.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x49ebf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov eax, edx
push edi
mov edi, ecx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ec00
sub eax, esi
sar eax, 1
push eax
lea ecx, [edi + 0x24]
push edx
call fcn.00402460
mov edx, dword [ebp + 0xc]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ec21
sub eax, esi
push ebx
sar eax, 1
push eax
push edx
lea ecx, [edi + 0x40]
call fcn.00402460
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x24]
mov dword [edi + 0xd4], eax
mov dword [edi + 0xcc], ecx
test edx, edx
je 0x49ec8f
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ec60
sub eax, esi
sar eax, 1
je 0x49ec8f
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ec76
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [edi + 8]
call fcn.00402460
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x49eccf
mov eax, esi
lea edx, [eax + 2]
jmp 0x49eca0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49eca0
sub eax, edx
sar eax, 1
je 0x49eccf
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ecb6
sub eax, edx
sar eax, 1
push eax
lea ecx, [edi + 0x5c]
push esi
call fcn.00402460
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x49ed0f
mov eax, esi
lea edx, [eax + 2]
jmp 0x49ece0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ece0
sub eax, edx
sar eax, 1
je 0x49ed0f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ecf6
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x78]
call fcn.00402460
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x49ed52
mov eax, esi
lea edx, [eax + 2]
jmp 0x49ed20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ed20
sub eax, edx
sar eax, 1
je 0x49ed52
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49ed36
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x94]
call fcn.00402460
lea eax, [edi + 0x5c]
mov ecx, 8
cmp dword [eax + 0x14], ecx
jb 0x49ed61
mov eax, dword [eax]
cmp dword [edi + 0x54], ecx
jb 0x49ed6b
mov edx, dword [edi + 0x40]
jmp 0x49ed6e
lea edx, [edi + 0x40]
pop ebx
cmp dword [edi + 0x38], ecx
jb 0x49ed79
mov ecx, dword [edi + 0x24]
jmp 0x49ed7c
lea ecx, [edi + 0x24]
push eax
push edx
push ecx
push str.KAsynHttpRequestThread::start:_taskId:_s_url:_s_parameter:_s
push str.kupdate::KAsynHttpRequestThread::start
push 0xf9
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcweb_asynhttprequest.cpp
push 9
call fcn.0041a9b0
add esp, 0x20
lea edx, [ebp + 8]
push edx
push 0
push edi
push 0x49ebe0
push 0
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi], eax
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x20
Function at 0x49f920
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x49f96f
cmp dword [esi + 8], 0
je 0x49f96f
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
test eax, eax
je 0x49f96f
mov edx, dword [ebp + 0xc]
push edi
push 0x40
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4a1d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5302b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004b9d21
add esp, 4
cmp eax, ebx
je 0x4a1e74
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.004b9d21
add esp, 4
cmp eax, ebx
je 0x4a1e50
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
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
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.004b90da
push 0x5794b8
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.004b9da1
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.004b90da
push 0x5794b8
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.004b9da1
int3
Function at 0x4a8b70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530cbe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov edx, 0xf
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], ebx
mov dword [ebp - 4], ebx
mov byte [ecx], bl
mov dword [esi + 0x44], edx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.0040b4d0
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esi + 0x30]
call fcn.0040b4d0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
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 8

Function at 0x4a8c10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530cfe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], ebx
mov dword [ebp - 4], ebx
mov byte [ecx], bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edx
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4a8c80
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040bcb0
mov edx, dword [ebp + 0xc]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp + 8], ecx
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a8ca0
sub eax, dword [ebp + 8]
lea ecx, [esi + 0x30]
push eax
push edx
call fcn.0040bcb0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
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 8
Function at 0x4a8f90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530d63
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
or ecx, 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x30], edx
mov ebx, 0xf
mov dword [esi + 0x34], ebx
mov byte [esi + 0x20], dl
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
lea eax, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], ebx
mov dword [eax + 0x24], edx
mov byte [eax + 0x14], dl
mov dword [eax + 0x44], ebx
mov dword [eax + 0x40], edx
mov byte [eax + 0x30], dl
mov dword [ebp - 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x50], eax
mov dword [eax + 0x4c], eax
mov ecx, dword [ebp + 8]
mov eax, ecx
lea ebx, [eax + 1]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
mov dword [ebp + 8], ebx
mov bl, byte [eax]
inc eax
cmp bl, dl
jne 0x4a9032
sub eax, dword [ebp + 8]
push eax
push ecx
lea ecx, [esi + 0x20]
call fcn.0040bcb0
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 4

Function at 0x4a9090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530d93
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edx, edx
or edi, 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 4], edi
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edx
mov byte [ecx], dl
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
lea eax, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax + 0xc], edx
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], 0xf
mov dword [eax + 0x24], edx
mov byte [eax + 0x14], dl
mov dword [eax + 0x44], 0xf
mov dword [eax + 0x40], edx
mov byte [eax + 0x30], dl
mov dword [ebp - 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x50], eax
mov dword [eax + 0x4c], eax
mov eax, dword [ebp + 8]
push edi
push edx
push eax
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
call fcn.0040b4d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4a9580
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530e63
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov edx, 0xf
mov dword [esi + 0x34], edx
mov byte [esi + 0x20], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], ebx
mov dword [ebp - 4], ebx
mov byte [ecx], bl
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
push ebx
push 0x53fbbd
mov byte [ebp - 4], 1
mov dword [esi + 0x68], 4
mov byte [esi + 0x74], bl
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
call fcn.0040bcb0
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a9630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530e88
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x590cc0]
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 ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x30], edi
test ebx, ebx
jne 0x4a9678
push ebx
push ebx
push ebx
push 2
call fcn.004ab5a0
xor al, al
jmp 0x4a9812
mov esi, dword [edi + 0x18]
test esi, esi
je 0x4a9691
nop
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x40]
push 1
call edx
test esi, esi
jne 0x4a9680
xor ecx, ecx
push 2
or eax, 0xffffffff
push ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
push ebx
mov dword [edi + 8], eax
mov dword [edi + 4], eax
call fcn.004becf1
push ebx
call fcn.004bec02
xor esi, esi
push esi
push esi
push ebx
mov edi, eax
call fcn.004becf1
add esp, 0x1c
cmp edi, esi
jg 0x4a96d8
mov ecx, dword [ebp - 0x30]
push esi
push esi
push esi
push 0xd
call fcn.004ab5a0
xor al, al
jmp 0x4a9812
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], esi
cmp edi, 0xf
je 0x4a970f
push 1
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040b370
test al, al
je 0x4a970f
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4a970c
lea eax, [ebp - 0x2c]
mov byte [eax], 0
lea eax, [edi + 1]
push eax
call fcn.004b7ad5
push ebx
mov esi, eax
push 1
push edi
push esi
mov dword [ebp - 0x34], esi
mov byte [esi], 0
call fcn.004bd74b
add esp, 0x14
cmp eax, 1
je 0x4a9764
push esi
call fcn.004b9ded
mov ecx, dword [ebp - 0x30]
add esp, 4
push 0
push 0
push 0
push 2
call fcn.004ab5a0
cmp dword [ebp - 0x18], 0x10
jb 0x4a975d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b9008
add esp, 4
xor al, al
jmp 0x4a9812
mov ebx, dword [ebp - 0x34]
mov byte [ebx + edi], 0
cmp byte [ebx], 0
mov eax, esi
je 0x4a97c3
mov cl, byte [esi]
cmp cl, 0xa
jne 0x4a978d
mov edx, esi
sub edx, eax
inc edx
push edx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b860
inc esi
mov eax, esi
jmp 0x4a97be
cmp cl, 0xd
jne 0x4a97bd
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4a97a4
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b860
push 0xa
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040b420
cmp byte [esi + 1], 0xa
jne 0x4a9788
add esi, 2
mov eax, esi
jmp 0x4a97be
inc esi
cmp byte [esi], 0
jne 0x4a9772
sub esi, eax
je 0x4a97d1
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b860
push ebx
call fcn.004b9ded
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [ebp - 0x18], 0x10
jae 0x4a97e6
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x30]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push ecx
push 0
push eax
mov ecx, esi
call edx
cmp byte [esi + 0x44], 0
lea ecx, [ebp - 0x2c]
je 0x4a980b
call fcn.00489c30
xor al, al
jmp 0x4a9812
call fcn.00489c30
mov al, 1
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.004b9ff3
mov esp, ebp
pop ebp
ret 8
Function at 0x4a9ba0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530ed9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov eax, 0xf
mov dword [esi + 0x34], eax
mov byte [esi + 0x20], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 4], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov dword [esi + 0x90], eax
mov dword [esi + 0x8c], ebx
mov byte [esi + 0x7c], bl
mov ecx, dword [ebp + 8]
mov eax, ecx
lea edx, [eax + 1]
mov byte [ebp - 4], 3
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4a9c36
sub eax, dword [ebp + 8]
push eax
push ecx
lea ecx, [esi + 0x44]
call fcn.0040bcb0
mov edi, dword [ebp + 0xc]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4a9c52
sub eax, ecx
push eax
push edi
lea ecx, [esi + 0x60]
call fcn.0040bcb0
mov edx, dword [ebp + 0x10]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a9c70
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x7c]
call fcn.0040bcb0
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 0x4b0e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
lea edx, [ebp - 0x210]
push edx
push 0x20019
xor edi, edi
push edi
push ecx
mov dword [ebp - 0x214], edi
push eax
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b0efb
mov dword [esi + 0x10], edi
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
push 0x204
lea edx, [ebp - 0x20a]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x214], edi
mov word [ebp - 0x20c], cx
call fcn.004ba010
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x214]
push edx
push edi
push ebx
push eax
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x210]
push ecx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
cmp ebx, edi
je 0x4b0f82
xor edx, edx
pop edi
mov word [esi], dx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4b0f90
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.00402460
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x4b46f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x4b47df
cmp byte [ebx], 0
je 0x4b47df
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x4b47df
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0xc], 0
test esi, esi
je 0x4b47d3
jmp 0x4b4730
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4b4761
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x4b47bc
mov ecx, dword [ebp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4b479c
push eax
lea edx, [ebp + 8]
mov dword [ebp + 8], eax
push edx
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
test eax, eax
je 0x4b47bc
mov eax, dword [ebp + 8]
add ebx, eax
sub esi, eax
jne 0x4b4730
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x14]
push ecx
push edi
mov dword [ebp + 0xc], 0x800705b4
call fcn.004b46c0
mov eax, dword [ebp + 0xc]
add esp, 8
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x4b47d0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4b47f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x14
push esi
test ecx, ecx
je 0x4b48bb
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4b48bb
mov edx, dword [ebp + 0x10]
xor eax, eax
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4b4845
call edi
cmp eax, 0x3e5
jne 0x4b4899
mov eax, dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x4b4884
push esi
call dword [sym.imp.KERNEL32.DLL_CancelIo]
test eax, eax
je 0x4b4877
push 1
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
push esi
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
mov eax, 0x800705b4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
push 0
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
test eax, eax
jne 0x4b48b1
call edi
test eax, eax
jle 0x4b487c
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret 0x14