joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f3b9
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.004272a0
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 0x42f3ed
mov eax, 0x4395e8
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push str.__ls___ls
push eax
call fcn.00430aad
mov edi, eax
add esp, 0x10
cmp edi, ebx
jl 0x42f46d
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 0x42f462
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42f445
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x42f450
mov edi, 0x80004005
push edi
push 0xa6
push str.procutil.cpp
call fcn.0043166e
jmp 0x42f46d
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 0x42f480
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x42f48d
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 4], ebx
je 0x42f49a
push dword [ebp - 4]
call fcn.0042f657
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4317a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4530d0]
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.004272a0
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 0x43183a
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x431811
push 1
push 0x44f8b4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00431759
mov edi, eax
test edi, edi
js 0x431859
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0043171c
mov edi, eax
test edi, edi
js 0x431859
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x431859
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43184e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x431859
mov edi, 0x80004005
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042731a
leave
ret 8
Function at 0x4343b6
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 0x434437
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4343f4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x434402
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x8d
push str.xmlutil.cpp
call fcn.0043166e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
test eax, eax
je 0x434423
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x434430
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 0x43448c
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 0x434478
cmp dword [ebp - 0x10], 0
je 0x434478
test eax, eax
jne 0x43447e
and dword [ebp - 0x10], 0
jmp 0x43448c
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 0x439cb8
push 1
push 0
mov ebx, 0x454e50
push ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 4], eax
test eax, eax
js 0x434539
push 0x10
pop ecx
mov edi, 0x439ca8
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4344c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4344e2
push 0x10
pop ecx
mov edi, 0x439c98
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4344de
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4344ec
mov dword [0x454e6c], 1
cmp dword [ebp + 8], 0
je 0x43451d
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00434137
mov dword [ebp - 4], eax
test eax, eax
js 0x434539
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 0x434539
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 0x434539
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0
pop ebx
je 0x434414
push dword [ebp - 0x14]
call dword [ebp - 0x18]
test eax, eax
jne 0x434414
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x434a6f
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 0x434ab5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434aaf
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x434abf
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x434a7c
jmp 0x434acf
push edi
push 0x34c
push str.fileutil.cpp
call fcn.0043166e
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x434ad7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0042dd30
mov eax, dword [0x4530d0]
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 0x434b2a
cmp dword [ebp + 0x14], edx
jne 0x434b2a
mov dword [ebp - 0x100c], 0x1000
jmp 0x434b58
mov eax, dword [ebp + 0x14]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x434b4c
ja 0x434b3f
cmp ecx, 0x1000
jbe 0x434b4c
mov ecx, 0x1000
mov dword [ebp - 0x100c], edx
jmp 0x434b52
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 0x434bea
cmp dword [ebp - 0x100c], 0
je 0x434ba8
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1018]
call fcn.00434a6f
mov dword [ebp - 0x1008], eax
test eax, eax
js 0x434bd3
add edi, dword [ebp - 0x100c]
adc esi, 0
cmp esi, dword [ebp + 0x14]
ja 0x434bca
jb 0x434bbd
cmp edi, dword [ebp + 0x10]
jae 0x434bca
cmp dword [ebp - 0x100c], 0
jne 0x434b10
test ebx, ebx
je 0x434bd3
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.0042731a
leave
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434bfe
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1008], eax
test eax, eax
jl 0x434c12
mov dword [ebp - 0x1008], 0x80004005
push dword [ebp - 0x1008]
push 0x36c
push str.fileutil.cpp
call fcn.0043166e
jmp 0x434bd3
Function at 0x434c29
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], esi
sete al
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x434d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x434c70
cmp eax, 0x50
je 0x434c68
cmp eax, 0xb7
jne 0x434c70
xor edi, edi
inc edi
jmp 0x434d02
cmp eax, 3
jne 0x434cf2
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x434ceb
cmp ax, 0x5c
jne 0x434c87
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x434c7f
test esi, esi
je 0x434ceb
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.004358e5
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x434d02
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x434d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434cd3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x434d02
push edi
push 0x3b1
push str.fileutil.cpp
call fcn.0043166e
jmp 0x434d02
mov edi, 0x80070003
jmp 0x434d02
cmp eax, esi
jle 0x434d00
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x434d5c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x434d76
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x434d7f
or dword [ebp - 4], 2
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x434e48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x434db6
cmp eax, 0x50
je 0x434dae
cmp eax, 0xb7
jne 0x434db6
xor edi, edi
inc edi
jmp 0x434e48
cmp eax, 3
jne 0x434e38
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x434e31
cmp ax, 0x5c
jne 0x434dcd
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x434dc5
test esi, esi
je 0x434e31
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.004358e5
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x434e48
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x434e48
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434e19
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x434e48
push edi
push 0x424
push str.fileutil.cpp
call fcn.0043166e
jmp 0x434e48
mov edi, 0x80070003
jmp 0x434e48
cmp eax, esi
jle 0x434e46
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x434eaa
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.004349fc
test eax, eax
je 0x434f38
test byte [ebp - 4], 7
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
je 0x434f05
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x434f05
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434ef7
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x434f05
push ebx
push 0x519
jmp 0x434f2c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x434f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434f20
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x434f36
push ebx
push 0x51f
push str.fileutil.cpp
call fcn.0043166e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x434f65
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x434fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434fa4
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x434fbf
push esi
push 0x118
push str.fileutil.cpp
call fcn.0043166e
jmp 0x435068
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x434fde
mov esi, 0x8007000e
push esi
push 0x11c
jmp 0x434fb0
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x43500d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434fff
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x43500d
push esi
push 0x120
jmp 0x435040
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44f8b4
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x43504c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435034
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x43504c
push esi
push 0x125
push str.fileutil.cpp
call fcn.0043166e
jmp 0x43505f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x435683
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004272a0
add esp, 0xc
cmp dword [0x454e74], 0
jne 0x435790
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 0xa]
shl eax, 0x10
or eax, ecx
cmp dword [ebp - 0x11c], 4
mov dword [0x454e78], eax
jne 0x435702
mov dword [0x454e74], 1
jmp 0x435790
cmp dword [ebp - 0x11c], 5
jne 0x43574f
cmp dword [ebp - 0x118], 0
jne 0x435720
mov dword [0x454e74], 2
jmp 0x435790
cmp dword [ebp - 0x118], 1
jne 0x435735
mov dword [0x454e74], 3
jmp 0x435790
xor eax, eax
cmp dword [ebp - 0x118], 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
mov dword [0x454e74], eax
jmp 0x435790
cmp dword [ebp - 0x11c], 6
jne 0x435786
cmp dword [ebp - 0x118], 0
jne 0x43576f
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x435748
cmp dword [ebp - 0x118], 1
jne 0x435786
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x435748
mov dword [0x454e74], 9
mov eax, dword [0x454e74]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [0x454e78]
pop edi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.0042731a
leave
ret 8

Function at 0x43582b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call fcn.004357ae
cmp dword [ebp - 0x14], ebx
je 0x435867
mov dword [esi], 1
jmp 0x43589b
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
cmp eax, ebx
je 0x43589b
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x43589b
mov dword [esi], ebx
cmp dword [ebp - 0x10], ebx
pop esi
pop ebx
je 0x4358aa
push dword [ebp - 0x10]
call fcn.0042f657
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042731a
leave
ret 4

Function at 0x4358ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4358de
test al, 0x10
je 0x4358de
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4358db
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4358e5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4359ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4359ad
cmp eax, 3
je 0x435926
push edi
push ebx
call fcn.004358ba
test eax, eax
jne 0x4359ad
movzx eax, word [ebx]
push esi
xor esi, esi
mov ecx, ebx
test ax, ax
je 0x43594a
cmp ax, 0x5c
jne 0x43593b
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x435933
test esi, esi
jne 0x43595e
mov edi, 0x80070003
push edi
push 0x7a
push str.dirutil.cpp
call fcn.0043166e
jmp 0x4359ac
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.004358e5
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x4359ac
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4359aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x435998
xor edi, edi
inc edi
jmp 0x4359ac
test eax, eax
jle 0x4359a6
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x4359ac
xor edi, edi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x436ab8
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x436b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436af5
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jns 0x436b0a
push esi
push 0x20
push str.inetutil.cpp
call fcn.0043166e
jmp 0x436b16
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x436d5c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2470
call fcn.0042dd30
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x241c], 0
mov dword [ebp - 0x2434], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2430], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x2428], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2424], eax
mov eax, dword [ebp + 0x20]
push 0x3c
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x24]
pop esi
push esi
mov dword [ebp - 0x2420], eax
lea eax, [ebp - 0x2470]
push 0
push eax
call fcn.004272a0
mov dword [ebp - 0x2470], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x436df0
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2460], eax
mov dword [ebp - 0x245c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x2428], esi
je 0x436e0f
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x2454], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2424], esi
je 0x436e29
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2448], eax
mov eax, 0x801
cmp dword [ebp - 0x242c], esi
je 0x436e48
lea ecx, [ebp - 0x1414]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2440], eax
cmp dword [ebp - 0x2420], esi
je 0x436e62
lea ecx, [ebp - 0x2418]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x2470]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2434]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x436ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x436e93
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x436ea7
mov dword [ebp - 0x241c], 0x80004005
push dword [ebp - 0x241c]
push 0x5e
push str.uriutil.cpp
call fcn.0043166e
jmp 0x436fa2
cmp ebx, esi
je 0x436eca
mov eax, dword [ebp - 0x2464]
mov dword [ebx], eax
cmp edi, esi
je 0x436eee
push dword [ebp - 0x245c]
push dword [ebp - 0x2460]
push edi
call fcn.004304a4
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x436fa2
mov eax, dword [ebp - 0x2430]
cmp eax, esi
je 0x436f02
mov cx, word [ebp - 0x2458]
mov word [eax], cx
cmp dword [ebp - 0x2428], esi
je 0x436f2b
push dword [ebp - 0x2450]
push dword [ebp - 0x2454]
push dword [ebp - 0x2428]
call fcn.004304a4
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x436fa2
cmp dword [ebp - 0x2424], esi
je 0x436f54
push dword [ebp - 0x2448]
push dword [ebp - 0x244c]
push dword [ebp - 0x2424]
call fcn.004304a4
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x436fa2
cmp dword [ebp - 0x242c], esi
je 0x436f7d
push dword [ebp - 0x2440]
push dword [ebp - 0x2444]
push dword [ebp - 0x242c]
call fcn.004304a4
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x436fa2
cmp dword [ebp - 0x2420], esi
je 0x436fa2
push dword [ebp - 0x2438]
push dword [ebp - 0x243c]
push dword [ebp - 0x2420]
call fcn.004304a4
mov dword [ebp - 0x241c], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x241c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042731a
leave
ret 0x20