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

Disassembly:
push 0xffffffffffffffff
push 0x428ac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov ebp, ecx
mov byte [esp + 0x13], 0
xor esi, esi
mov bl, 0xa
cmp esi, 0x2800
jge 0x412930
mov eax, dword [ebp + 0x54]
mov cl, byte [eax + 0xc]
test cl, cl
jne 0x412930
mov cl, byte [0x433e54]
test cl, cl
jne 0x412930
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, dword [eax + 8]
call fcn.00426890
test eax, eax
jle 0x412930
mov dl, byte [esp + 0x13]
mov byte [esi + edi], dl
inc esi
cmp esi, 4
jl 0x412849
cmp byte [esi + edi - 4], 0xd
jne 0x412849
cmp byte [esi + edi - 3], bl
jne 0x412849
cmp byte [esi + edi - 2], 0xd
jne 0x412849
cmp byte [esi + edi - 1], bl
jne 0x412849
mov byte [esi + edi], 0
mov al, byte [0x433e61]
test al, al
je 0x41292c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x58]
lea edx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x20]
push ecx
push str..debug_response__d.dat
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
push eax
call fcn.00401400
mov ecx, dword [esp + 0x34]
push 0x431848
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x41291b
push ebp
push esi
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x412933
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41eac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
mov ecx, 9
mov edx, str.netbladeprotected
push ebx
push ebp
push esi
push edi
mov esi, str.0123456789abcdefghijklmnopqrstvuwxyz
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x3c]
xor ecx, ecx
mov eax, edi
sub edx, edi
mov esi, 0xf
movsx ebx, byte [edx + eax]
movsx ebp, byte [eax]
imul ebx, ebp
and ebx, 0x8000007f
jns 0x41eb03
dec ebx
or ebx, 0xffffff80
inc ebx
and ebx, 0xff
add ecx, ecx
xor ecx, ebx
inc eax
dec esi
jne 0x41eaec
and ecx, 0x800000ff
jns 0x41eb21
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
mov dl, byte [edi + 0xf]
sar eax, 4
cmp dl, byte [esp + eax + 0x10]
jne 0x41eb57
and ecx, reloc.WS2_32.dll_ntohs
jns 0x41eb42
dec ecx
or ecx, 0xfffffff0
inc ecx
mov al, byte [edi + 0x10]
mov dl, byte [esp + ecx + 0x10]
cmp al, dl
jne 0x41eb57
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
Function at 0x4212f0
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x429958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1458c]
mov dword [esp + 0x38], 0
test eax, eax
je 0x421325
call fcn.00421230
mov ecx, esi
call fcn.00421260
test eax, eax
jne 0x421354
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
lea eax, [esp + 0x40]
lea ecx, [esi + 0x8e0]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
push ecx
mov dword [esi + 0x8e4], ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4213a3
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov edx, dword [eax + 0xc]
push edi
push ebx
mov eax, dword [edx]
mov edi, dword [eax]
mov dword [esp + 0x10], edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0xf]
mov edx, dword [esp + 0xe]
mov eax, dword [esp + 0xd]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
and edi, 0xff
push eax
push edi
lea ecx, [esp + 0x24]
push str._d._d._d._d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esi + 0x14594]
add esp, 0x18
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x30]
mov edi, dword [eax + 0x38]
push ecx
push edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x2c]
push edx
push edi
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
mov ecx, dword [esi + 8]
call fcn.00426900
test eax, eax
pop edi
jne 0x421443
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
mov ecx, dword [esi + 8]
push 0x15f90
call fcn.004267b0
lea ecx, [esp + 0x40]
mov dword [esi + 0x1458c], 1
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x421600
Capabilities:
Check mutex on windows

Disassembly:
push str.NetbladeIf_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x421614
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
Function at 0x425380
Capabilities:
Get session user name

Disassembly:
push ecx
mov eax, dword [0x4343ec]
push ebx
push esi
cmp eax, 2
push edi
jne 0x425466
call fcn.00425530
test eax, eax
je 0x425461
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x4254d5
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x42540f
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, 0x433ae8
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4343f4], 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
cmp ecx, eax
jae 0x4254d5
mov edi, 0x433ae8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, ecx
jmp 0x4254bf
mov eax, dword [0x4343f4]
test eax, eax
jne 0x425461
mov edi, 0x433ae8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
cmp ecx, eax
jae 0x4254d5
mov edi, 0x433ae8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x4343ec]
test eax, eax
jbe 0x4254d5
cmp eax, 2
ja 0x4254d5
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4254cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x4254d5
mov edi, 0x433ae8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x4254d5
mov edi, 0x433ae8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x425db0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x108
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.WiseNetbladeIf
push 0
mov dword [0x4343f8], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x4343f8]
push eax
push str.WiseNetbladeIf
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x120]
add esp, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 8], eax
test esi, esi
mov dword [esp + 4], edx
je 0x425e2f
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x108
ret

Function at 0x4263e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x42640a
mov dword [esi], 0
mov eax, esi
pop esi
add esp, 0x190
ret
mov cx, word [esp + 4]
mov eax, esi
mov word [0x43440c], cx
mov dword [esi], 0xffffffff
pop esi
add esp, 0x190
ret

Function at 0x4264c0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 1
mov eax, dword [esi + 4]
test eax, eax
jl 0x4264d8
call fcn.00426510
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
pop esi
test eax, eax
jge 0x4264f0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
neg eax
dec eax
pop ecx
ret

Function at 0x426560
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x426578
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
test esi, esi
mov dword [esp + 0x14], eax
jne 0x42659f
mov dword [esp + 0xc], esi
jmp 0x4265d1
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4265d1
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42656e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x4265cb
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_bind]
xor ecx, ecx
pop edi
test eax, eax
setl cl
dec ecx
pop esi
mov eax, ecx
add esp, 0x10
ret 8
Function at 0x426610
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x426628
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x426677
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42661e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x426671
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
pop edi
neg eax
dec eax
pop esi
add esp, 0x10
ret 8

Function at 0x4266e0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push edi
test eax, eax
mov dword [esp + 4], 1
jge 0x4266f6
xor eax, eax
pop edi
pop ecx
ret
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
test edi, edi
jge 0x42670c
xor eax, eax
pop edi
pop ecx
ret
push esi
push 0x260
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x426730
mov ecx, eax
call fcn.00426440
mov esi, eax
test esi, esi
je 0x426732
mov dword [esi + 4], edi
jmp 0x426742
xor esi, esi
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push 4
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, esi
pop esi
pop edi
pop ecx
ret

Function at 0x4267b0
Capabilities:
Set socket configuration

Disassembly:
mov al, byte [0x43440c]
push esi
cmp al, 2
push edi
mov esi, ecx
jae 0x4267c4
pop edi
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x20], eax
call edi
cmp eax, 0xffffffff
jne 0x4267f5
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call edi
inc eax
pop edi
neg eax
sbb eax, eax
pop esi
ret 4
Function at 0x4014f3
Capabilities:
Get file size

Disassembly:
mov eax, 0x4807a0
call fcn.0046694c
sub esp, 0x134
push ebx
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4015c9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 4
push ebx
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4015c2
push esi
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x4015b8
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
mov byte [ebp - 0x3d], bl
call fcn.00401884
push 0x103
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00401a14
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.004669a0
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.00401093
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x14]
push esi
call fcn.00401495
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40168b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4016e8
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4016e0
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.004015ee
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4016ee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00466a9e
mov esi, eax
pop ecx
test esi, esi
je 0x40173c
xor edx, edx
test ebx, ebx
jbe 0x40173c
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x401726
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404507
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x40463a
cmp byte [ebp + 0xc], bl
jne 0x404583
lea eax, [esi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40463a
mov edi, dword [edi]
lea ecx, [ebp + 8]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x40462c
call fcn.00466ce0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.004054cf
push dword [ebp + 0xc]
jmp 0x404617
lea eax, [esi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40463a
mov edi, dword [edi]
lea ecx, [ebp - 4]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404629
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], edi
cmp word [edi], 0xfeff
jne 0x4045cb
lea eax, [edi + 2]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x4045d4
xor esi, esi
jmp 0x404605
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004670f0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp + 8]
push esi
call fcn.00466ce0
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.004054cf
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40463c
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4052c9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x405338
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x40531b
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x40531b
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x40531b
mov byte [ebp - 1], 1
jmp 0x405338
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x405338
cmp byte [ebp - 1], bl
jne 0x405338
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x405322
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x409801
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401166
mov ecx, eax
call fcn.0042a0e9
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x409842
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00409897
test eax, eax
jne 0x40988e
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x40985e
push esi
push edi
mov ecx, ebx
call fcn.00409897
test eax, eax
jne 0x40988e
push 0x4a8be4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.00434146
add esp, 0xc
test eax, eax
jge 0x40988e
push edi
push esi
push 4
call fcn.00434146
add esp, 0xc
test eax, eax
jge 0x40988e
xor eax, eax
jmp 0x409891
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x40c74a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
jne 0x40c773
push ebx
push ebx
call fcn.004681d7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40c78b
push ebx
push ebx
call fcn.004681d7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40c7a3
push ebx
push ebx
call fcn.004681d7
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x40c7b9
push ebx
push ebx
call fcn.004681d7
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00467210
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40cdc0
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x481739
call fcn.0046694c
sub esp, 0x47c
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.0040d00d
test al, al
je 0x40cdf3
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x40cf95
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x487]
mov byte [ebp - 0x488], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x488]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.0040d035
push 1
lea eax, [ebp + 0xb]
pop edi
lea ecx, [ebp - 0x60]
push edi
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.00401884
lea eax, [ebp - 0x60]
lea ecx, [esi + 0xd4]
push eax
mov dword [ebp - 4], ebx
call fcn.00401d3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00401093
lea eax, [ebp + 0xf]
push edi
push eax
lea ecx, [ebp - 0x88]
push dword [ebp + 0xc]
call fcn.00401884
lea eax, [ebp - 0x88]
lea ecx, [esi + 0xfc]
push eax
mov dword [ebp - 4], edi
call fcn.00401d3d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401093
push 0x2c
call fcn.00466a9e
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
mov dword [ebp - 4], 2
je 0x40cebc
lea ecx, [esi + 0xd4]
call fcn.0040afd2
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push 4
push esi
push eax
call fcn.0040cfa5
jmp 0x40cebe
xor eax, eax
mov dword [esi + 0x124], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push ebx
push esi
push 0x40cd6a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 4
mov dword [ebp + 8], eax
call fcn.00466a9e
pop ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push 0xff
push 0xffffffffffffffff
push ebx
mov dword [eax], ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x40cf47
push edi
push ebx
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40cf3a
cmp dword [ebp - 0x34], 0x8032
jne 0x40cf2e
mov ecx, dword [esi + 0x124]
call fcn.0040d4aa
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40cf08
push 0xff
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x14]
jmp 0x40cefa
push dword [ebp - 0x14]
call fcn.0043797a
mov esi, dword [esi + 0x124]
pop ecx
cmp esi, ebx
pop edi
je 0x40cf6a
lea ecx, [esi + 8]
call fcn.0040d1bd
push esi
call fcn.0043797a
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40cf74
xor eax, eax
jmp 0x40cf95
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x18], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8