joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f0c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1b8]
test eax, eax
jne 0x45f0d7
pop edi
mov ax, 0x40a
pop esi
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x45f127
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
mov eax, dword [esi + 0x1d4]
push eax
call edi
cmp eax, 0x102
je 0x45f18b
mov ecx, dword [esi + 0x1b8]
push 0xffffffffffffffff
call fcn.00448cd0
mov ecx, dword [esi + 0x1c4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x1dc]
push 0xffffffffffffffff
push edx
call edi
pop edi
xor ax, ax
pop esi
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x1e0], eax
mov eax, dword [esi + 0x1d4]
push 0
push eax
call edi
cmp eax, 0x102
jne 0x45f18b
mov eax, dword [esi + 0x1cc]
mov ecx, dword [esi + 0x1b8]
push eax
call fcn.00448cd0
test ax, ax
jne 0x45f18e
mov ecx, dword [esi + 0x1c4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x45e190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [esi + 0x1d4]
push 0xffffffffffffffff
push eax
call edi
xor ax, ax
pop edi
pop esi
ret 4

Function at 0x45f6c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
je 0x45f6e2
mov eax, dword [esp + 0x28]
push 0xbf800000
push 2
push eax
call ebx
add esp, 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x18]
push ecx
call ebp
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.00465780
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], edx
call ebp
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.00465780
mov ecx, dword [esi + 0x1b8]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x24]
mov edi, eax
push 0xa
push edx
mov dword [esp + 0x18], edi
call fcn.004490e0
test ax, ax
je 0x45f7b1
test ebx, ebx
je 0x45f766
mov eax, dword [esp + 0x28]
push 0xbf800000
push 2
push eax
call ebx
add esp, 0xc
test al, al
jne 0x45f7dc
sub edi, dword [esp + 0x18]
cmp edi, 0xea60
jae 0x45f7ea
lea ecx, [esp + 0x10]
push ecx
call ebp
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.00465780
mov ecx, dword [esi + 0x1b8]
mov edi, eax
lea eax, [esp + 0x24]
push 0xa
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
call fcn.004490e0
test ax, ax
jne 0x45f74d
mov al, byte [esp + 0x24]
cmp al, 0x2e
je 0x45f7ce
sub al, 0x50
pop edi
neg al
sbb eax, eax
pop esi
pop ebp
and eax, 0x403
pop ebx
add esp, 0x10
ret 8
pop edi
pop esi
pop ebp
mov ax, 0x3ed
pop ebx
add esp, 0x10
ret 8
pop edi
pop esi
pop ebp
mov ax, 0x41d
pop ebx
add esp, 0x10
ret 8
pop edi
pop esi
pop ebp
mov ax, 0x3f2
pop ebx
add esp, 0x10
ret 8
Function at 0x460678
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4686f8
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
cmp word [esi + 8], 0xffff
jne 0x460698
mov ax, 0x491
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
mov eax, dword [esi]
push edi
mov ecx, esi
mov dword [esp + 8], vtable.CTakeSerial.0
mov dword [esp + 0xc], esi
call dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov cl, byte [esi + 8]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x1b8]
call fcn.00462a90
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
mov dword [esp + 0x1c], 0xffffffff
call dword [edx]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x14]
mov ax, di
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x461300
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4687a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov al, byte [esp + 0x44]
push ebx
push ebp
xor bl, bl
push esi
push edi
test al, al
mov dword [esp + 0x10], ecx
je 0x46132c
mov bl, 0x20
mov al, byte [esp + 0x58]
test al, al
je 0x461337
or bl, 0x80
mov ecx, dword [esp + 0x44]
mov al, byte [esp + 0x3c]
mov ebp, ecx
mov byte [esp + 0x15], al
mov al, byte [esp + 0x48]
and ebp, 0xff
mov dl, cl
mov byte [esp + 0x18], al
lea ecx, [ebp + 0xb]
mov byte [esp + 0x19], al
mov al, byte [esp + 0x4c]
add dl, 8
xor esi, esi
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0x10
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], 1
mov byte [esp + 0x1e], 0xff
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], vtable.._AV__DynamicScopeBuffer__E__.0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call fcn.00404400
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], esi
mov dword [edx], eax
mov word [esp + 0x54], 0xffff
mov dword [edx + 4], ecx
mov ecx, ebp
mov byte [edx + 8], bl
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
lea edi, [eax + 9]
mov eax, ecx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 2
mov esi, dword [esp + 0x54]
xor eax, eax
mov al, byte [esp + ecx + 0x14]
and esi, 0xffff
shr esi, 8
xor eax, esi
xor ebx, ebx
mov bh, byte [esp + 0x54]
mov ax, word [eax*2 + 0x48728c]
xor ax, bx
inc ecx
cmp ecx, 9
mov word [esp + 0x54], ax
jne 0x4613db
xor ecx, ecx
test ebp, ebp
je 0x461441
mov esi, dword [esp + 0x54]
xor eax, eax
mov al, byte [ecx + edx]
and esi, 0xffff
shr esi, 8
xor eax, esi
xor ebx, ebx
mov bh, byte [esp + 0x54]
mov ax, word [eax*2 + 0x48728c]
xor ax, bx
inc ecx
cmp ecx, ebp
mov word [esp + 0x54], ax
jne 0x461412
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x10]
push edx
mov word [ecx + ebp + 9], ax
push 0
mov ecx, edi
call fcn.004420f0
movzx ax, byte [esp + 0x44]
mov ecx, dword [esp + 0x24]
push 0
push 0
add eax, 0xb
push 5
push eax
push ecx
mov ecx, edi
call fcn.00448d00
lea esi, [edi + 0x1a8]
mov ebp, eax
test esi, esi
mov ebx, 1
je 0x461495
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [edi + 0x95], 0
mov byte [edi + 0x94], 0
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
dec ebx
test esi, esi
je 0x4614b4
mov eax, dword [esi + 4]
push eax
call edi
test ebx, ebx
jg 0x4614a9
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], vtable.._AV__DynamicScopeBuffer__E__.0
test eax, eax
je 0x4614d1
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
mov ax, bp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0x20
Function at 0x4645f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
mov al, byte [0x49bcc0]
sub esp, 0x10
test al, al
push ebx
push ebp
push esi
mov esi, ecx
jne 0x46460c
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
mov al, byte [esi + 8]
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
test al, al
je 0x464625
mov eax, dword [esi + 4]
push 1
push eax
call ebx
mov byte [esi + 8], 0
mov eax, dword [esi + 4]
or ebp, 0xffffffff
cmp eax, ebp
je 0x464639
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], ebp
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, ebp
mov dword [esi + 4], eax
jne 0x464657
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 8
xor ecx, ecx
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
push edi
mov dword [esp + 0x1c], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, ebp
mov dword [esp + 0x14], eax
setne al
test al, al
jne 0x4646a3
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x464757
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 4]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
lea edi, [esi + 0xc]
mov word [esp + 0x12], ax
push 0x10
mov eax, dword [edi]
push eax
push ecx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4646e3
mov byte [esi + 8], 1
jmp 0x464710
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x464710
push 0
push 0x1388
push 1
push edi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
jne 0x46470e
mov byte [esi + 8], 1
jmp 0x464710
call ebx
mov ecx, dword [edi]
push ecx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov dl, byte [esi + 8]
mov eax, dword [edi]
mov ecx, dword [esi + 4]
neg dl
sbb edx, edx
and edx, 0x21
push edx
push eax
push ecx
call ebp
mov al, byte [esi + 8]
test al, al
jne 0x46477b
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x46477b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, byte [esi + 8]
mov dword [esi + 4], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov al, byte [esi + 8]
test al, al
je 0x46476a
mov edx, dword [esi + 4]
push 1
push edx
call ebx
mov byte [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x46477b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], ebp
mov al, byte [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret

Function at 0x43b65f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
mov ebx, edi
call fcn.0043b691
add ebx, 0x122b58cf
xor dword [esi], ecx
add ebx, ebx
dec edi
inc esi
mov ebx, edi
inc edi
add edi, 0xfc8d003a
cmp esi, edx
jne fcn.0043b65f
sub edi, ebx
mov edi, 0xfd82ac1d
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x422c55e8
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6c6e6ffa
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x423cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058aa
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x423cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423cb0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x402d92
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ad7c]
sub esi, dword [0x41ed88]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x423c20], eax
jle 0x402ef0
push dword [0x41ed84]
call fcn.00402d7b
push ebx
push ebx
push dword [0x41ed88]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ad78], esi
mov dword [0x40acec], ebx
mov ebp, 0x412d78
mov eax, dword [0x41ed80]
sub eax, dword [0x41ed84]
mov edi, 0x4000
cmp eax, edi
jg 0x402e07
mov edi, eax
push edi
mov esi, 0x41ad80
push esi
call fcn.00402d49
test eax, eax
je 0x402f02
add dword [0x41ed84], edi
mov dword [0x412d08], esi
mov dword [0x412d0c], edi
cmp dword [0x423bcc], ebx
je 0x402e5e
cmp dword [0x423ca0], ebx
jne 0x402e5e
mov eax, dword [0x41ad78]
sub eax, dword [0x41ad7c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ed88]
mov dword [0x40acec], eax
call fcn.00402caa
pop ecx
mov ecx, 0x412cf0
mov dword [0x412d10], ebp
mov dword [0x412d14], 0x8000
call fcn.00406090
test eax, eax
jl 0x402f07
mov esi, dword [0x412d10]
sub esi, ebp
je 0x402ebc
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f0c
cmp esi, dword [esp + 0x10]
jne 0x402f0c
add dword [0x41ed88], esi
cmp dword [0x412d0c], ebx
jne 0x402e2d
jmp 0x402ec8
cmp dword [0x412d0c], ebx
jne 0x402f07
cmp edi, ebx
je 0x402f07
mov eax, dword [0x41ad7c]
mov ecx, eax
sub ecx, dword [0x41ed88]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402df1
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402caa
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402efa
push 0xfffffffffffffffd
pop eax
jmp 0x402efa
push 0xfffffffffffffffe
jmp 0x402f09
Function at 0x402f10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f3c
mov ecx, dword [0x423c18]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x41ad7c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402d92
cmp eax, edi
jl 0x403035
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403031
cmp dword [ebp - 4], esi
jne 0x403031
push dword [ebp + 8]
add dword [0x41ad7c], esi
call fcn.00402d92
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403034
cmp dword [ebp + 0x10], edi
jne 0x403000
cmp dword [ebp + 8], edi
jle 0x40302c
mov esi, 0x41ad80
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fb0
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403031
cmp edi, dword [ebp - 4]
jne 0x403031
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ffc
cmp dword [ebp + 0x14], edi
jne 0x402ffc
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41ad7c], eax
cmp dword [ebp + 8], 0
jg 0x402fa3
jmp 0x40302c
push 0xfffffffffffffffe
jmp 0x403033
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40300b
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403031
mov eax, dword [ebp - 4]
add dword [0x41ad7c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403034
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405495
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4211d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4211d0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054d0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405617
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405634
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405637
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405666
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056aa
test edi, edi
jne 0x405671
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056a4

Function at 0x4056ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40571f
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40570e
cmp dword [ebp + 0x14], 1
je 0x405710
cmp dword [ebp + 0x14], 2
je 0x405710
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405968
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421218
push esi
call fcn.004057c7
push esi
call fcn.004055a0
mov edi, eax
test edi, edi
jne 0x405989
xor eax, eax
jmp 0x4059e1
push edi
call fcn.004057e9
test byte [0x423c28], 0x80
je 0x4059a2
mov al, byte [edi]
test al, al
je 0x405985
cmp al, 0x5c
je 0x405985
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4059c2
push esi
call fcn.00405883
test eax, eax
je 0x4059bc
test byte [eax], 0x10
je 0x4059e6
push esi
call fcn.00405941
push esi
call ebx
cmp eax, edi
jg 0x4059ad
push esi
call fcn.00405914
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059e0
Function at 0x405c9a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004058aa
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405cbe
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405df7
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421618], 0x4c554e
mov edi, 0x400
mov ebp, 0x421618
test esi, esi
je 0x405d02
push 1
push 0
push esi
call fcn.00405637
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dfd
cmp eax, edi
jg 0x405dfd
push edi
mov esi, 0x421f58
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dfd
cmp eax, edi
jg 0x405dfd
push esi
push ebp
push str._s_s_r_n
push 0x421a18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bcc]
push dword [eax + 0x128]
push esi
call fcn.00405a40
push 4
push 0xc0000000
push esi
call fcn.00405637
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405df7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405df0
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405df0
cmp edi, dword [esp + 0x18]
jne 0x405df0
push str._Rename__r_n
push esi
call fcn.004059ea
test eax, eax
jne 0x405e04
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057c7
add edi, 0xa
mov eax, edi
push ebx
push 0x421a18
add eax, esi
push eax
call fcn.004055f3
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x40762c
add eax, 0xa
push eax
call fcn.004059ea
test eax, eax
je 0x405dbb
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405e2b
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e20
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dbd