joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44445c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
sete al
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x444543
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x4444a2
cmp eax, 0x50
je 0x44449a
cmp eax, 0xb7
jne 0x4444a2
xor esi, esi
inc esi
jmp 0x444543
cmp eax, 3
jne 0x444532
movzx eax, word [edi]
mov ebx, esi
mov ecx, edi
test ax, ax
je 0x44452b
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x4444c3
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4444bc
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x44452b
push esi
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040419a
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x444543
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x444543
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444517
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444543
push esi
push 0x454
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x444543
mov esi, 0x80070003
jmp 0x444543
test eax, eax
jg 0x44453a
mov esi, eax
jmp 0x444543
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x44459d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call fcn.0044488b
test eax, eax
je 0x444626
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x4445f3
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4445f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4445e9
movzx esi, si
or esi, ebx
test esi, esi
jns 0x4445f3
push esi
push 0x5c4
jmp 0x44461b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x444625
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444613
movzx esi, si
or esi, ebx
test esi, esi
jns 0x444625
push esi
push 0x5ca
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x44462d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], ebx
setne bl
cmp dword [ebp + 0x14], esi
je 0x444644
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x444741
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x44467c
cmp edi, 0x50
je 0x444674
cmp edi, 0xb7
jne 0x44467c
xor esi, esi
inc esi
jmp 0x444740
cmp edi, 2
jne 0x444695
push esi
push dword [ebp + 8]
call fcn.0044488b
test eax, eax
je 0x444737
push 3
pop edi
cmp edi, 3
jne 0x44472f
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov edx, edi
movzx eax, word [edi]
test ax, ax
je 0x444728
push 0x5c
mov edi, eax
pop esi
cmp di, si
jne 0x4446b9
mov ecx, edx
add edx, 2
movzx eax, word [edx]
mov edi, eax
test ax, ax
jne 0x4446b2
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
push 0
pop esi
test ecx, ecx
je 0x444728
push esi
xor eax, eax
push edi
mov word [ecx], ax
call fcn.0040419a
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
js 0x444740
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x444740
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444714
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444740
push esi
push 0x4d4
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x444740
mov esi, 0x80070003
jmp 0x444740
test edi, edi
jg 0x444737
mov esi, edi
jmp 0x444740
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x44491a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jne 0x44494b
mov eax, 0x80070057
push eax
push 0x347
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
mov esi, eax
call fcn.004038f5
jmp 0x444bcf
cmp dword [ebp + 8], edi
jne 0x44495d
mov eax, 0x80070057
push eax
push 0x348
jmp 0x44493a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x444971
mov eax, 0x80070057
push eax
push 0x349
jmp 0x44493a
xor ecx, ecx
cmp cx, word [eax]
jne 0x444985
mov eax, 0x80070057
push eax
push 0x34a
jmp 0x44493a
push ebx
push edi
push 0x8000080
push 3
push edi
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
jne 0x4449f8
call ebx
movzx ecx, ax
mov edx, eax
or ecx, 0x80070000
test eax, eax
jle 0x4449c0
mov edx, ecx
mov esi, 0x80070002
cmp edx, esi
je 0x444bce
test eax, eax
je 0x4449f5
mov esi, eax
jle 0x4449d7
mov esi, ecx
test esi, esi
js 0x4449e0
mov esi, 0x80004005
push esi
push 0x354
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x444bce
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x444a36
call ebx
mov esi, eax
test esi, esi
jle 0x444a1a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x444a21
mov esi, 0x80004005
push esi
push 0x359
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x444bbf
cmp dword [ebp + 0x14], edi
je 0x444a83
mov edi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp - 8]
jl 0x444a56
jg 0x444a4c
cmp edi, dword [ebp - 0xc]
jbe 0x444a56
mov esi, 0x80070057
jmp 0x444bbf
push 1
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x444a83
call ebx
mov esi, eax
test esi, esi
jle 0x444a79
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444a83
push esi
push 0x367
jmp 0x444a27
cmp dword [ebp + 0x20], 0
je 0x444aaf
mov ebx, dword [ebp + 0x1c]
xor edi, edi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x444afd
test ebx, ebx
jne 0x444adb
push dword [esi]
call fcn.00403adf
mov dword [esi], edi
mov eax, dword [ebp + 0xc]
mov esi, edi
mov dword [eax], edi
jmp 0x444bbf
mov ecx, dword [ebp - 0xc]
mov ebx, ecx
mov eax, dword [ebp - 8]
sub ebx, edi
sub ecx, edi
push 0
pop edi
sbb eax, edi
cmp edi, eax
jg 0x444a8e
invalid
Function at 0x444ea2
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
push edi
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x444efd
call ebx
mov esi, eax
test esi, esi
jle 0x444ee6
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444efd
push esi
push 0x115
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x444fa1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x444f19
mov esi, 0x8007000e
push esi
push 0x119
jmp 0x444eee
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x444f53
call ebx
mov esi, eax
test esi, esi
jle 0x444f3f
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444f53
push esi
push 0x11d
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x444f9a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x44b7fc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x444f87
call ebx
mov esi, eax
test esi, esi
jle 0x444f7d
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444f87
push esi
push 0x122
jmp 0x444f47
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x445269
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
push edi
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4452b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4452ae
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4452ba
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x44527a
jmp 0x4452ca
push esi
push 0x3ef
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4461b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str._ls.R
push edi
call fcn.0040204d
mov esi, eax
add esp, 0xc
test esi, esi
js 0x4462c4
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x446242
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x446226
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44622d
mov esi, 0x80004005
push esi
push 0xc1
push str.c:_agent_work138_s_srclibsdutildlutil.cpp
call fcn.004038f5
jmp 0x4462c4
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44628a
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x446274
cmp ecx, 8
jb 0x446245
cmp ecx, 8
je 0x446280
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x4462b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4462a1
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4462a8
mov esi, 0x80004005
push esi
push 0xc8
push str.c:_agent_work138_s_srclibsdutildlutil.cpp
call fcn.004038f5
cmp edi, 0xffffffff
je 0x4462c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x44675d
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.00444d47
mov esi, eax
test esi, esi
js 0x4468b3
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x446884
cmp dword [ebp - 4], 0
je 0x4468b2
xor ebx, ebx
and dword [ebp + 0x10], ebx
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44685e
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x4467e2
cmp ebx, dword [ebp - 4]
jb 0x4467b1
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x44682c
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.00444d47
test eax, eax
js 0x44682c
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x44682c
cmp ebx, 8
jb 0x446805
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x446852
cmp dword [eax], 0
je 0x446852
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00446096
mov esi, eax
test esi, esi
js 0x4468b2
cmp dword [ebp - 4], 0
jne 0x446787
jmp 0x4468b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x446875
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44687c
mov esi, 0x80004005
push esi
push 0x1a6
jmp 0x4468a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44689b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4468a2
mov esi, 0x80004005
push esi
push 0x19a
push str.c:_agent_work138_s_srclibsdutildlutil.cpp
call fcn.004038f5
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x24
Function at 0x4468bb
Capabilities:
Create http request
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or dword [ebp - 0xc], 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push dword [ebx]
mov dword [ebp - 8], eax
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
call fcn.004022c9
mov esi, eax
test esi, esi
js 0x446a23
xor eax, eax
push eax
push eax
push eax
push eax
push str.Burn
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x44694a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44692e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x446935
mov esi, 0x80004005
push esi
push 0x84
push str.c:_agent_work138_s_srclibsdutildlutil.cpp
call fcn.004038f5
jmp 0x446a23
lea eax, [ebp - 4]
push eax
push 0x78
push str.DownloadTimeout
push str.WiXBurn
call fcn.00445c10
mov eax, dword [ebp - 4]
test eax, eax
je 0x446996
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 2
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 5
push edi
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.0044610f
mov esi, eax
test esi, esi
js 0x446a23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
call fcn.004461b8
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.00445e6c
mov esi, eax
test esi, esi
js 0x446a14
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x446a14
xor ecx, ecx
cmp word [eax], cx
je 0x446a14
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0xc], 0xffffffff
je 0x446a23
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x446a30
push eax
call fcn.0040278d
test edi, edi
je 0x446a3b
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], 0
je 0x446a49
push dword [ebp - 8]
call fcn.0040278d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x448dda
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x448e2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x448e1b
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x448e2c
push esi
push 0x18
push str.c:_agent_work138_s_srclibsdutilinetutil.cpp
call fcn.004038f5
jmp 0x448e38
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [edx + 4], 0
mov dword [edx], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x448f6f
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x246c
call fcn.0044a320
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2428], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x241c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x2430], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x2420], eax
mov eax, dword [ebp + 0x1c]
push 0x3c
mov dword [ebp - 0x2424], eax
lea eax, [ebp - 0x246c]
push esi
push eax
call fcn.0042f710
add esp, 0xc
mov dword [ebp - 0x246c], 0x3c
cmp dword [ebp - 0x241c], esi
je 0x449001
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2458], 0x101
mov dword [ebp - 0x245c], eax
mov ecx, 0x81
cmp dword [ebp - 0x2420], esi
je 0x449020
lea eax, [ebp - 0x108]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2424], esi
je 0x44903a
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2448], eax
mov ecx, 0x801
test ebx, ebx
je 0x449055
lea eax, [ebp - 0x1414]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2440], eax
test edi, edi
je 0x44906b
lea eax, [ebp - 0x2418]
mov dword [ebp - 0x2434], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x246c]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2428]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4490b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44909f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4490a6
mov esi, 0x80004005
push esi
push 0x56
push str.c:_agent_work138_s_srclibsdutiluriutil.cpp
call fcn.004038f5
jmp 0x44917c
mov ecx, dword [ebp - 0x242c]
test ecx, ecx
je 0x4490ca
mov eax, dword [ebp - 0x2460]
mov dword [ecx], eax
mov eax, dword [ebp - 0x241c]
test eax, eax
je 0x4490f0
push dword [ebp - 0x2458]
push dword [ebp - 0x245c]
push eax
call fcn.004022c9
mov esi, eax
test esi, esi
js 0x44917c
mov eax, dword [ebp - 0x2430]
test eax, eax
je 0x449104
mov cx, word [ebp - 0x2454]
mov word [eax], cx
mov eax, dword [ebp - 0x2420]
test eax, eax
je 0x449126
push dword [ebp - 0x244c]
push dword [ebp - 0x2450]
push eax
call fcn.004022c9
mov esi, eax
test esi, esi
js 0x44917c
mov eax, dword [ebp - 0x2424]
test eax, eax
je 0x449148
push dword [ebp - 0x2444]
push dword [ebp - 0x2448]
push eax
call fcn.004022c9
mov esi, eax
test esi, esi
js 0x44917c
test ebx, ebx
je 0x449164
push dword [ebp - 0x243c]
push dword [ebp - 0x2440]
push ebx
call fcn.004022c9
mov esi, eax
test esi, esi
js 0x44917c
test edi, edi
je 0x44917c
push dword [ebp - 0x2434]
push dword [ebp - 0x2438]
push edi
call fcn.004022c9
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042de30
leave
ret 0x20
Function at 0x403130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x403140
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x403150
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x403710
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
mov ecx, dword [edi]
or edx, 0x2001f
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.004036a0
mov ebp, eax
cmp ebp, esi
je 0x403774
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40376d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x40380d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
jne 0x4037da
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00403710
mov ebp, eax
cmp ebp, esi
jne 0x40375e
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
push esi
push ecx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
je 0x4037a0
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x4037ef
push eax
call ebp
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 0x18], esi
call fcn.00403890
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40380b
push eax
call ebp
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00548a41
add esp, 0x228
ret 4
Function at 0x4043e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x5b2ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6216ec]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
xor esi, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0x40445f
call fcn.00402970
mov esi, eax
jmp 0x404554
mov eax, dword [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x40447b
call fcn.00402970
jmp 0x40454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x404494
call fcn.00402970
jmp 0x40454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jae 0x4044b2
mov esi, 0x8007000e
jmp 0x40454d
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x4044c7
cmp eax, 0xffffffff
jbe 0x4044d1
push 0x80070216
call fcn.00404db0
cmp eax, 0x400
jbe 0x4044fa
lea ecx, [ebp]
push ecx
call fcn.00403110
jmp 0x404500
lea edx, [ebp + 4]
mov dword [ebp], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp]
cmp eax, esi
jne 0x404515
mov esi, 0x8007000e
jmp 0x40454d
push ebx
push eax
mov eax, dword [ebp - 0x18]
push ebx
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
jne 0x404530
call fcn.00402970
jmp 0x40454b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea esi, [ebp - 0x24]
call fcn.00404250
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x404564
lea eax, [ebp]
call fcn.004030f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00548a41
lea esp, [ebp + 0x408]
pop ebp
ret 0xc