joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427363
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 7
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x427391
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x42739e
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor esi, esi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.004384f3
mov edi, eax
cmp edi, ebx
jl 0x4274cd
mov ebx, dword [ebp + 0x24]
xor edx, edx
cmp ebx, edx
je 0x4273c6
mov ecx, ebx
cmp word [ebx], dx
jne 0x4273c9
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x20]
cmp edi, edx
je 0x4273d7
mov eax, edi
cmp word [edi], dx
jne 0x4273da
mov eax, dword [ebp - 0x18]
push edx
push edx
xor edx, edx
cmp dword [ebp - 0x24], 1
setne dl
lea edx, [edx + edx + 1]
push edx
push ecx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
test esi, esi
je 0x4274dc
test edi, edi
je 0x427441
cmp word [edi], 0
je 0x427441
test ebx, ebx
je 0x427441
cmp word [ebx], 0
je 0x427441
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0x2b
push esi
call edi
test eax, eax
je 0x427441
push dword [ebp + 0x24]
call ebx
push eax
push dword [ebp + 0x24]
push 0x2c
push esi
call edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp + 0x18]
push esi
call fcn.00426c82
mov edi, eax
test edi, edi
js 0x427517
push dword [ebp + 0x30]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00427195
mov edi, eax
test edi, edi
js 0x427523
cmp dword [ebp - 8], 0
jne 0x42737b
mov eax, dword [ebp + 0x28]
mov dword [eax], esi
mov eax, dword [ebp + 0x2c]
xor esi, esi
and dword [ebp - 4], esi
mov ecx, ebx
mov dword [eax], ecx
lea eax, [ebp - 0x24]
push eax
call fcn.00438242
cmp dword [ebp - 4], 0
pop ebx
je 0x4274ba
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x4274c5
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 0x2c
push str.Failed_to_break_URL_into_server_and_resource_parts.
push edi
call fcn.00430126
pop ecx
pop ecx
jmp 0x4274a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4274f0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4274fb
mov edi, 0x80004005
push edi
push 0x213
push str.downloadengine.cpp
call fcn.00432f06
mov eax, dword [ebp + 0x14]
push dword [eax]
push str.Failed_to_connect_to_URL:__ls
jmp 0x42752d
mov eax, dword [ebp + 0x14]
push dword [eax]
push str.Failed_to_open_internet_URL:__ls
jmp 0x42752d
mov eax, dword [ebp + 0x14]
push dword [eax]
push str.Failed_to_send_request_to_URL:__ls
push edi
call fcn.00430126
add esp, 0xc
jmp 0x4274a1
Function at 0x42854a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x456130]
jne 0x428554
repz ret
jmp fcn.0042a534

Function at 0x42c2ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00429d42
and dword [ebp - 0x14], 0
cmp dword [0x457d9c], 0
mov dword [ebp - 0x18], eax
jne 0x42c35e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42c406
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x450b3c
push ebx
call edi
test eax, eax
je 0x42c406
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x457d9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x457da0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x457da4], eax
call edi
push eax
call esi
mov dword [0x457dac], eax
test eax, eax
je 0x42c35e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x457da8], eax
mov eax, dword [0x457da8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42c3b7
cmp dword [0x457dac], ecx
je 0x42c3b7
push eax
call esi
push dword [0x457dac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42c3b7
test ebx, ebx
je 0x42c3b7
call edi
test eax, eax
je 0x42c3ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42c3ae
test byte [ebp - 8], 1
jne 0x42c3b7
or dword [ebp + 0x10], 0x200000
jmp 0x42c3ea
mov eax, dword [0x457da0]
cmp eax, dword [ebp - 0x18]
je 0x42c3ea
push eax
call esi
test eax, eax
je 0x42c3ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42c3ea
mov eax, dword [0x457da4]
cmp eax, dword [ebp - 0x18]
je 0x42c3ea
push eax
call esi
test eax, eax
je 0x42c3ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x457d9c]
call esi
test eax, eax
je 0x42c406
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42c408
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042854a
leave
ret
Function at 0x42f79a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x456f50], 0xffffffff
mov dword [ebp + 8], eax
jne 0x42f7d4
push ebx
push edi
push 0x457e38
call fcn.00431983
mov ebx, eax
test ebx, ebx
js 0x42f82c
xor ebx, ebx
jmp 0x42f82c
test eax, eax
je 0x42f82c
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [0x456f50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42f812
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42f80c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x42f81c
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x42f7d8
jmp 0x42f82c
push ebx
push 0x318
push str.logutil.cpp
call fcn.00432f06
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x42fdc7
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [str.unknown]
mov eax, 0x104
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x208
test eax, eax
jne 0x42fe2b
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004284d0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00436262
test eax, eax
jns 0x42fe55
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x42fe79
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
dec esi
jne 0x42fe73
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.004385eb
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop esi
push esi
call fcn.0042fd42
mov eax, dword [ebp - 0x420]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x41c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
push str.Executable:__ls_v_d._d._d._d
push esi
call fcn.0042fd42
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push esi
call fcn.0042fd42
mov eax, dword [0x456f54]
add esp, 0x34
sub eax, ebx
je 0x42ff12
dec eax
je 0x42ff0a
dec eax
je 0x42ff02
dec eax
je 0x42fefa
dec eax
jne 0x42ff18
mov edi, dword [str.debug]
jmp 0x42ff18
mov edi, dword [str.verbose]
jmp 0x42ff18
mov edi, dword [str.standard]
jmp 0x42ff18
mov edi, dword [str.warning]
jmp 0x42ff18
mov edi, dword [str.none]
push edi
push str.____logging_level:__hs____
push esi
call fcn.0042fd42
add esp, 0xc
cmp dword [ebp - 0x418], ebx
pop edi
pop esi
pop ebx
je 0x42ff3d
push dword [ebp - 0x418]
call fcn.00430887
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042854a
leave
ret
Function at 0x4301cb
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
push esi
push 0x44
pop eax
push 1
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xff
call fcn.004328f3
mov dword [ebp - 4], eax
test eax, eax
jne 0x43020c
mov esi, 0x8007000e
push esi
push 0xe3
push str.aclutil.cpp
call fcn.00432f06
jmp 0x430335
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00430777
mov esi, eax
test esi, esi
js 0x430335
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x430326
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x4302f9
cmp dword [ebp - 0x10], 0x44
jbe 0x43029d
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.00432915
test eax, eax
jne 0x43029a
call ebx
test eax, eax
jle 0x430284
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x43028f
mov esi, 0x80004005
push esi
push 0xf3
jmp 0x43031a
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0xff
jbe 0x4302b8
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00430777
mov esi, eax
test esi, esi
js 0x430333
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x430326
call ebx
test eax, eax
jle 0x4302e6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x4302f1
mov esi, 0x80004005
push esi
push 0xff
jmp 0x43031a
test eax, eax
je 0x430326
jle 0x430309
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x430314
mov esi, 0x80004005
push esi
push 0x104
push str.aclutil.cpp
call fcn.00432f06
jmp 0x430333
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [eax], ecx
mov dword [ebp - 4], esi
pop edi
pop ebx
cmp dword [ebp - 8], 0
je 0x430343
push dword [ebp - 8]
call fcn.00430887
cmp dword [ebp - 4], 0
je 0x430351
push dword [ebp - 4]
call fcn.00432aae
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x430358
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x430378
mov esi, 0x80070057
push esi
push 0x1d
jmp 0x4303ce
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x4303da
lea eax, [ebp - 4]
push eax
push ecx
push edi
call fcn.004301cb
mov esi, eax
cmp esi, edi
jl 0x430437
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x43042d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4303c0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x4303cb
mov esi, 0x80004005
push esi
push 0x2f
push str.aclutil.cpp
call fcn.00432f06
jmp 0x430437
lea ecx, [ebp - 4]
push ecx
push dword [eax + 0x30]
movzx ecx, byte [eax + 0x12]
push dword [eax + 0x2c]
add eax, 0xc
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x430394
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x43041d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x430428
mov esi, 0x80004005
push esi
push 0x29
jmp 0x4303ce
xor eax, eax
cmp dword [ebp - 8], edi
sete al
mov esi, eax
cmp dword [ebp - 4], edi
je 0x430445
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x4305e9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004284d0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, ebx
jne 0x43061d
mov eax, 0x43b5f8
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.00431d32
mov edi, eax
add esp, 0x10
cmp edi, ebx
jl 0x43069d
mov ax, word [ebp + 0x10]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x58], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x430692
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x430675
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x430680
mov edi, 0x80004005
push edi
push 0xa6
push str.procutil.cpp
call fcn.00432f06
jmp 0x43069d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
je 0x4306b0
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4306bd
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x4306ca
push dword [ebp - 4]
call fcn.00430887
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x432436
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x4324f9
cmp word [eax], bx
je 0x4324f9
push ebx
push eax
lea eax, [ebp - 4]
push eax
call fcn.00431729
mov esi, eax
cmp esi, ebx
jl 0x43257c
lea eax, [ebp - 4]
push eax
call fcn.004323e1
mov esi, eax
cmp esi, ebx
jl 0x43257c
mov ebx, dword [ebp + 0x14]
xor edi, edi
inc edi
cmp dword [ebp + 0x10], edi
jb 0x432570
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00431d32
mov esi, eax
add esp, 0xc
test esi, esi
js 0x43257c
push dword [ebp - 8]
push dword [ebp - 4]
push str._s_s
push ebx
call fcn.00431d32
mov esi, eax
add esp, 0x10
test esi, esi
js 0x43257c
xor esi, esi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x432570
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x432551
inc edi
mov esi, 0x800700b7
cmp edi, dword [ebp + 0x10]
jbe 0x432491
jmp 0x43257c
mov edi, 0x104
push edi
lea eax, [ebp - 4]
push eax
call fcn.00430777
mov esi, eax
cmp esi, ebx
jl 0x43257c
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x432482
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x432534
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x43253f
mov esi, 0x80004005
push esi
push 0x2cf
push str.pathutil.cpp
call fcn.00432f06
jmp 0x43257c
cmp eax, 3
jne 0x432560
push esi
push dword [ebx]
call fcn.00436be2
jmp 0x43256e
cmp eax, esi
jle 0x43256e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x43257c
push ebx
call fcn.004323e1
mov esi, eax
cmp dword [ebp - 8], 0
je 0x43258a
push dword [ebp - 8]
call fcn.00430887
cmp dword [ebp - 4], 0
je 0x432598
push dword [ebp - 4]
call fcn.00430887
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x43303c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004284d0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4330d2
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x4330a9
push 1
push 0x4522e4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00432ff1
mov edi, eax
test edi, edi
js 0x4330f1
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00432fb4
mov edi, eax
test edi, edi
js 0x4330f1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x4330f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4330e6
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4330f1
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042854a
leave
ret 8
Function at 0x4356d9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push str.kernel32.dll
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, esi
jne 0x43575a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x435717
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x435725
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x8d
push str.xmlutil.cpp
call fcn.00432f06
mov eax, dword [ebp - 0xc]
pop edi
pop esi
test eax, eax
je 0x435746
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x435753
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
leave
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.IsWow64Process
push edi
call esi
test eax, eax
je 0x4357af
push str.Wow64DisableWow64FsRedirection
push edi
call esi
push str.Wow64EnableWow64FsRedirection
push edi
mov ebx, eax
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [ebp - 0x10], eax
call esi
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x43579b
cmp dword [ebp - 0x10], 0
je 0x43579b
test eax, eax
jne 0x4357a1
and dword [ebp - 0x10], 0
jmp 0x4357af
lea eax, [ebp - 0x14]
push eax
call ebx
push 1
call dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 0x43bce0
push 1
push 0
mov ebx, 0x457ef8
push ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
test eax, eax
js 0x43585c
push 0x10
pop ecx
mov edi, 0x43bcd0
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4357e8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435805
push 0x10
pop ecx
mov edi, 0x43bcc0
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x435801
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x43580f
mov dword [0x457f14], 1
cmp dword [ebp + 8], 0
je 0x435840
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0043545a
mov dword [ebp - 4], eax
test eax, eax
js 0x43585c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 0
push dword [ebp - 0xc]
push eax
call dword [ecx + 0x54]
mov dword [ebp - 4], eax
test eax, eax
js 0x43585c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 8], 0
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43585c
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0
pop ebx
je 0x435737
push dword [ebp - 0x14]
call dword [ebp - 0x18]
test eax, eax
jne 0x435737
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x435d92
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], edi
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x435dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435dd2
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x435de2
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x435d9f
jmp 0x435df2
push edi
push 0x34c
push str.fileutil.cpp
call fcn.00432f06
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x435dfa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0042ef60
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push edi
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1008], esi
xor edi, edi
mov ecx, dword [ebp + 0x10]
xor edx, edx
cmp ecx, edx
jne 0x435e4d
cmp dword [ebp + 0x14], edx
jne 0x435e4d
mov dword [ebp - 0x100c], 0x1000
jmp 0x435e7b
mov eax, dword [ebp + 0x14]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x435e6f
ja 0x435e62
cmp ecx, 0x1000
jbe 0x435e6f
mov ecx, 0x1000
mov dword [ebp - 0x100c], edx
jmp 0x435e75
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x100c], ecx
push edx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435f0d
cmp dword [ebp - 0x100c], 0
je 0x435ecb
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.00435d92
mov dword [ebp - 0x1008], eax
test eax, eax
js 0x435ef6
add edi, dword [ebp - 0x100c]
adc esi, 0
cmp esi, dword [ebp + 0x14]
ja 0x435eed
jb 0x435ee0
cmp edi, dword [ebp + 0x10]
jae 0x435eed
cmp dword [ebp - 0x100c], 0
jne 0x435e33
test ebx, ebx
je 0x435ef6
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042854a
leave
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435f21
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1008], eax
test eax, eax
jl 0x435f35
mov dword [ebp - 0x1008], 0x80004005
push dword [ebp - 0x1008]
push 0x36c
push str.fileutil.cpp
call fcn.00432f06
jmp 0x435ef6