joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413290
Capabilities:
Access peb ldr_data
Get socket status

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f490
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, ecx
push esi
push edi
lea eax, [ebp + 0x214]
lea esi, [ebp + 0xc]
mov ecx, 0x41
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp + 0x318]
lea esi, [ebp + 0x110]
mov ecx, 0x41
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x8460]
push esi
push 0
push edx
push eax
mov eax, dword [ebp + 0x847c]
inc eax
push eax
call dword [sym.imp.WSOCK32.dll_select]
or edi, 0xffffffff
mov dword [ebp + 0x8468], eax
cmp eax, edi
mov dword [esi], 0
mov dword [ebp + 0x8464], 0x186a0
jne 0x4133c2
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
je 0x4133dd
push 0x429bf8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 0
call esi
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00415e40
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
push str._SCModule__socket_select_return__1_errstr___s
push eax
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call fcn.0041d0e6
mov ecx, dword [esp + 0xc]
push ecx
push 1
call fcn.00415ce0
add esp, 8
lea ecx, [esp + 0xc]
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.004164a0
add esp, 4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 4], 0
call fcn.00415a00
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], edi
call fcn.0041d0e6
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
test eax, eax
je 0x4133dd
cmp dword [ebp + 0x420], edi
je 0x4133d5
mov ecx, ebp
call fcn.00413400
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x60]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4135e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f4e0
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x429c00]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x434]
mov dword [esi + 0x424], eax
call fcn.004108b0
test eax, eax
jg 0x413632
mov ecx, esi
call fcn.004142a0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [0x429c00]
lea ebx, [esi + 0x4438]
mov dword [esp + 0x10], ecx
cmp eax, 0x4000
mov ebp, eax
jl 0x413650
mov ebp, 0x4000
mov edx, dword [esi + 0x420]
push 0
push ebp
push ebx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
test edi, edi
jl 0x4136b6
je 0x413761
mov ecx, dword [esi + 0x434]
push edi
push ebx
call fcn.00410620
mov ecx, esi
call fcn.004142a0
mov ecx, dword [esi + 0x434]
call fcn.004108b0
test eax, eax
jle 0x413768
cmp edi, ebp
jne 0x413768
mov ecx, dword [0x429c00]
mov edi, dword [esp + 0x10]
sub ecx, edi
cmp ecx, 0x7d0
jae 0x413768
jmp 0x413642
mov edi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x413768
call edi
cmp eax, 0x2714
je 0x413768
push 0x429bf8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x20], 0
call edi
lea edx, [esp + 0x14]
push eax
push edx
call fcn.00415e40
add esp, 8
mov eax, dword [eax]
mov byte [esp + 0x20], 1
push eax
call edi
push eax
lea ecx, [esp + 0x18]
push str._SCModule__OnCommRead_error:_d_errDsc___s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call fcn.0041d0e6
mov edx, dword [esp + 0x10]
push edx
push 1
call fcn.00415ce0
add esp, 8
mov ecx, esi
call fcn.00413c80
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041d0e6
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, esi
call fcn.00413820
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x413900
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f500
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
mov eax, dword [esi + 0x420]
cmp eax, edi
je 0x413936
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0x420], edi
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, edi
mov dword [esi + 0x420], eax
jne 0x4139b7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00415e40
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push ecx
push 0xc8
push edx
mov dword [esp + 0x38], 0
call fcn.00415d70
mov eax, dword [eax]
mov byte [esp + 0x38], 1
push eax
push 2
call fcn.00415ce0
add esp, 0x1c
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.0041d0e6
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], edi
call fcn.0041d0e6
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [esp + 0x24], 1
call edi
mov eax, dword [esi + 0x420]
lea edx, [esp + 0x14]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov edx, dword [esi + 0x420]
lea ecx, [esp + 0x18]
push 4
push ecx
push 1
push 6
push edx
mov dword [esp + 0x2c], 1
call edi
mov eax, dword [esi + 0xc]
xor ecx, ecx
test eax, eax
jbe 0x413a2f
mov edi, dword [esi + 0x420]
lea edx, [esi + 0x10]
cmp dword [edx], edi
je 0x413a2f
inc ecx
add edx, 4
cmp ecx, eax
jb 0x413a23
cmp ecx, eax
jne 0x413a49
cmp eax, 0x40
jae 0x413a49
mov eax, dword [esi + 0x420]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0x110]
xor eax, eax
test ecx, ecx
jbe 0x413a6d
mov edi, dword [esi + 0x420]
lea edx, [esi + 0x114]
cmp dword [edx], edi
je 0x413a6d
inc eax
add edx, 4
cmp eax, ecx
jb 0x413a61
cmp eax, ecx
jne 0x413a90
cmp ecx, 0x40
jae 0x413a90
mov ecx, dword [esi + 0x420]
mov dword [esi + eax*4 + 0x114], ecx
mov eax, dword [esi + 0x110]
inc eax
mov dword [esi + 0x110], eax
mov ecx, esi
call fcn.004144f0
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x413ab0
Capabilities:
Connect socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f530
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x41c]
test eax, eax
je 0x413af8
push str._SCModule__Connect_to_proxy_but_find_m_commStatus_isnt_UNLINK_
push 3
call fcn.00415ce0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, esi
call fcn.00413900
test eax, eax
jne 0x413b14
pop edi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov dword [esi + 0x41c], 1
mov eax, dword [0x429c00]
push 0x7f000001
mov dword [esi + 0x424], eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WSOCK32.dll_htonl]
mov cx, word [esi + 0x8470]
mov dword [esp + 0x1c], eax
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
lea edx, [esp + 0xc]
push 0x7f000001
push edx
mov word [esp + 0x22], ax
call fcn.004065d0
mov edx, dword [eax]
xor ecx, ecx
mov cx, word [esi + 0x8470]
lea eax, [esp + 0x10]
push ecx
push edx
push 0xce
push eax
mov dword [esp + 0x48], 0
call fcn.00415d70
mov eax, dword [eax]
mov byte [esp + 0x48], 1
push eax
push 3
call fcn.00415ce0
add esp, 0x20
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.0041d0e6
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041d0e6
mov edx, dword [esi + 0x420]
lea ecx, [esp + 0x18]
push 0x10
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x413c61
mov edi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call edi
cmp eax, 0x2734
je 0x413c68
call edi
cmp eax, 0x2733
je 0x413c68
call edi
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00415e40
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push 0xc9
push edx
mov dword [esp + 0x44], 2
call fcn.00415d70
mov eax, dword [eax]
mov byte [esp + 0x44], 3
push eax
push 3
call fcn.00415ce0
add esp, 0x1c
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.0041d0e6
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041d0e6
mov ecx, esi
call fcn.00413c80
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, esi
call fcn.00413840
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4140e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f550
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
lea eax, [esi + 0x438]
push ebx
push edi
push eax
push ebp
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
jne 0x41416b
mov edx, dword [esi + 0x110]
xor ecx, ecx
cmp edx, ebx
jbe 0x414284
lea edi, [esi + 0x114]
cmp dword [edi], ebp
je 0x414140
inc ecx
add edi, 4
cmp ecx, edx
jb 0x41412f
jmp 0x414284
dec edx
cmp ecx, edx
jae 0x414160
lea edx, [esi + ecx*4 + 0x114]
mov edi, dword [edx + 4]
inc ecx
mov dword [edx], edi
mov edi, dword [esi + 0x110]
add edx, 4
dec edi
cmp ecx, edi
jb 0x41414c
dec dword [esi + 0x110]
jmp 0x414284
mov ebp, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, ebx
jl 0x4141cf
cmp eax, edi
jge 0x41422e
mov edx, dword [esi + 0x110]
xor ecx, ecx
cmp edx, ebx
jbe 0x4141a1
lea edi, [esi + 0x114]
mov ebx, dword [edi]
mov ebp, dword [esp + 0x24]
cmp ebx, ebp
je 0x4141a1
inc ecx
add edi, 4
cmp ecx, edx
jb 0x41418f
cmp ecx, edx
jne 0x414284
cmp edx, 0x40
jae 0x414284
mov edx, dword [esp + 0x24]
mov dword [esi + ecx*4 + 0x114], edx
mov ecx, dword [esi + 0x110]
inc ecx
mov dword [esi + 0x110], ecx
jmp 0x414284
call ebp
cmp eax, 0x2733
jne 0x414221
mov ecx, dword [esi + 0x110]
xor eax, eax
cmp ecx, ebx
jbe 0x4141fc
lea edx, [esi + 0x114]
mov edi, dword [edx]
mov ebx, dword [esp + 0x24]
cmp edi, ebx
je 0x4141fc
inc eax
add edx, 4
cmp eax, ecx
jb 0x4141ea
cmp eax, ecx
jne 0x41421d
cmp ecx, 0x40
jae 0x41421d
mov ecx, dword [esp + 0x24]
mov dword [esi + eax*4 + 0x114], ecx
mov eax, dword [esi + 0x110]
inc eax
mov dword [esi + 0x110], eax
xor eax, eax
jmp 0x414284
call ebp
cmp eax, 0x2714
jne 0x41422e
xor eax, eax
jmp 0x414284
call ebp
lea edx, [esp + 0x20]
push eax
push edx
call fcn.00415e40
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
push 0xcd
push ecx
mov dword [esp + 0x2c], ebx
call fcn.00415d70
mov eax, dword [eax]
mov byte [esp + 0x2c], 1
push eax
push 1
call fcn.00415ce0
add esp, 0x1c
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], bl
call fcn.0041d0e6
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041d0e6
or eax, 0xffffffff
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x4149e0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x108]
push edi
mov dword [esp + 0x14], ecx
xor edx, edx
movsx eax, byte [edx + str.80_]
mov ecx, eax
and eax, 7
sar ecx, 3
movsx cx, byte [ecx + esi]
test word [eax*2 + 0x4287e4], cx
setne al
mov byte [esp + edx + 0x50], al
inc edx
cmp edx, 0x38
jl 0x4149f7
mov eax, 0x1e
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x110], 1
je 0x414a38
lea eax, [ebx + ebx]
movsx esi, byte [ebx + 0x42888c]
lea edi, [esp + eax*4 + 0x8c]
lea ebp, [esp + eax*4 + 0x88]
xor eax, eax
mov edx, esi
mov dword [edi], 0
mov dword [ebp], 0
cmp edx, 0x1c
jge 0x414a69
mov cl, byte [esp + edx + 0x50]
jmp 0x414a6d
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x1c
jl 0x414a5e
mov eax, 0x1c
lea edx, [esi + 0x1c]
cmp edx, 0x38
jge 0x414a8b
mov cl, byte [esp + edx + 0x50]
jmp 0x414a8f
mov cl, byte [esp + edx + 0x34]
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x38
jl 0x414a80
xor edx, edx
mov eax, 0x4287f4
movsx ecx, byte [edx + 0x42889c]
cmp byte [esp + ecx + 0x18], 0
je 0x414ab9
mov ecx, dword [eax]
mov esi, dword [ebp]
or esi, ecx
mov dword [ebp], esi
movsx ecx, byte [edx + 0x4288b4]
cmp byte [esp + ecx + 0x18], 0
je 0x414acf
mov ecx, dword [eax]
mov esi, dword [edi]
or esi, ecx
mov dword [edi], esi
add eax, 4
inc edx
cmp eax, str.80_
jl 0x414aa1
mov eax, dword [esp + 0x10]
inc ebx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x414a2b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x88]
push edx
call fcn.00414b10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret 8
Function at 0x415400
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [ecx - 8]
mov eax, esi
mov dword [esp + 0x10], esi
cdq
and edx, 7
add eax, edx
sar eax, 3
and esi, reloc.WSOCK32.dll_getsockopt
mov dword [esp + 8], eax
jns 0x41542b
dec esi
or esi, 0xfffffff8
inc esi
xor edx, edx
test eax, eax
mov dword [esp + 0xc], edx
jl 0x4154e1
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push edi
mov dword [esp + 0x10], ecx
cmp edx, eax
jne 0x4154a5
test esi, esi
je 0x4154c2
xor ecx, ecx
test esi, esi
jle 0x41547e
lea edi, [esp + 0x20]
mov edx, ebp
sub edi, ebp
mov ebx, dword [esp + 0x1c]
mov eax, ecx
sub eax, esi
add eax, ebx
mov ebx, dword [esp + 0x2c]
mov bl, byte [eax + ebx]
mov al, byte [edx]
xor al, bl
mov byte [edi + edx], bl
mov byte [edx], al
inc ecx
inc edx
cmp ecx, esi
jl 0x41545a
mov eax, dword [esp + 0x14]
mov edi, 8
xor edx, edx
sub edi, esi
test edi, edi
jle 0x4154c2
lea ebx, [esp + esi + 0x20]
mov byte [ebx + edx], 0
mov al, byte [esp + ecx + 0x20]
xor byte [ecx + ebp], al
inc edx
cmp edx, edi
jl 0x41548f
mov eax, dword [esp + 0x14]
jmp 0x4154c2
lea edi, [esp + 0x20]
xor edx, edx
mov ecx, ebp
sub edi, ebp
mov ebx, dword [esp + 0x10]
mov bl, byte [ebx + edx]
xor byte [ecx], bl
mov byte [ecx + edi], bl
inc edx
inc ecx
cmp edx, 8
jl 0x4154af
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
inc edx
add edi, 8
cmp edx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
jle 0x415446
pop edi
pop ebp
pop ebx
lea ecx, [esp + 0x20]
call fcn.0041d0e6
pop esi
add esp, 0x18
ret 8
Function at 0x416010
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41f710
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4161ef
push ebx
push edi
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0
call fcn.0041d152
push 0x427c48
lea ecx, [esp + 0x10]
mov bl, 1
push esi
push ecx
mov byte [esp + 0x54], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0xc]
mov edi, eax
mov byte [esp + 0x48], bl
call fcn.0041d0e6
test edi, edi
je 0x4161ce
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4161c1
mov edx, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [edx + 0x40]
test eax, eax
je 0x41615c
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
mov byte [esp + 0x58], 3
call sub.MFC42.DLL_operator_2
push 0x427c44
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 4
call fcn.0041d0e6
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 3
call fcn.0041d0e6
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], bl
call fcn.0041d0e6
lea eax, [esp + 0x54]
push eax
call fcn.00416010
mov ecx, dword [esp + 0x58]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4161c1
lea edx, [esp + 0x20]
lea ecx, [esp + 0x28]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea eax, [esp + 0x20]
push esi
push eax
mov byte [esp + 0x58], 6
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 6
call fcn.0041d0e6
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], bl
call fcn.0041d0e6
mov ecx, dword [esp + 0x54]
push ecx
call edi
mov edx, dword [esp + 0x54]
and al, 0xfe
push eax
push edx
call ebp
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4160a3
pop ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call fcn.0041d0e6
pop edi
pop ebx
mov ecx, dword [esp + 0x38]
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x416200
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00416010
mov eax, dword [esi]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
Function at 0x4164a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41f786
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x838
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x850]
lea edx, [esp + 0x40]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x854]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
lea eax, [esp + 0x24]
push eax
call fcn.00416220
add esp, 0x10
push str.sc_file_log
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x854], 0
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x848], 2
call fcn.0041d0e6
mov edi, 0x429190
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
mov dword [esp + 9], edx
mov byte [esp + 8], 0
not ecx
mov dword [esp + 0xd], edx
sub edi, ecx
mov byte [esp + 0x11], dl
lea edx, [esp + 8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
cmp eax, 0xffffffff
je 0x4165bd
cmp dword [esp + 0x30], 0x19000
jl 0x4165bd
mov edi, 0x42918c
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
mov dword [esp + 8], edx
not ecx
mov dword [esp + 0xc], edx
sub edi, ecx
mov word [esp + 0x10], dx
lea edx, [esp + 8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x416612
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
lea edx, [esp + 0x44]
not ecx
dec ecx
push ecx
push 1
push edx
call edi
push esi
push 2
push 1
push 0x429188
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x24
lea ecx, [esp + 0x14]
mov dword [esp + 0x848], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 0x840]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x844
ret
Function at 0x416770
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
mov esi, ecx
je 0x416857
cmp byte [eax], 0
je 0x416857
mov ecx, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4167ac
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
ret 8
push 2
push 0
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4167dd
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
ret 8
lea edx, [ebx + 1]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x416806
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0
push 0
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x20
mov ecx, esi
call fcn.00416c00
lea eax, [edi + ebx]
mov ecx, esi
mov byte [eax], 0
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov byte [esi + 0x34], 1
mov dword [esi + 0x30], 1
call fcn.004168e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
ret 8

Function at 0x417800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f8b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.00416ab0
mov ecx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0041d314
lea edx, [esp + 8]
mov ecx, edi
push edx
mov dword [esp + 0x18], 0
call fcn.00417920
push 8
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
mov byte [esp + 0x14], 1
je 0x417878
lea eax, [esp + 8]
lea ecx, [edi + 4]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [edi], 0x421db0
jmp 0x41787a
xor edi, edi
mov eax, dword [esi + 0x38]
push ebp
mov ebp, dword [esi + 0x30]
mov byte [esp + 0x18], 0
test eax, eax
jne 0x4178b7
mov ecx, dword [esi + 0x40]
push 0xc
lea edx, [esi + 0x3c]
push ecx
push edx
call sub.MFC42.DLL_CPlex::Create
mov ecx, dword [esi + 0x40]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x4178b7
inc ecx
mov edx, dword [esi + 0x38]
mov dword [eax], edx
mov dword [esi + 0x38], eax
sub eax, 0xc
dec ecx
jne 0x4178a9
mov eax, dword [esi + 0x38]
mov ecx, dword [eax]
mov dword [esi + 0x38], ecx
mov dword [eax + 4], ebp
mov dword [eax], 0
mov ebp, dword [esi + 0x34]
inc ebp
mov dword [esi + 0x34], ebp
mov dword [eax + 8], 0
mov dword [eax + 8], edi
mov ecx, dword [esi + 0x30]
test ecx, ecx
pop ebp
je 0x4178e5
mov dword [ecx], eax
jmp 0x4178e8
mov dword [esi + 0x2c], eax
lea ecx, [esp + 8]
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], 0xffffffff
call fcn.0041d0e6
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219