joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404728
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x40e45c
call fcn.00407fb8
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.004046ea
mov edi, eax
cmp edi, esi
je 0x404772
cmp dword [ebp - 0x10], esi
je 0x40476b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40480f
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4047e3
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.00404728
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x4047d0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x404795
cmp dword [ebp - 0x10], esi
je 0x4047de
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x40480f
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4047f6
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x40480d
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x404820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004081c0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.00403e72
xor edi, edi
cmp eax, edi
jl 0x4049d8
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.004049e5
pop ecx
test eax, eax
pop ecx
jne 0x40486b
mov eax, 0x80020009
jmp 0x4049d8
mov ecx, esi
call fcn.00403e4a
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00403e72
cmp eax, edi
jl 0x4049d8
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x4049a0
sub eax, 9
je 0x404905
dec eax
dec eax
jne 0x4049c7
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x4048b0
xor ebx, ebx
jmp 0x4048e5
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004081c0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x4049b8
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x404941
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.004081c0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.004086c0
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x40494b
mov eax, 0x80004005
jmp 0x4049d8
cmp dword [ebp - 8], 0
jle 0x404985
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.00404a6c
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x404951
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x4049c7
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00403e72
cmp eax, edi
jl 0x4049d8
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4062b7
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
xor eax, eax
push edi
mov esi, ecx
push eax
push eax
push eax
or dword [esi], 0xffffffff
mov dword [esi + 4], eax
mov byte [0x41564c], al
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
call fcn.00407573
mov edi, dword [sym.imp.WSOCK32.dll_WSAStartup]
lea eax, [ebp - 0x190]
push eax
push 0x202
call edi
test eax, eax
je 0x406335
mov ebx, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call ebx
push eax
push str.WSAStartup___failed_with_V2.2__error_code___d_
call fcn.004075da
pop ecx
lea eax, [ebp - 0x190]
pop ecx
push eax
push 0x101
call edi
test eax, eax
je 0x406335
call ebx
push eax
push str.WSAStartup___failed_with_V1.1__error_code___d_
call fcn.004075da
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40637d
Capabilities:
Create thread

Disassembly:
mov eax, 0x40e600
call fcn.00407fb8
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4063a2
push eax
call edi
or dword [esi], 0xffffffff
xor ebx, ebx
push 1
push ebx
push ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4063d4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Could_not_create_server_socket__code___d_
call fcn.004075da
pop ecx
xor eax, eax
pop ecx
jmp 0x4064bf
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x2c], 2
mov dword [ebp - 0x28], ebx
call fcn.00401000
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0040106f
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x40642d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.bind___failed_with_error_code__d.
call fcn.004075da
pop ecx
pop ecx
push dword [esi]
call edi
or dword [esi], 0xffffffff
jmp 0x4064b1
push SysReAllocString
push dword [esi]
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
jne 0x40644d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.listen___failed_with_error_code:__d_
jmp 0x40641a
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0x406504
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x406473
push str.Could_not_create_accept_worker_thread__n
call fcn.004075da
jmp 0x406420
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x406483
push eax
call edi
push str.55AED6E0_55FD_4D0C_9FF1_1EC499255701
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x40790b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4064ae
push eax
call edi
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040105b
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40679e
Capabilities:
Delete file
Write file on windows

Disassembly:
mov eax, 0x40e62b
call fcn.00407fb8
sub esp, 0x324
cmp dword [ebp + 0xc], 0xffffffff
push edi
push 1
pop edi
jne 0x4067bf
xor eax, eax
jmp 0x406963
push ebx
push esi
xor esi, esi
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00408140
cmp eax, edi
pop ecx
jae 0x4067e3
mov esi, edi
jmp 0x406959
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push dword [ebp + 8]
call fcn.00409193
lea eax, [ebp - 0x330]
push 0x104
push eax
call fcn.00406772
push dword [ebp + 0x14]
lea eax, [ebp - 0x128]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.00407849
add esp, 0x30
test al, al
je 0x406959
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406866
push dword [ebp + 0x10]
push str.Could_not_create_file__s__so_RecvFileData___failed__n
call fcn.004075da
pop ecx
pop ecx
jmp 0x406959
mov eax, 0x8000
mov dword [ebp + 8], esi
push eax
mov dword [ebp - 0x20], eax
call fcn.00408ee5
cmp eax, esi
pop ecx
mov dword [ebp - 0x10], eax
jne 0x40688b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406959
mov dword [ebp + 0x14], 1
cmp dword [ebp + 8], edi
jge 0x406926
lea eax, [ebp - 0x1c]
push 9
push eax
push dword [ebp + 0xc]
call fcn.004074ab
add esp, 0xc
cmp eax, esi
je 0x406926
jl 0x406910
mov eax, dword [ebp - 0x1b]
cmp eax, 9
jle 0x406910
cmp byte [ebp - 0x1c], 3
jb 0x406910
cmp byte [ebp - 0x1c], 4
ja 0x406910
lea edi, [eax - 9]
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00407529
push edi
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.004074ab
add esp, 0x18
cmp eax, edi
jl 0x406902
lea ecx, [ebp - 0x24]
add dword [ebp + 8], eax
mov edi, dword [ebp - 0x17]
push esi
push ecx
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x406892
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.received_bytes_is_less_than_expected_bytes__error_code__0x_x
jmp 0x40691c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.RecvFileData:_received_invalid_packet__error_code__0x_x
call fcn.004075da
pop ecx
mov dword [ebp + 0x14], esi
pop ecx
push dword [ebp - 0x10]
call fcn.00408718
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], esi
je 0x406945
cmp dword [ebp + 8], esi
je 0x406945
push 1
pop esi
jmp 0x406959
push str.RecvFileData:_Received_invalid_packet__or_received_0_bytes._n
call fcn.004075da
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x406a3a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, 0x415558
push 0x4128ac
mov ecx, esi
call fcn.0040161b
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x406a95
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jle 0x406a95
push dword [ebp + 0x10]
call fcn.00406b58
test eax, eax
pop ecx
jne 0x406a95
push 0x412888
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x1c]
push 0x412868
mov dword [ecx], eax
mov ecx, esi
call fcn.0040161b
xor eax, eax
jmp 0x406b52
push edi
push 0x30
call fcn.00408781
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
pop ecx
push dword [ebp + 8]
mov esi, eax
mov dword [esi + 0x18], 1
call edi
push dword [ebp + 0x10]
mov dword [esi], eax
movzx eax, word [ebp + 0xc]
mov dword [esi + 4], eax
call edi
push dword [ebp + 0x14]
mov dword [esi + 8], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [ebp + 0x18]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call edi
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x20]
cmp eax, ebx
jle 0x406af8
mov dword [esi + 0x2c], eax
jmp 0x406afc
or dword [esi + 0x2c], 0xffffffff
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x406c85
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
push esi
mov dword [ecx], eax
call fcn.00407fd7
cmp edi, ebx
pop ecx
jne 0x406b40
push 0x41284c
jmp 0x406b45
push 0x412840
mov ecx, 0x415558
call fcn.0040161b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x406bc7
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x406bf6
push str.Could_not_create_socket__so_ConnectTo___failed_
call fcn.004075da
jmp 0x406c3b
push dword [ebp + 0xc]
mov word [ebp - 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
push dword [ebp + 8]
mov word [ebp - 0xe], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x406c56
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x406c40
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
push dword [ebp + 8]
push str.Could_not_resolve_address__s_
call fcn.004075da
pop ecx
pop ecx
mov eax, edi
jmp 0x406c81
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call fcn.00408380
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x406c7f
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
push dword [ebp + 8]
mov esi, edi
push str.Could_not_connect_to__s_
call fcn.004075da
pop ecx
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40735c
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
je 0x4073bc
cmp byte [eax], bl
je 0x4073bc
push edi
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407396
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
jbe 0x4073bc
push dword [esp + 0x14]
shr esi, 0xa
push dword [esp + 0x14]
inc esi
push esi
push 0x412ad8
call fcn.004075da
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x4073bf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004081c0
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40740e
cmp byte [eax], bl
je 0x40740e
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x407413
push dword [ebp + 0x14]
push 0x14b
push eax
push ebx
push dword [ebp + 0x10]
call fcn.0040778d
add esp, 0x14
xor eax, eax
pop ebx
leave
ret
push esi
push edi
push ebx
push eax
mov byte [ebp - 0x4010], 3
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
xor esi, esi
mov edi, 0x4000
cmp esi, ebx
jne 0x407494
lea eax, [ebp + 0x14]
push ebx
push eax
lea eax, [ebp - 0x4007]
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x4074a6
mov eax, dword [ebp + 0x14]
cmp eax, edi
jae 0x40745d
mov dword [ebp + 8], 1
cmp eax, ebx
jbe 0x40748f
lea esi, [eax + 9]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x400b], eax
lea eax, [ebp - 0x4010]
push esi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x400f], esi
call fcn.004074e6
add esp, 0xc
xor ecx, ecx
cmp eax, esi
setne cl
mov esi, ecx
cmp dword [ebp + 8], ebx
je 0x407431
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
jmp 0x407410
push 1
pop esi
jmp 0x40748f

Function at 0x4074ab
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x4074e4
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x4074d3
add esi, eax
sub edi, eax
test edi, edi
jle 0x4074dd
test eax, eax
jg 0x4074be
test edi, edi
pop edi
pop esi
jne 0x4074e4
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x4074e6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x40751f
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jle 0x40750e
add esi, eax
sub edi, eax
test edi, edi
jle 0x407518
test eax, eax
jg 0x4074f9
test edi, edi
pop edi
pop esi
jne 0x40751f
mov eax, dword [ebp + 0x10]
pop ebp
ret
Function at 0x4075da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push esi
lea eax, [ebp + 0xc]
push edi
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
call fcn.00409307
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x330]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
lea eax, [ebp - 0x12c]
push str._02d:_02d:_02d____s_r_n
push eax
call fcn.004090b7
movzx eax, word [ebp - 0xa]
add esp, 0x18
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x434]
push str.TransRpt__04d_02d_02d.log
push eax
call fcn.004090b7
add esp, 0x14
cmp byte [0x415750], 0x5c
mov esi, 0x415750
je 0x407667
push esi
call dword [sym.imp.IMAGEHLP.dll_MakeSureDirectoryPathExists]
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00408050
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00408060
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
lea eax, [ebp - 0x230]
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4076f6
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00408140
pop ecx
push eax
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
leave
ret
Function at 0x40cb56
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x414fa0
cmp edx, dword [eax]
je 0x40cb78
add eax, 8
inc ecx
cmp eax, 0x415030
jl 0x40cb69
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x414fa0]
jne 0x40cca6
mov eax, dword [0x415870]
cmp eax, 1
je 0x40cc80
test eax, eax
jne 0x40cba9
cmp dword [0x412ba4], 1
je 0x40cc80
cmp edx, 0xfc
je 0x40cca6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cbe0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408050
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408140
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40cc23
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408140
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40fad4
push edi
call fcn.0040c260
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408050
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408060
lea eax, [ebp - 0xa0]
push 0x40fab4
push eax
call fcn.00408060
push dword [esi + 0x414fa4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408060
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d957
add esp, 0x2c
pop edi
jmp 0x40cca6
lea eax, [ebp + 8]
lea esi, [esi + 0x414fa4]
push 0
push eax
push dword [esi]
call fcn.00408140
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401f49
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42d040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x48f548]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x401fb9
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004028d3
lea ecx, [esp + 0x1c]
call fcn.00401d79
cmp eax, dword [esp + 0x10]
je 0x401fd0
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403198
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x401f89
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ca2
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403b38
push eax
call fcn.00403b06
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403198
jmp 0x401fbb

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

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48f548], eax
pop edi
pop esi
ret

Function at 0x407a6d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407aac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407aac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407aac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407aac
cmp dword [ecx + 0x74], 0xe
jbe 0x407aac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41612c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427050
push 0x427048
push str.FlsAlloc
push 0x1e
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416160
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
jmp 0x416166
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4161aa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427060
push 0x427058
push str.FlsGetValue
push 0x20
call fcn.00416015
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4161e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416f76
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416c18

Function at 0x416f81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416da7