joyce8/EMBER2024-capa huggingface dataset:
Function at 0x530ce0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x530cfd.4
jmp dword [eax*4 + 0x530efc]
lea eax, [edi + 0x15c]
push eax
call fcn.005303d0
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x530d39
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.00516e00
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.00530430
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00530410
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x530e6f
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.004f960d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.00530430
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00530410
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x530e6f
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.004f960d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00516e00
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x530e4b
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x530ed5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.00524830
push eax
push 0x5f1f24
push ebx
call fcn.00516d60
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.00530430
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00530410
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x5f1f24
push ebx
call fcn.00516d60
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5313c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x5313d2
jmp dword [edx*4 + 0x531428]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00530f10
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00530ce0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.005315d0
push str.TFTP_finished
push 0x6514fc
push eax
call fcn.00516e00
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x5f1f24
push eax
call fcn.00516d60
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x532ec0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x673114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax]
or ebx, 0xffffffff
mov edi, dword [eax + 0x134]
push 1
push 0
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
call fcn.00522fe0
mov ecx, eax
add esp, 0xc
test ecx, ecx
js 0x532f35
nop
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push edi
call fcn.0052e1c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x532fe9
test eax, eax
jne 0x532f59
push 1
push eax
push esi
call fcn.00522fe0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x532f00
push str.Timeout_while_waiting_for_server_connect
push esi
call fcn.00516d60
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474d9e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x532f84
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00522ce0
add esp, 8
cmp ebx, 0xffffffff
jne 0x532fba
push str.Error_accept__ing_server_connect
push esi
call fcn.00516d60
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474d9e
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push esi
call fcn.00516e00
push 1
push ebx
mov dword [edi + 0x134], ebx
call fcn.0053a440
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474d9e
mov esp, ebp
pop ebp
ret
push str.Error_while_waiting_for_server_connect
push esi
call fcn.00516d60
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x1e
pop edi
pop esi
pop ebx
call fcn.00474d9e
mov esp, ebp
pop ebp
ret

Function at 0x5352b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x5352df
push str.Couldnt_set_desired_mode
push edx
call fcn.00516d60
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x5352f6
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.00516e00
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x53530d
push edi
call fcn.00534df0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x535321
push edi
call fcn.005348e0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x535335
push edi
call fcn.00534d50
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x535345
push edi
call fcn.00534dd0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x5384a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x673114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.005129a0
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x538504
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x538504
lea eax, [ebp - 0x108]
push eax
call dword [0x67402c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00474d9e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00474d9e
mov esp, ebp
pop ebp
ret

Function at 0x538520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005384a0
Function at 0x53b6b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x53c360
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x674020]
mov edi, eax
add esp, 4
test edi, edi
jne 0x53c38d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x53c3d4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x53c3da
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x53c43b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x53c400
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x53c467
mov eax, dword [esi + 4]
push 1
push 0x65736c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x65736d
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x53c440
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x53c490
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x53c4c3
push 0x2e
push edi
call fcn.004f1f20
add esp, 8
test eax, eax
je 0x53c4c1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4016b9
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x41200c
call fcn.0040bb78
sub esp, 0x5c
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
call fcn.0040948e
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esp], 0x414510
lea ecx, [ebp - 0x4c]
push 0x414508
push ecx
call fcn.004091a1
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.004019f6
push 0x4182d0
lea ecx, [ebp - 0x30]
call fcn.00401896
lea eax, [ebp - 0x30]
lea esi, [ebp - 0x4c]
call fcn.00409213
mov bl, al
neg bl
push edi
sbb bl, bl
push 1
lea ecx, [ebp - 0x30]
inc bl
call fcn.004019f6
test bl, bl
je 0x401736
xor bl, bl
jmp 0x40183e
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [0x4183d4]
mov dword [eax + 0x75], ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [0x4182c4]
mov dword [eax + 0x79], ecx
xor eax, eax
mov al, byte [0x4183d8]
push eax
mov eax, dword [esi]
call fcn.00404d7d
lea edi, [ebp - 0x14]
call fcn.00404a01
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
mov ecx, dword [esi]
push eax
call fcn.00404da9
mov ecx, dword [esi]
lea eax, [ebp - 0x14]
call fcn.00404e37
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
mov ebx, dword [esi]
push eax
call fcn.00404e7e
xor ebx, ebx
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 8]
call fcn.00403668
lea eax, [ebp - 0x24]
lea edi, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00403759
test al, al
jne 0x4017cd
push dword [0x417d20]
call fcn.00409356
pop ecx
jmp 0x401826
mov edi, dword [ebp + 0xc]
mov eax, edi
call fcn.004091f3
test al, al
je 0x4017f0
cmp dword [edi + 0x18], 0x10
jb 0x4017e6
mov eax, dword [edi + 4]
jmp 0x4017e9
lea eax, [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
cmp dword [edi + 0x18], 0x10
jb 0x4017fb
mov eax, dword [edi + 4]
jmp 0x4017fe
lea eax, [edi + 4]
cmp dword [ebp - 0x34], 0x10
mov ecx, dword [ebp - 0x48]
jae 0x40180a
lea ecx, [ebp - 0x48]
push eax
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
test eax, eax
je 0x401826
mov ecx, dword [esi]
push 0xffffffffffffffff
push ebx
push edi
add ecx, 4
call fcn.004018f9
mov bl, 1
lea eax, [ebp + 8]
call fcn.00403847
lea esi, [ebp - 0x24]
call fcn.00403301
lea eax, [ebp - 0x14]
call fcn.00404b16
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004019f6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x402a0c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x411f32
call fcn.0040bb78
sub esp, 0x1c
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x18]
push edi
lea edx, [ebp - 0x28]
call fcn.00403275
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx]
push edi
push 0x44b
mov dword [ebp - 0x10], esi
push dword [eax + 4]
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [ebx]
push 0xa
push edi
push edi
push esi
push 0x414560
push dword [eax]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea esi, [ebp - 0x28]
call fcn.00403301
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x403ca6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push dword [0x417d58]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d36
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push edi
push 0x4145dc
push dword [ebp - 8]
mov dword [ebp - 4], 0x20
call esi
test eax, eax
mov ecx, dword [ebp + 8]
je 0x403cff
push dword [0x417d08]
jmp 0x403d03
lea eax, [ebp - 0x28]
push eax
call fcn.00401988
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push 0x4145d0
push dword [ebp - 8]
mov dword [ebp - 4], 4
call esi
test eax, eax
pop esi
je 0x403d2b
mov dword [ebx], 0xa
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403d4a
push dword [0x417d08]
mov ecx, dword [ebp + 8]
call fcn.00401988
mov dword [ebx], 0xa
pop edi
leave
ret

Function at 0x403d4d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [0x417d58]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403dbc
cmp dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x14]
jb 0x403d88
mov esi, dword [esi + 4]
jmp 0x403d8b
add esi, 4
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push edi
push 0x4145dc
push dword [ebp - 4]
call esi
push 4
lea eax, [ebp + 8]
push eax
push 4
push edi
push 0x4145d0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x403fe5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
xor edi, edi
lea eax, [ebp - 0x3c]
inc edi
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], 0x414560
mov dword [ebp - 0x20], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteEx]
mov dword [esi + 0xc], edi
pop edi
leave
ret

Function at 0x4042e5
Capabilities:
Terminate process

Disassembly:
push esi
xor esi, esi
push dword [esi + 0x417d68]
push dword [esp + 0xc]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x404316
push 0x3a
push dword [esp + 0xc]
call fcn.0040afb7
test eax, eax
pop ecx
pop ecx
je 0x404320
inc eax
push eax
call dword [esi + 0x417d6c]
pop ecx
add esi, 8
cmp esi, 0x10
jb 0x4042e8
pop esi
ret
push dword [0x417d2c]
call fcn.00409356
pop ecx
push 0xffffffffffffffff
call fcn.0040af77
int3

Function at 0x40435a
Capabilities:
Terminate process

Disassembly:
mov eax, 0x412050
call fcn.0040bb78
sub esp, 0xc
push ebx
push 1
lea eax, [ebp + 8]
push eax
xor ebx, ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00403668
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x1c], bl
je 0x404437
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.0040156a
test al, al
jne 0x4043ab
push dword [0x417d1c]
call fcn.00409356
pop ecx
push 0xffffffffffffffff
jmp 0x404412
mov eax, dword [esi]
mov ecx, dword [eax]
call fcn.00404d2c
test al, al
jne 0x404420
push edi
lea edi, [ebp - 0x18]
call fcn.00404a01
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00401131
test al, al
je 0x404411
mov ecx, dword [esi]
mov edi, dword [ecx]
lea eax, [ebp - 0x18]
call fcn.00404d0f
mov eax, dword [esi]
mov ecx, dword [eax]
call fcn.00404d2c
test al, al
jne 0x404417
push dword [0x417d18]
call fcn.00409356
pop ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00404b16
mov eax, dword [esi]
mov ecx, dword [eax]
call fcn.00404d2c
test al, al
je 0x4043b9
jmp 0x40441f
push ebx
call fcn.0040af77
lea eax, [ebp - 0x18]
call fcn.00404b16
pop edi
lea eax, [ebp - 0x10]
call fcn.00403847
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004019f6
mov al, 1
jmp 0x40444c
lea eax, [ebp - 0x10]
call fcn.00403847
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004019f6
xor al, al
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4044c6
Capabilities:
Get common file path
Terminate process

Disassembly:
mov eax, 0x411fc8
call fcn.0040bb78
sub esp, 0x158
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov edi, 0x104
push edi
mov esi, 0x4182d0
push esi
push eax
mov dword [0x4182cc], eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x41487c
call dword [sym.imp.user32.dll_RegisterClipboardFormatA]
push dword [0x417d44]
mov dword [0x4182c8], eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
test eax, eax
jne 0x404533
push dword [0x417d48]
call fcn.00409356
pop ecx
push 0xffffffffffffffff
call fcn.0040af77
call dword [sym.imp.kernel32.dll_GetTickCount]
push eax
call fcn.0040b032
pop ecx
push esi
lea ecx, [ebp - 0x60]
call fcn.00401896
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.0040948e
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.004019f6
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401870
push 0x414868
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.004030fe
lea eax, [ebp - 0x44]
call fcn.004091f3
test al, al
je 0x4045a5
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x417dd4
call fcn.004018f9
jmp 0x4045c4
lea eax, [ebp - 0x164]
push eax
push edi
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x164]
push eax
mov ecx, 0x417dd4
call fcn.00401988
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.004019f6
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004019f6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4051e3
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
ret
Function at 0x408f6f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x411f61
call fcn.0040bb78
sub esp, 0x268
push ebx
push esi
push edi
push 0x13
mov esi, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x274]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, dword [esi + 0x14]
inc eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00409662
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0x10
mov ecx, dword [esi + 0x14]
jb 0x408fc1
mov esi, dword [esi + 4]
jmp 0x408fc4
add esi, 4
mov edi, dword [ebp - 0x1c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xd]
lea eax, [ebp - 0x20]
mov byte [ebp - 0xd], 0
call fcn.00409680
lea eax, [ebp - 0x170]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x274]
mov dword [ebp - 0x40], eax
xor ebx, ebx
lea eax, [ebp - 0x6c]
inc ebx
push eax
mov byte [ebp - 0x170], 0
mov dword [ebp - 0x6c], 0x4c
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x38], 0x300c
call dword [0x41329c]
test eax, eax
jne 0x409032
xor bl, bl
jmp 0x409041
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x170]
push eax
call fcn.00401988
lea esi, [ebp - 0x20]
call fcn.00403301
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret