joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec980
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52afe3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0051eaed
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0052413b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00525657
test eax, eax
je 0x4eca9c
mov ecx, dword [esp + 0x3c]
call fcn.00524168
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4eca60
push edi
mov ecx, esi
call fcn.005217d0
mov ecx, esi
call fcn.004ecc40
cmp dword [esp + 0x38], 1
jne 0x4eca95
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0052190b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4eec80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4eecb3
push esi
call fcn.004fcf10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4eecac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4eed39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4eed22
mov eax, dword [esi + 8]
test eax, eax
je 0x4eecd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4eed1e
cmp eax, 2
je 0x4eed22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4eecca
cmp eax, 3
je 0x4eecfd
cmp eax, 1
jne 0x4eecca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4eecca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4eecca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004eed60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4eed48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004eed60
add esp, 4
pop esi
ret

Function at 0x4ef5d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4ef5f1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4ef5f1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4ef5f1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x50a4d0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5de88c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x50a4e3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x50a524
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5de934]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x50a556
mov bl, byte [esp + ecx + 0x4c]
jmp 0x50a55a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x50a54b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x50a578
mov bl, byte [esp + ecx + 0x4c]
jmp 0x50a57c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x50a56d
xor ecx, ecx
mov eax, 0x5de89c
xor ebx, ebx
mov bl, byte [ecx + 0x5de944]
cmp byte [esp + ebx + 0x14], 0
je 0x50a5a7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5de95c]
cmp byte [esp + ebx + 0x14], 0
je 0x50a5be
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x50a58e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x50a517
lea edx, [esp + 0x84]
push edx
call fcn.0050a600
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x51f8c9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51f901
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051d970
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051d948
jmp 0x51f90d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x520fbb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x520ffd
call fcn.00526941
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x520ffd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x520ff4
xor eax, eax
jmp 0x521005
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0052100b
pop edi
pop esi
pop ebx
ret 4

Function at 0x526e71
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x526e9f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x526ebd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00526dd7
jmp 0x526ebd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x526ebd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00526dd7
test edi, edi
mov eax, edi
jne 0x526ea7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401124
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
mov dword [ebp - 0x20], eax
je 0x401253
cmp dword [ebp + 0x10], ebx
je 0x401253
cmp dword [esi + 4], 0xffffffff
je 0x40116b
call fcn.0040110a
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call fcn.0043296a
mov al, byte [edi]
cmp al, 0x30
pop ecx
jl 0x40119c
cmp al, 0x39
jg 0x40119c
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004328f0
add esp, 0xc
push edi
mov word [ebp - 0x14], 2
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x10], eax
jmp 0x4011d6
push edi
call sub.WS2_32.dll_gethostbyname
mov edi, eax
cmp edi, ebx
je 0x401253
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004328f0
movsx eax, word [edi + 0xa]
push eax
mov eax, dword [edi + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00432540
mov ax, word [edi + 8]
add esp, 0x18
mov word [ebp - 0x14], ax
push dword [ebp + 0x10]
call sub.WS2_32.dll_htons
push ebx
xor ebx, ebx
inc ebx
push ebx
push 2
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_socket
cmp eax, ebx
mov dword [esi + 4], eax
jb 0x401253
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 0x1002
mov edi, 0xffff
push edi
push eax
mov dword [ebp - 0x1c], 0x2800
call sub.WS2_32.dll_setsockopt
and word [ebp - 0x16], 0
push 4
lea eax, [ebp - 0x18]
push eax
push 0x80
push edi
push dword [esi + 4]
mov word [ebp - 0x18], bx
call sub.WS2_32.dll_setsockopt
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_connect
test eax, eax
je 0x401266
call sub.WS2_32.dll_WSAGetLastError
push dword [esi + 4]
call sub.WS2_32.dll_closesocket
or dword [esi + 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432980
leave
ret 0xc
mov edi, dword [ebp - 0x20]
push 0x31
push 0x401
push edi
push dword [esi + 4]
call sub.WS2_32.dll_WSAAsyncSelect
mov dword [esi + 8], edi
mov eax, ebx
jmp 0x401255

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
je 0x4012f8
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 6]
push 0xaa55
mov dword [ebp + 0xc], eax
lea esi, [ebx + 0xc]
call sub.WS2_32.dll_htons
mov word [esi], ax
inc esi
inc esi
mov word [esi], di
push edi
push dword [ebp + 8]
inc esi
inc esi
push esi
call fcn.00432540
add esp, 0xc
push 0x55aa
call sub.WS2_32.dll_htons
mov word [esi + edi], ax
mov esi, dword [ebp + 0xc]
xor edi, edi
test esi, esi
jle 0x4012f0
push 0
push esi
lea eax, [ebx + 0xc]
push eax
push dword [ebx + 4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x4012f0
test eax, eax
je 0x4012ec
add edi, eax
cmp edi, esi
jl 0x4012d2
add dword [ebx + 0x2820], esi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x401a21
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
push edi
push 0x8000
lea ecx, [esi + 0x280c]
mov dword [esi], vtable.CAPISocket.0
call fcn.00401efd
xor edi, edi
lea eax, [esi + 0x2824]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
or dword [esi + 4], 0xffffffff
cmp dword [0x468070], edi
jne 0x401a6a
push 0x467ee0
push 0x101
call sub.WS2_32.dll_WSAStartup
inc dword [0x468070]
mov dword [esi + 0x2820], edi
pop edi
mov eax, esi
pop esi
ret

Function at 0x401e96
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x401efa
push ebx
lea ecx, [ebp - 4]
push ecx
push 0x4004667f
push eax
xor ebx, ebx
call sub.WS2_32.dll_ioctlsocket
cmp dword [ebp - 4], ebx
jbe 0x401eee
push edi
lea edi, [esi + 0xc]
push 0
push 0x2800
push edi
push dword [esi + 4]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x401eed
test eax, eax
je 0x401ee8
push eax
push edi
lea ecx, [esi + 0x280c]
add ebx, eax
call fcn.00401465
cmp ebx, dword [ebp - 4]
jb 0x401ec0
pop edi
pop ebx
mov ecx, esi
call fcn.00401dc3
test eax, eax
jne 0x401eef
pop esi
leave
ret

Function at 0x4031be
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0
mov eax, 0x44a243
call fcn.00433137
mov esi, ecx
xor edi, edi
push edi
push edi
push edi
push edi
push str.3DOnline
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x40321f
call fcn.0041cf25
push eax
lea ecx, [ebp + 8]
call fcn.00402350
push 0x77
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00403179
mov ebx, dword [ebp + 8]
push 0x10
push ebx
add esi, 0xc
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebx - 0x10]
call fcn.00402050
xor al, al
jmp 0x4032a4
cmp dword [ebp + 8], 1
lea ebx, [esi + 0xc]
push edi
jne 0x40324d
push 0x8000000
push 1
lea ecx, [esi + 0x130]
push ecx
lea ecx, [esi + 0x110]
push ecx
push 0x15
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 8], eax
jmp 0x403268
push edi
push 3
push edi
push edi
push edi
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp dword [ebp + 8], 2
mov dword [esi + 8], eax
jne 0x403268
cmp eax, edi
je 0x403218
cmp dword [esi + 8], edi
jne 0x4032a2
call fcn.0041cf25
push eax
lea ecx, [ebp + 8]
call fcn.00402350
push 0x78
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.00403179
mov esi, dword [ebp + 8]
push 0x10
push esi
push ebx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esi - 0x10]
jmp 0x403213
mov al, 1
call fcn.0043320f
ret 4
Function at 0x406ebf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x406ef4
mov edx, dword [ebp + 0x10]
push edi
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
mov al, dh
xor al, byte [ecx]
movzx di, al
add di, dx
imul di, word [ebp + 0x14]
add di, word [ebp + 0x18]
inc esi
cmp esi, dword [ebp + 0xc]
movzx edx, di
mov byte [ecx], al
jl 0x406ece
pop edi
pop esi
pop ebp
ret

Function at 0x406f5d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x398], eax
cmp dword [0x468144], 0x10
mov eax, dword [0x468130]
jae 0x406f8b
mov eax, 0x468130
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406fdd
cmp dword [0x468144], 0x10
mov eax, dword [0x468130]
jae 0x406fc2
mov eax, 0x468130
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406fdd
xor ebx, ebx
cmp ebx, edi
je 0x4070e0
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x78]
push eax
movzx eax, word [ebp - 0x7a]
push eax
movzx eax, word [ebp - 0x7e]
push eax
lea eax, [ebp - 0x68]
push str.___End_writing_log...___.2d__.2d__.2d:_.2d__r_n
push eax
mov dword [ebp - 0x70], edi
call fcn.00435a0d
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x1608
push 0x6081
push 0x816
push eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406ebf
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x14
push edi
lea eax, [ebp - 0x70]
push eax
push 4
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
push ebx
call esi
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x78]
push eax
movzx eax, word [ebp - 0x7a]
push eax
movzx eax, word [ebp - 0x7e]
push eax
lea eax, [ebp - 0x68]
push str.____________________________________________________________________________r_n
push eax
call fcn.00435a0d
add esp, 0x18
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x1608
push 0x6081
push 0x816
push eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x68]
push eax
call fcn.00406ebf
add esp, 0x14
push edi
lea eax, [ebp - 0x70]
push eax
push 4
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432980
add ebp, 0x39c
leave
ret
Function at 0x4070f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [0x468140], ebx
je 0x40724a
cmp dword [ebp + 8], ebx
je 0x40724a
push esi
push edi
push 0x468980
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [0x46898c]
push eax
movzx eax, word [0x46898a]
push eax
movzx eax, word [0x468988]
push eax
push str.______.2d:_.2d:_.2d_
mov esi, 0x468580
push esi
mov byte [0x468580], bl
mov dword [ebp - 0xc], ebx
call fcn.00435a0d
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov edi, 0x468180
push edi
mov byte [0x468180], bl
call fcn.004332bd
add esp, 0x20
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
push 0x450b50
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x468144], 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x468130]
jae 0x40719e
mov eax, 0x468130
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4071ee
cmp dword [0x468144], 0x10
mov eax, dword [0x468130]
jae 0x4071d1
mov eax, 0x468130
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4071ee
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x407248
push 2
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1608
push 0x6081
push 0x816
push dword [ebp - 8]
push esi
call fcn.00406ebf
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x14
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call edi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407535
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x40754b
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
and dword [esi + 0x10], 0
pop esi
ret

Function at 0x40757a
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
lea eax, [esi + 8]
push eax
push ecx
push esi
push 0x40755b
push ecx
push ecx
mov dword [esi], vtable.CThread.0
mov dword [esi + 4], ecx
mov dword [eax], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], edi
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x407a16
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x407a25
lea eax, [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407a69
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jbe 0x407a69
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.00401627
mov al, 1
jmp 0x407a7d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.00401627
xor al, al
pop edi
pop esi
pop ebp
ret 0x1c
Function at 0x407bcf
Capabilities:
Write file on windows

Disassembly:
push 0x50
mov eax, 0x44aa41
call fcn.004331a0
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x30], ebx
mov dword [ebp - 4], ebx
jne 0x407bfc
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00401627
xor al, al
call fcn.00433223
ret 0x1c
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x407c08
lea eax, [ebp + 0xc]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x40], eax
jne 0x407c39
mov byte [ebp - 0x39], bl
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00401627
mov al, byte [ebp - 0x39]
jmp 0x407bf4
lea edi, [esi + 0x28]
mov eax, dword [edi + 4]
push edi
mov dword [ebp - 0x48], ebx
push dword [eax]
lea ecx, [ebp - 0x50]
call fcn.00407803
mov eax, dword [esi + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x40]
call esi
push edi
push dword [edi + 4]
jmp 0x407d02
lea ecx, [ebp - 0x50]
call fcn.004076af
add eax, 4
push eax
lea ecx, [ebp - 0x38]
call fcn.00407ba8
mov eax, dword [ebp - 0x24]
push ebx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x24], ebx
je 0x407cb1
push ebx
lea ecx, [ebp - 0x38]
call fcn.004045c8
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x407cbd
lea eax, [ebp - 0x34]
push ebx
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x48]
push eax
push dword [ebp - 0x40]
call esi
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x40]
call esi
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x40]
call esi
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.00401627
lea ecx, [ebp - 0x50]
call fcn.00407827
push edi
push dword [edi + 4]
lea ecx, [ebp - 0x58]
call fcn.00407803
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
call fcn.00407667
test al, al
je 0x407c72
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x39], 1
jmp 0x407c29
Function at 0x407d30
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x44aa76
call fcn.00433137
mov esi, ecx
sub esp, 0x1c
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 4], 1
call fcn.004019de
mov ecx, esi
call fcn.00407a16
test al, al
je 0x407de0
sub esp, 0x1c
lea eax, [ebp + 0x24]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004019de
mov ecx, esi
call fcn.00407a16
test al, al
je 0x407de0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x407d94
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0x20], 0x10
mov ecx, dword [ebp + 0xc]
jae 0x407da7
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x407db3
lea eax, [ebp + 0x28]
push ecx
push eax
call fcn.00436996
pop ecx
pop ecx
mov bl, 1
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00401627
push 0
push 1
lea ecx, [ebp + 0x24]
call fcn.00401627
mov al, bl
call fcn.0043320f
ret 0x38
xor bl, bl
jmp 0x407dbe