joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426008]
jne 0x40100a
repz ret
jmp fcn.00401cf1

Function at 0x40773b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402a1a
and dword [ebp - 4], 0
cmp dword [0x428008], 0
mov ebx, eax
jne 0x4077ec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40789d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40789d
push eax
call fcn.004029a8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428008], eax
call esi
push eax
call fcn.004029a8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42800c], eax
call esi
push eax
call fcn.004029a8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x428010], eax
call esi
push eax
call fcn.004029a8
pop ecx
mov dword [0x428018], eax
test eax, eax
je 0x4077ec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004029a8
pop ecx
mov dword [0x428014], eax
mov eax, dword [0x428014]
cmp eax, ebx
je 0x407844
cmp dword [0x428018], ebx
je 0x407844
push eax
call fcn.00402a23
push dword [0x428018]
mov esi, eax
call fcn.00402a23
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407844
test edi, edi
je 0x407844
call esi
test eax, eax
je 0x40783b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40783b
test byte [ebp - 0xc], 1
jne 0x407844
or dword [ebp + 0x10], 0x200000
jmp 0x40787d
mov eax, dword [0x42800c]
cmp eax, ebx
je 0x40787d
push eax
call fcn.00402a23
pop ecx
test eax, eax
je 0x40787d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40787d
mov eax, dword [0x428010]
cmp eax, ebx
je 0x40787d
push eax
call fcn.00402a23
pop ecx
test eax, eax
je 0x40787d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428008]
call fcn.00402a23
pop ecx
test eax, eax
je 0x40789d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40789f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41eab0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
cmp edi, 0x19f
jne 0x41eac9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
test edi, edi
jle 0x41eb11
nop
lea ecx, [esp + 8]
mov dword [esp], 5
mov dword [esp + 8], 0
call fcn.0041eaa0
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp], eax
sub dword [esp], 0x46
movsx eax, byte [edx + esi]
mov dword [esp + 4], eax
mov eax, dword [esp]
xor dword [esp + 4], eax
mov cl, byte [esp + 4]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x41ead0
cmp edi, 0x2d
jne 0x41eb2a
mov dword [0x2b26220], 0xa62e7790
mov dword [0x2b26224], 0xffffffff
add esp, 0xc
ret
Function at 0x4281a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
lea edi, [ebp - 0x100]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0
push str.._Log
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp esi, esp
call fcn.0045dfa0
mov eax, dword [ebp + 0x10]
push eax
call fcn.0045e930
add esp, 4
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
mov esi, esp
push eax
push str.AgentServer__d
push 0x4e9e98
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.0045dfa0
call fcn.00428410
test eax, eax
jne 0x428215
xor eax, eax
jmp 0x4282f1
call fcn.00428510
test eax, eax
jne 0x428225
xor eax, eax
jmp 0x4282f1
push 0x509c
call fcn.00463460
add esp, 4
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
je 0x428254
mov ecx, dword [ebp - 0xec]
call fcn.004286b0
mov dword [ebp - 0x100], eax
jmp 0x42825e
mov dword [ebp - 0x100], 0
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [0x4e9f40], ecx
mov ax, word [ebp - 8]
push eax
mov ecx, dword [0x4e9f40]
call fcn.00428840
mov ecx, dword [0x4e9f40]
call fcn.00429860
mov eax, dword [0x4e9f40]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xe0], ecx
cmp dword [ebp - 0xe0], 0
je 0x4282d6
mov esi, esp
push 1
mov edx, dword [ebp - 0xe0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xe0]
mov edx, dword [eax]
call edx
cmp esi, esp
call fcn.0045dfa0
mov dword [ebp - 0x100], eax
jmp 0x4282e0
mov dword [ebp - 0x100], 0
mov dword [0x4e9f40], 0
call fcn.004284b0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x100
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4473f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1fc]
mov ecx, 0x7f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4d8ed4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
push 0x4be634
push 0x4bf380
call fcn.00464aa0
add esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x447464
mov esi, esp
push 0
push 0
push str.serverset.txt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.0045dfa0
push 0
call fcn.00469080
jmp 0x44754f
lea eax, [ebp - 0x12c]
push eax
push 0x4c0918
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.00465030
add esp, 0xc
mov eax, dword [ebp - 0x120]
push eax
call fcn.00464b60
add esp, 4
mov eax, dword [ebp - 0x12c]
push eax
push str.serverset__d_serverlist.msl
lea ecx, [ebp - 0x114]
push ecx
call fcn.0045e190
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov ecx, 0x4f0f50
call fcn.0044f0d0
mov eax, dword [ebp - 0x12c]
push eax
push str.serverset__d_serverlist_Public.msl
lea ecx, [ebp - 0x114]
push ecx
call fcn.0045e190
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov ecx, 0x4f0f50
call fcn.0044f220
mov ecx, dword [ebp - 0xc]
call fcn.00448090
test eax, eax
jne 0x4474fc
mov dword [0x4ea0ec], 1
mov eax, dword [0x4ea0ec]
xor ecx, ecx
cmp eax, dword [ebp - 0x12c]
sete cl
test ecx, ecx
jne 0x447528
push 0
mov eax, dword [0x4d8850]
add eax, 0x1b
push eax
push 0x4c0890
call fcn.004509b0
add esp, 0xc
mov ax, word [ebp + 0xc]
push eax
mov cx, word [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00448210
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00432c90
push edx
mov ecx, ebp
push eax
lea edx, [0x447580]
call fcn.0045dfd0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e500
add esp, 0x1fc
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44cd50
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
lea edi, [ebp - 0xf0]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.0045dfa0
cmp dword [ebp - 8], 0
jle 0x44cde3
mov esi, esp
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.0045dfa0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jg 0x44cdcf
jmp 0x44cde3
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
jmp 0x44cd9e
mov eax, dword [ebp - 0x14]
push edx
mov ecx, ebp
push eax
lea edx, [0x44ce0c]
call fcn.0045dfd0
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret
Function at 0x44d190
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
push esi
push edi
lea edi, [ebp - 0xe8]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4d8ed4]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.0045dfa0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x44d1da
xor eax, eax
jmp 0x44d23a
mov word [ebp - 0x24], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov esi, esp
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.0045dfa0
mov word [ebp - 0x22], ax
mov esi, esp
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.0045dfa0
cmp eax, 0xffffffff
jne 0x44d220
jmp 0x44d225
mov eax, dword [ebp - 0xc]
jmp 0x44d23a
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.0045dfa0
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x44d26c]
call fcn.0045dfd0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e500
add esp, 0xe8
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret

Function at 0x44d2f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
push esi
push edi
lea edi, [ebp - 0xe8]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4d8ed4]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.0045dfa0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x44d33d
xor eax, eax
jmp 0x44d3c7
mov word [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov word [ebp - 0x24], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov esi, esp
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.0045dfa0
mov word [ebp - 0x22], ax
mov esi, esp
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call fcn.0045dfa0
cmp eax, 0xffffffff
jne 0x44d398
jmp 0x44d3b2
mov esi, esp
push 3
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp esi, esp
call fcn.0045dfa0
mov eax, dword [ebp - 0xc]
jmp 0x44d3c7
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.0045dfa0
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x44d3f8]
call fcn.0045dfd0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e500
add esp, 0xe8
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret
Function at 0x44d420
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
lea edi, [ebp - 0xf4]
mov ecx, 0x3d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4d8ed4]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
mov dword [ebp - 0x24], 0x10
push 0
push 0
call fcn.0044d2f0
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
ja 0x44d47d
jmp 0x44d4c0
mov esi, esp
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.0045dfa0
cmp eax, 0xffffffff
jne 0x44d4a1
jmp 0x44d4c0
mov esi, esp
mov ax, word [ebp - 0x16]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call fcn.0045dfa0
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, dword [ebp - 0x30]
jmp 0x44d4d5
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.0045dfa0
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x44d504]
call fcn.0045dfd0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e500
add esp, 0xf4
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret
Function at 0x44e840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x4f0]
mov ecx, 0x13c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4d8ed4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
cmp dword [ebp + 0xc], 0x400
setle al
test eax, eax
jne 0x44e895
push 0
mov eax, dword [0x4d89ec]
add eax, 3
push eax
push 0x4c1168
call fcn.004509b0
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.00462ff0
add esp, 0xc
mov dword [ebp - 0x420], 0
jmp 0x44e8d6
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0xc]
jge 0x44e928
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 4]
cmp edx, dword [ecx + 0xc]
jne 0x44e8f9
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
movsx ecx, byte [ecx + eax]
mov edx, dword [ebp - 0x420]
movsx eax, byte [ebp + edx - 0x414]
add eax, ecx
mov ecx, dword [ebp - 0x420]
mov byte [ebp + ecx - 0x414], al
jmp 0x44e8b8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.00467090
add esp, 0x10
mov dword [ebp - 0x42c], eax
xor eax, eax
cmp dword [ebp - 0x42c], 1
sete al
test eax, eax
jne 0x44e971
push 0
mov eax, dword [0x4d89ec]
add eax, 0xe
push eax
push 0x4c1168
call fcn.004509b0
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x42c], 1
sete al
push edx
mov ecx, ebp
push eax
lea edx, [0x44e9b0]
call fcn.0045dfd0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e500
add esp, 0x4f0
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret 8
Function at 0x44e9d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xf0]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004667c0
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x44ea18
xor eax, eax
jmp 0x44ea89
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], 0
jmp 0x44ea3f
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 0xc]
jge 0x44ea84
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
cmp edx, dword [ecx + 0xc]
jne 0x44ea5f
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
movsx ecx, byte [ecx + eax]
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x2c]
movsx eax, byte [edx]
sub eax, ecx
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], al
jmp 0x44ea27
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xf0
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret 8
Function at 0x451950
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
push ebx
push esi
push edi
lea edi, [ebp - 0x4c4]
mov ecx, 0x131
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4d8ed4]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x208], 0
push 0x1ff
push 0
lea eax, [ebp - 0x207]
push eax
call fcn.0045ea40
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4519bd
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_line:_d__msg:_s_
lea eax, [ebp - 0x208]
push eax
call fcn.0045e190
add esp, 0x14
jmp 0x4519d9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_line:_d_
lea edx, [ebp - 0x208]
push edx
call fcn.0045e190
add esp, 0x10
mov byte [ebp - 0x328], 0
push 0xff
push 0
lea eax, [ebp - 0x327]
push eax
call fcn.0045ea40
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp esi, esp
call fcn.0045dfa0
movzx eax, word [ebp - 0x21a]
push eax
movzx ecx, word [ebp - 0x21e]
push ecx
movzx edx, word [ebp - 0x220]
push edx
push 0x4c13d0
lea eax, [ebp - 0x328]
push eax
call fcn.0045e190
add esp, 0x14
cmp dword [0x4f11a8], 0
jne 0x451b9a
mov esi, esp
push 0
lea eax, [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp esi, esp
call fcn.0045dfa0
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0xffffffff
jne 0x451ae1
mov esi, esp
mov eax, dword [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0045dfa0
push 0x4bf184
lea eax, [ebp - 0x328]
push eax
call fcn.00464aa0
add esp, 8
mov dword [ebp - 0x3f4], eax
cmp dword [ebp - 0x3f4], 0
je 0x451adc
call fcn.00450ed0
push eax
lea eax, [ebp - 0x208]
push eax
push str._stime:_s_n
mov ecx, dword [ebp - 0x3f4]
push ecx
call fcn.00465d90
add esp, 0x10
mov eax, dword [ebp - 0x3f4]
push eax
call fcn.00464b60
add esp, 4
jmp 0x451b9a
mov esi, esp
lea eax, [ebp - 0x34c]
push eax
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.0045dfa0
mov dword [ebp - 0x340], eax
mov eax, dword [ebp - 0x34c]
shl eax, 0x10
or eax, dword [ebp - 0x340]
mov dword [ebp - 0x334], eax
mov esi, esp
mov eax, dword [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0045dfa0
cmp dword [ebp - 0x334], 0xf4240
ja 0x451b90
push 0x4bf184
lea eax, [ebp - 0x328]
push eax
call fcn.00464aa0
add esp, 8
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0
je 0x451b8e
call fcn.00450ed0
push eax
lea eax, [ebp - 0x208]
push eax
push str._stime:_s_n
mov ecx, dword [ebp - 0x400]
push ecx
call fcn.00465d90
add esp, 0x10
mov eax, dword [ebp - 0x400]
push eax
call fcn.00464b60
add esp, 4
jmp 0x451b9a
mov dword [0x4f11a8], 1
push edx
mov ecx, ebp
push eax
lea edx, [0x451bcc]
call fcn.0045dfd0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e500
add esp, 0x4c4
cmp ebp, esp
call fcn.0045dfa0
mov esp, ebp
pop ebp
ret
Function at 0x45a670
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, esi
sar eax, 2
lea edx, [eax*4]
push edi
mov edi, dword [esp + 0x10]
and esi, 3
or ebx, 0xffffffff
test eax, eax
mov dword [ecx + 0x50], edx
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], esi
mov edx, edi
je 0x45a6b4
mov eax, dword [edx]
xor dword [ecx + 0x54], eax
add dword [ecx + 0x48], ebx
add edx, 4
cmp dword [ecx + 0x48], 0
jne 0x45a6a3
test esi, esi
je 0x45a6d9
jmp 0x45a6c0
mov eax, dword [ecx + 0x50]
movsx edx, byte [eax + edi]
xor dword [ecx + 0x54], edx
add dword [ecx + 0x4c], ebx
add eax, 1
mov dword [ecx + 0x50], eax
cmp dword [ecx + 0x4c], 0
jne 0x45a6c0
pop edi
pop esi
pop ebx
ret 8

Function at 0x45e500
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d8ed4]
jne 0x45e50a
repz ret
jmp fcn.004727b0
Function at 0x4080b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d410]
jne 0x4080c0
repz ret
jmp fcn.0040d5e6

Function at 0x40c3f3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406e19
and dword [ebp - 0x14], 0
cmp dword [0x44c17c], 0
mov dword [ebp - 0x18], eax
jne 0x40c4a6
push 0x4023a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c54e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40239c
push ebx
call edi
test eax, eax
je 0x40c54e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40238c
push ebx
mov dword [0x44c17c], eax
call edi
push eax
call esi
push 0x402378
push ebx
mov dword [0x44c180], eax
call edi
push eax
call esi
push 0x40235c
push ebx
mov dword [0x44c184], eax
call edi
push eax
call esi
mov dword [0x44c18c], eax
test eax, eax
je 0x40c4a6
push 0x402344
push ebx
call edi
push eax
call esi
mov dword [0x44c188], eax
mov eax, dword [0x44c188]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c4ff
cmp dword [0x44c18c], ecx
je 0x40c4ff
push eax
call esi
push dword [0x44c18c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c4ff
test ebx, ebx
je 0x40c4ff
call edi
test eax, eax
je 0x40c4f6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c4f6
test byte [ebp - 8], 1
jne 0x40c4ff
or dword [ebp + 0x10], 0x200000
jmp 0x40c532
mov eax, dword [0x44c180]
cmp eax, dword [ebp - 0x18]
je 0x40c532
push eax
call esi
test eax, eax
je 0x40c532
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c532
mov eax, dword [0x44c184]
cmp eax, dword [ebp - 0x18]
je 0x40c532
push eax
call esi
test eax, eax
je 0x40c532
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c17c]
call esi
test eax, eax
je 0x40c54e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c550
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004080b6
leave
ret
Function at 0x41b240
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0xc2c
cmp dword [0x2b75ce4], 0x37
jne 0x41b2b6
push 0x4035d8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleSelectionInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x4035e8
push 0x403614
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esp + 0x42c]
push ecx
push 0x403640
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov edx, dword [0x2b760f8]
mov ecx, dword [0x2b757c8]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0xc2c
ret