joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ecd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4e4150]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [0x4e31a4], 0
jne 0x45ecf1
jmp 0x45eebc
mov eax, 0x4e94d4
mov ecx, 1
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 0x3e8
jle 0x45ed0d
jmp 0x45eebc
push 0x4e94dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x45ed28
call dword [sym.imp.KERNEL32.dll_DebugBreak]
lea edx, [ebp + 0xc]
mov dword [ebp - 4], edx
mov word [ebp - 0x424], 0
xor eax, eax
mov dword [ebp - 0x422], eax
mov dword [ebp - 0x41e], eax
mov dword [ebp - 0x41a], eax
mov word [ebp - 0x416], ax
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push 0x4e93d0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
jne 0x45ed9b
push 0x4e94dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45eebc
push 2
push 0
push 0
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [ebp - 0x418]
push eax
movzx ecx, word [ebp - 0x41a]
push ecx
movzx edx, word [ebp - 0x41c]
push edx
movzx eax, word [ebp - 0x41e]
push eax
movzx ecx, word [ebp - 0x422]
push ecx
movzx edx, word [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._x__d___04d__02d__02d__02d:_02d:_02d_
push 0x400
lea eax, [ebp - 0x410]
push eax
call fcn.0048238c
add esp, 0x2c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x45ee13
jmp 0x45ee9d
push 0
lea ecx, [ebp - 0x428]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
call fcn.00482336
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x45ee5b
jmp 0x45ee9d
mov byte [ebp - 0x11], 0
push 0
lea edx, [ebp - 0x428]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x428]
push eax
push 2
push 0x4cb4b4
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4e94dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0047f5bc
mov esp, ebp
pop ebp
ret
Function at 0x45fd20
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov eax, 0x4e9564
mov esi, 1
lock xadd dword [eax], esi
inc esi
mov ebx, dword [ebp + 8]
and esi, 0xf
lea edi, [esi*8]
sub edi, esi
lea ecx, [ebx + 8]
lea edi, [edi*8 + 0x4e9568]
push ecx
mov ecx, edi
call fcn.0045fdf0
mov edx, eax
test edx, edx
je 0x45fd96
add esi, 0x8769e100
mov dword [edx + 4], esi
mov dword [edx], ebx
mov ecx, ebx
mov esi, ecx
shr ecx, 2
add edx, 8
mov eax, 0xfcfcfcfc
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x4e9560
lock xadd dword [eax], ebx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x4e9560]
push edx
push eax
push ecx
push esi
push ebx
push str.Memory::_malloc__d__failed_:_index_d__total_d__phys_d__virtual_d
call fcn.0045ecd0
mov edx, dword [edi]
add esp, 0x18
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push eax
push 0x4cb788
call fcn.0045ecd0
add esp, 8
call fcn.0045eed0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4603b0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov esi, ecx
call fcn.00460f80
mov edi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00460450
test eax, eax
mov ecx, esi
je 0x4603e6
push edi
push eax
call fcn.00460490
mov ecx, esi
call fcn.00460fa0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00460fa0
mov eax, dword [esi]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x460441
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x4e9560]
push edx
push eax
push ecx
push str.Memory::_free___failed_:_total_d__phys_d__virtual_d
call fcn.0045ecd0
mov edx, dword [esi]
add esp, 0x10
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push eax
push 0x4cb7d4
call fcn.0045ecd0
add esp, 8
call fcn.0045eed0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x460900
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
test eax, eax
jne 0x46091d
mov eax, dword [ebp + 0xc]
push eax
call fcn.0045fd20
add esp, 4
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x460935
push eax
call fcn.00460340
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [eax - 8]
lea ecx, [eax - 8]
push edi
mov edi, dword [ecx + 4]
mov eax, edi
and al, 0xf0
mov dword [ebp - 8], edx
cmp eax, 0x8769e100
je 0x46095a
call fcn.0045eed0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov eax, edi
and eax, 0xf
lea ebx, [eax*8]
lea edx, [esi + 8]
sub ebx, eax
push edx
lea ebx, [ebx*8 + 0x4e9568]
push ecx
mov ecx, ebx
call fcn.004609f0
test eax, eax
je 0x46099b
mov dword [eax], esi
sub esi, dword [ebp - 8]
mov dword [eax + 4], edi
mov ecx, 0x4e9560
lock xadd dword [ecx], esi
pop ebx
pop edi
add eax, 8
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x4e9560]
push eax
mov eax, dword [ebp - 8]
push ecx
push edx
push edi
push eax
push esi
push str.Memory::_realloc__d__failed_:_size_d__key_x__total_d__phys_d__virtual_d
call fcn.0045ecd0
mov ecx, dword [ebx]
add esp, 0x1c
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push eax
push str.HeapValidate___d
call fcn.0045ecd0
add esp, 8
call fcn.0045eed0
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x460f40
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045fd20

Function at 0x460f60
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045fd20
Function at 0x462190
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x54]
push esi
mov esi, dword [ebp + 8]
sub dword [eax + 0x4030], esi
mov eax, dword [ebx + 0x54]
cmp dword [eax + 0x4034], 1
push edi
je 0x4621eb
call fcn.00461dc0
mov edx, dword [ebx + 0x54]
mov ecx, esi
mov esi, dword [edx + 0x4030]
mov edi, eax
mov dword [ebp - 4], eax
mov eax, ecx
shr ecx, 2
add esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x54]
call fcn.00463520
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov dword [ebx + 0x54], ecx
jmp 0x4621fe
mov edx, dword [eax + 0x4030]
push esi
add edx, eax
push edx
push eax
call fcn.0047f610
add esp, 0xc
mov eax, dword [ebx + 0x54]
mov ecx, ebx
mov dword [eax + 0x4030], esi
call fcn.004635a0
mov eax, dword [ebx + 0x54]
mov ecx, 0x402e
sub ecx, dword [eax + 0x4030]
lea esi, [ebx + 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 0x4030]
add edx, eax
mov ecx, esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
call fcn.004633d0
push 0
lea eax, [ebx + 0x2c]
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x4622c3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x4622c3
call edi
mov ecx, esi
mov edi, eax
call fcn.004633f0
cmp edi, 0x2736
je 0x4622ac
cmp edi, 0x2746
je 0x4622ac
cmp edi, 0x2745
je 0x4622ac
cmp edi, 0x274a
je 0x4622ac
mov edx, dword [ebx]
mov eax, dword [ebx + 0x10]
push edi
push edx
push eax
push str.CIOSocket::Read__x__x__err___d
call fcn.0045fad0
add esp, 0x10
mov ecx, ebx
call fcn.00461ff0
mov ecx, ebx
call fcn.004635e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.004633f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4622e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x14]
mov ecx, ebx
call fcn.004633d0
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x4030]
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x46232e
push eax
push ecx
mov ecx, dword [esi + 0x10]
push esi
push ecx
push str.different_write_count__x__x___d____d
call fcn.0045fad0
add esp, 0x14
mov ecx, ebx
call fcn.004633f0
mov ecx, esi
call fcn.00461fa0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sub dword [esi + 0x60], eax
push edi
mov edi, dword [esi + 0x58]
mov eax, dword [edi + 0x4038]
test eax, eax
mov dword [ebp + 8], edi
mov dword [esi + 0x58], eax
je 0x4623fe
mov edx, dword [eax + 0x4030]
mov ecx, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call fcn.004635c0
test eax, eax
je 0x4623fe
push 0
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x10]
push 0
lea ecx, [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x4623fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4623fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov edi, eax
call fcn.004633f0
cmp edi, 0x2736
je 0x4623dd
cmp edi, 0x2746
je 0x4623dd
cmp edi, 0x2745
je 0x4623dd
cmp edi, 0x274a
je 0x4623dd
cmp edi, 0x2726
je 0x4623dd
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push edi
push ecx
push edx
push str.CIOSocket::WriteCallback__x__x__err_d
call fcn.0045fad0
add esp, 0x10
mov ecx, esi
call fcn.00461fa0
mov ecx, esi
call fcn.004635e0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00461e50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
call fcn.004633f0
mov ecx, edi
call fcn.00461e50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x462420
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x4030]
test eax, eax
push esi
mov esi, ecx
mov dword [ebp - 4], esi
jne 0x462449
mov ecx, ebx
call fcn.00461e50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x402e
jbe 0x462455
call fcn.0045eed0
push edi
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [ebp + 8], edi
call fcn.004633d0
mov eax, dword [ebx + 0x4030]
mov ecx, dword [esi + 0x58]
add dword [esi + 0x60], eax
test ecx, ecx
jne 0x46252e
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x58], ebx
mov ecx, dword [ebx + 0x4030]
mov dword [ebp - 8], ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004635c0
test eax, eax
je 0x462595
push 0
lea edx, [esi + 0x40]
push edx
mov edx, dword [esi + 0x10]
push 0
lea eax, [ebp + 8]
push eax
push 1
lea ecx, [ebp - 8]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x462595
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x462595
call ebx
mov ecx, edi
mov ebx, eax
call fcn.004633f0
cmp ebx, 0x2736
je 0x462517
cmp ebx, 0x2746
je 0x462517
cmp ebx, 0x2745
je 0x462517
cmp ebx, 0x274a
je 0x462517
cmp ebx, 0x2726
je 0x462517
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
push ebx
push eax
push ecx
push str.CIOSocket::Write__x__x__err_d
call fcn.0045fad0
add esp, 0x10
mov ecx, esi
call fcn.00461fa0
mov ecx, esi
call fcn.004635e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x5c]
cmp ecx, eax
je 0x46258c
mov edx, dword [eax + 0x4030]
mov ecx, dword [ebx + 0x4030]
lea edi, [edx + ecx]
cmp edi, 0x402e
ja 0x462589
lea edi, [edx + eax]
mov eax, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x4030]
mov eax, dword [eax + 0x5c]
add dword [eax + 0x4030], ecx
mov ecx, dword [ebp + 8]
call fcn.004633f0
mov ecx, ebx
call fcn.00461e50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov dword [eax + 0x4038], ebx
mov dword [esi + 0x5c], ebx
mov ecx, edi
call fcn.004633f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x462680
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e4150]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 1
xor eax, ebp
push 2
mov dword [ebp - 4], eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x4626d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_error__d
call fcn.0045fad0
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f5bc
mov esp, ebp
pop ebp
ret 8
test edi, edi
mov word [ebp - 0x14], 2
jne 0x462717
push edi
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x10]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x462731
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind_error__d
jmp 0x46277a
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4626e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IP_Address_error:__d_n
jmp 0x46277a
mov edx, dword [esi + 0x10]
push 5
push edx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x46274f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.listen_error__d
jmp 0x46277a
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 8
push eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, esi
call fcn.00461860
test eax, eax
jne 0x46279d
push edi
push str.RegisterWait_error_on_port__d
call fcn.0045fad0
add esp, 8
mov ecx, esi
call fcn.00462650
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f5bc
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0047f5bc
mov esp, ebp
pop ebp
ret 8

Function at 0x4628d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4e9b1c]
push esi
push 0
mov esi, ecx
mov ecx, dword [esi + 0x10]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x462919
mov edx, dword [0x4e9b1c]
mov eax, dword [esi + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateIoCompletionPort:__d__x__x
call fcn.0045ecd0
add esp, 0x10
mov ecx, esi
call fcn.00461ff0
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1002
push 0xffff
push edx
mov dword [ebp - 4], 0
call edi
mov ecx, dword [esi + 0x10]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push ecx
mov dword [ebp - 4], 0
call edi
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x465870
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4e4150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x118]
mov cl, byte [eax]
mov byte [ebp - 0x121], cl
mov edx, dword [ebp - 0x11c]
mov al, byte [ebp - 0x121]
mov byte [edx], al
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
cmp byte [ebp - 0x121], 0
jne 0x4658a4
push 0x5c
lea eax, [ebp - 0x110]
push eax
call fcn.0047ff50
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x46590b
xor eax, eax
jmp 0x465963
mov ecx, dword [ebp - 0x114]
mov byte [ecx], 0
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x46592e
mov eax, 1
jmp 0x465963
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x46593d
xor eax, eax
jmp 0x465963
lea eax, [ebp - 0x110]
push eax
call fcn.00465870
add esp, 4
test eax, eax
je 0x465961
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x465963
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f5bc
mov esp, ebp
pop ebp
ret
Function at 0x467620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.004679b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x467652
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00412d30
mov eax, dword [ebp + 8]
jmp 0x46771d
call fcn.004a24f7
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
call dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4676c6
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00467a10
push eax
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00467a70
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
jne 0x467706
mov eax, dword [ebp - 0x10]
sub eax, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00413150
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
add edx, 0x10
mov eax, dword [ebp + 8]
mov dword [eax], edx
lea ecx, [ebp - 0x10]
call fcn.00413050
mov eax, dword [ebp + 8]
jmp 0x46771d
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00412d30
lea ecx, [ebp - 0x10]
call fcn.00413050
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x467800
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], 0
jne 0x467847
mov ecx, dword [ebp - 0x14]
call fcn.004678e0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x467827
xor eax, eax
jmp 0x4678d6
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4678cd
cmp dword [ebp + 0x10], 0
jne 0x467883
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004679b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x467866
xor eax, eax
jmp 0x4678d6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4678cd
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004679b0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46789c
xor eax, eax
jmp 0x4678d6
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x468b00
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4e4150]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 0x111], 1
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x224], ecx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x468bc6
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x224]
add ecx, 1
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x468b97
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x468b97
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x2f
jne 0x468bc4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x468bc4
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x468bc4
mov byte [ebp - 0x111], 0
jmp 0x468bc6
jmp 0x468b48
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov al, byte [ebp - 0x111]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f5bc
mov esp, ebp
pop ebp
ret