joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c33a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1003c349
pop dword [ebp - 0x40]
mov eax, 0x1003c349
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xf649ddf3
sub dword [ebp - 0x50], 0xa7f798a8
mov dword [ebp - 0x4c], 0x9d6fd243
add dword [ebp - 0x4c], 0x94c37a02
mov dword [ebp - 0x48], 0x88c35581
add dword [ebp - 0x48], 0xc388eead
mov dword [ebp - 0x44], 0xf8e6ef25
sub dword [ebp - 0x44], 0xf8e6ef25
lea eax, [ebp - 0x50]
push eax
mov eax, 0xf3af2319
add eax, 0x1c54bd63
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x117dfbb8
add dword [ebp - 0x50], 0x62f46d9e
mov dword [ebp - 0x4c], 0xed6c5542
add dword [ebp - 0x4c], 0x54000c33
mov dword [ebp - 0x48], 0x53334663
sub dword [ebp - 0x48], 0xefc3d9f7
mov dword [ebp - 0x44], 0xbcbe03c1
sub dword [ebp - 0x44], 0xbcbe03c1
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xa5319046
sub eax, 0x952dafc2
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3e736
push 0
call eax
mov ecx, 0xa602d1ea
sub ecx, 0xa602868e
xor ebx, ebx
add ebx, eax
mov esi, 0x8d0a3d5a
add esi, 0x82fcd4a6
add esi, dword [ebp - 0x40]
mov edi, 0x36d260ed
sub edi, 0xef5f212
sub dword [ebp - 0x38], ecx
mov edx, dword [esi]
sub edx, edi
xor dword [ebp - 0x10], 0xd2457af4
mov dword [ebx], edx
add dword [ebp - 0x18], 0x62bd72c9
add ebx, 0xf20b4c9e
sub ebx, 0xf20b4c9a
add esi, 0xacb385d8
add esi, 0x534c7a2c
loop 0x1003c468
add eax, 0x12043
mov ebx, eax
add eax, 0x67b96f1e
sub eax, 0x67b96f19
mov ecx, 0x4ee1aa0e
sub ecx, 0x3ee1aa0e
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x41b2b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x41b2bf
pop dword [ebp - 0xc]
mov eax, 0xf15b66b4
sub eax, 0xf119b3f5
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x458f59de
sub dword [ebp - 0x1c], 0xf73d1493
mov dword [ebp - 0x18], 0x97f89a01
add dword [ebp - 0x18], 0x9a3ab244
mov dword [ebp - 0x14], 0xd1ea3dba
add dword [ebp - 0x14], 0x7a620674
mov dword [ebp - 0x10], 0xb7f5a04b
add dword [ebp - 0x10], 0x480a5fb5
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x9a474c55
sub dword [ebp - 0x1c], 0x25d4e2ff
mov dword [ebp - 0x18], 0x2f9dcf2e
add dword [ebp - 0x18], 0x11ce9247
mov dword [ebp - 0x14], 0x3530fa52
add dword [ebp - 0x14], 0x2e3e721a
mov dword [ebp - 0x10], 0x5e4f2324
sub dword [ebp - 0x10], 0x5e4f2324
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x365a9a98
sub eax, 0x3616d7a8
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x4a33b
push 0
call eax
mov ecx, 0x2c6ab45c
sub ecx, 0x2c6a5b25
mov ebx, eax
mov esi, 0x13d355a6
sub esi, 0x138bffa6
add esi, dword [ebp - 0xc]
mov edi, 0x8034e694
sub edi, 0xe61cd522
add dword [ebp - 8], 0x3a00a826
mov edx, dword [esi]
xor dword [ebp - 4], 0x1f2ee482
add edx, edi
add dword [ebp - 4], 0xe42260f7
mov dword [ebx], edx
sub dword [ebp - 4], 0x8e6ccef6
add ebx, 0x518b897d
add ebx, 0xae747687
add esi, 4
loop 0x41b3dc
add eax, 0x157af
xor ebx, ebx
add ebx, eax
add eax, 0x59962f3d
sub eax, 0x59962f38
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x42105f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44e8a8
call fcn.00422e90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x420f16
xor ebx, ebx
jmp 0x420f49
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x420f12
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x420f12
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x420f49
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004279ab
test eax, eax
jne 0x420f5d
push 0x1c
call main
pop ecx
call fcn.00427918
test eax, eax
jne 0x420f6e
push 0x10
call main
pop ecx
call fcn.00428296
and dword [ebp - 4], 0
call fcn.004279c0
test eax, eax
jns 0x420f88
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x457adc], eax
call main
mov dword [0x455a24], eax
call main
test eax, eax
jns 0x420fae
push 8
call main
pop ecx
call fcn.00427eb1
test eax, eax
jns 0x420fbf
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x420fd2
push eax
call main
pop ecx
call fcn.00428714
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x420ff4
push esi
call main
call fcn.00426cd7
jmp 0x421029
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00422ed5
ret
call main
jmp 0x420ee8
Function at 0xef3a30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0xeb00ae21]
or byte [eax], al
sbb al, 0xc
add byte [eax], al
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
jmp 0xef3a3a
pushal
call 0xef3a40
pop ebp
sub ebp, 0x10
sub ebp, 0xaf3a30
jmp 0xef3a56
mov eax, 0xaf3a30
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cc
mov edx, 0xe1a23563
xor byte [eax], dl
inc eax
dec ecx
jne 0xef3a6d
jmp 0xef3a80
call 0x60da2333
arpl word [ebx + 0x63], sp
loop 0xef3a2c
wait
arpl word [ebx + 0x63], sp
pushal
scasb al, byte es:[edi]
invalid
Function at 0x4022c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0x6ad7
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x1d87
mov dword [esp + 0x5c], 0x4630
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0x3c63
mov esi, dword [esp + 0x5c]
sub edx, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, esp
mov dword [ecx], eax
mov dword [esp + 0x20], esi
call fcn.00402b60
sub esp, 4
mov ecx, 0x4ee0
xor edx, edx
add edx, 0x18
mov dword [esp + 0x48], eax
mov di, word [esp + 0x76]
mov bx, di
xor bx, 0x25cf
mov word [esp + 0x76], bx
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x48]
mov bx, word [esi + 0x14]
add eax, edx
movzx edx, bx
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x78], ecx
xor eax, 0x4630
mov dword [esp + 0x30], eax
mov word [esp + 0x1e], di
jmp 0x4023fd
mov eax, dword [esp + 0x5c]
add eax, 0xffffeeb3
cmp eax, dword [esp + 0x44]
jbe 0x40245e
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0x68f
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
xor ecx, 0x656c
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
add esi, dword [ecx + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, esp
mov dword [ecx + 8], eax
mov dword [ecx + 4], esi
mov dword [ecx], edx
call fcn.004037f0
sub esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x40248d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
movzx eax, word [eax + 6]
cmp ecx, eax
jae 0x40245e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
add eax, 0x13b5
adc ecx, 0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov di, word [esp + 0x1e]
mov word [esp + 0x76], di
sub eax, edx
sbb ecx, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jb 0x402385
jmp 0x40245e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
mov ecx, dword [ecx + 0x54]
mov esi, esp
mov dword [esi + 8], ecx
mov dword [esi + 4], edx
mov dword [esi], eax
call fcn.004037f0
sub esp, 0xc
mov dword [esp + 0xc], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
not eax
not ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x40]
add eax, 0x28
mov dword [esp + 0x40], eax
jmp 0x4023fd
Function at 0x402b60
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 8]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0x29c0
mov dword [esp + 0x64], 0x3435
mov ecx, dword [esp + 0x64]
mov edx, ecx
add edx, 0x29b6
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x64]
add edx, 0xfb0
cmp edx, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
ja 0x402d0f
jmp 0x402ca1
mov eax, dword [esp + 0x64]
mov ecx, 0x7743
sub ecx, eax
mov eax, esp
mov dword [eax + 0xc], ecx
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
call eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov al, byte [esp + 0x6b]
sub al, byte [esp + 0x6b]
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x6b], al
mov ecx, dword [ecx + 0x3c]
add ecx, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x30]
and ecx, ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
cmp dword [edx], 0x4550
jne 0x402c6c
jmp 0x402c38
mov dword [esp + 0x40], 0
jmp 0x402d0f
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
xor eax, 0x148f
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x60]
mov dword [esp + 0x58], edx
xor edx, edx
mov esi, 0x378a
sub esi, eax
sbb edx, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], esi
jb 0x402c97
jmp 0x402c6c
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
add eax, 0x24e8
adc ecx, 0
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
sub eax, edx
sbb ecx, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jb 0x402c2b
jmp 0x402bbb
mov eax, dword [esp + 0x58]
mov dword [esp + 0x40], eax
jmp 0x402d0f
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
xor eax, 0x50a3
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0x61c7
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
add edx, 0xffffe8b9
adc esi, 0xffffffff
add edi, 0xffffbc38
adc ebx, 0xffffffff
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x34]
mov dword [esp + 0x44], edi
sub edx, eax
sbb esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
jae 0x402c38
jmp 0x402bf8
mov eax, dword [esp + 0x40]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x405000
Capabilities:
Get memory capacity

Disassembly:
mov dword [0x41f9e4], esi
push ebp
push esp
mov dword [0x41f9e8], edi
pop dword [0x41f9f4]
mov dword [0x41f9ec], ebx
pop dword [0x41f9f0]
mov dword [0x41f9e4], esi
jmp fcn.00401870
Function at 0x4036f1
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402771
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403722
push esi
lea ecx, [ebp - 0x18]
call fcn.00401172
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403736
cmp ax, 0x2f
jne 0x40373f
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403765
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403758
cmp ax, 0x5c
je 0x403758
dec esi
test esi, esi
jg 0x403743
test esi, esi
je 0x403814
and word [edi + esi*2], 0
push edi
call fcn.00401b75
test eax, eax
pop ecx
je 0x403754
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x40379c
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403387
test eax, eax
pop ecx
pop ecx
je 0x40379c
xor esi, esi
jmp 0x403839
push edi
call fcn.00401b75
test eax, eax
pop ecx
jne 0x4037b6
push edi
push 0xc
push 1
call fcn.00408dbf
add esp, 0xc
jmp 0x403795
cmp esi, ebx
jge 0x403808
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4037ee
jmp 0x4037ed
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x4037f4
cmp ax, 0x2f
je 0x4037f4
inc esi
cmp word [edi + esi*2], cx
jne 0x4037dd
push edi
mov word [edi + esi*2], cx
call fcn.00401b75
test eax, eax
pop ecx
je 0x4037a7
cmp esi, dword [ebp - 4]
jl 0x4037ba
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403859
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403844
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403844
cmp ax, 0x7a
ja 0x403844
cmp word [ecx + 2], 0x3a
jne 0x403844
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403859
push ecx
push 0xc
push 1
call fcn.00408dbf
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406df8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
Function at 0x401030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40440f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x407028
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00403edc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4010f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40443f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x407034
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00403edc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4011a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40446f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x40703c
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00403edc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x403620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x404a3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x4071e0
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00403edc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x403c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x404a8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x407358
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00403edc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x403d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x404abf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x407374
push ecx
push 8
push 1
push 5
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00403edc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x403e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x404aef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x407380
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00403edc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.2402231708164053059091012
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.2402231708164053059091012]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.2402231708164053059091012
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.2402231708164053059091012]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret