joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e113
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x60
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov bl, cl
call fcn.0041db4d
push 0x68
push dword [0x44a7f4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x44a7ee], 0
mov esi, eax
mov ebp, 0xc2
jne 0x41e180
call fcn.0041c0cf
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x4422dc
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [0x44a7ee], 1
mov eax, 0x5f5e100
push eax
push eax
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x5c
push eax
push 0
push 0x43a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov byte [esp + 0x29], 0
inc ecx
mov dword [esp + 0x14], ecx
test bl, bl
je 0x41e1dd
mov eax, dword [esp + 0x18]
and eax, 0xbfffffff
mov dword [esp + 0x24], 0xa0
or eax, ecx
mov dword [esp + 0x14], 0x40000001
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push ecx
push 0x444
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.0040126f
push eax
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x5f5e100
push eax
push eax
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test bl, bl
je 0x41e23b
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 1
push 0x444
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x442620
push 0
push ebp
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004230d5
add esp, 0x60
ret
Function at 0x421937
Capabilities:
Delete file
Move file

Disassembly:
push 0x74
mov eax, 0x43b047
call fcn.00438ae6
mov esi, 0x44a99c
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x60], ebx
call fcn.00405d1e
test al, al
jne 0x421990
push 0x4436cc
lea ecx, [ebp - 0x40]
call fcn.00401d16
and dword [ebp - 4], ebx
lea ecx, [ebp - 0x58]
mov edx, esi
mov dword [ebp - 0x60], 1
call fcn.00410bfe
push 3
pop ebx
push 6
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.00422326
mov byte [ebp - 0x59], 1
test eax, eax
je 0x421994
mov byte [ebp - 0x59], 0
test bl, 2
je 0x4219a4
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffd
call fcn.00401e5c
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4219b5
lea ecx, [ebp - 0x40]
call fcn.00401e5c
cmp byte [ebp - 0x59], 0
je 0x421a1a
mov ecx, 0x44a980
call fcn.00411d78
push esi
lea ecx, [ebp - 0x28]
call fcn.00408d05
xor ebx, ebx
mov dword [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x28]
call fcn.004085d4
push 0x14
pop eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6e], ebx
mov dword [ebp - 0x6a], ebx
mov dword [ebp - 0x66], ebx
mov dword [ebp - 0x7c], 3
mov word [ebp - 0x70], ax
call fcn.0040126f
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp - 0x28]
call fcn.00401e5c
call fcn.00438a95
ret

Function at 0x421b47
Capabilities:
Hide graphical window

Disassembly:
and dword [0x44a7fc], 0
push esi
mov esi, ecx
mov byte [0x44a7e8], 1
push 1
push esi
mov byte [0x44a7e9], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
pop edx
mov ecx, esi
call fcn.004021fd
mov ecx, 0x44ae90
call fcn.00405d1e
test al, al
je 0x421b8b
cmp byte [0x44a7ee], 0
je 0x421b94
cmp dword [0x44a7f0], 0
jne 0x421ba4
push 0
push 1
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret

Function at 0x421c06
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x439c4c
call fcn.00438ae6
mov esi, ecx
cmp byte [0x44a9bc], 0
je 0x421ca8
mov ebx, 0x44a9c0
mov ecx, ebx
call fcn.00405d1e
test al, al
jne 0x421ca8
lea ecx, [ebp - 0x28]
call fcn.004021e6
xor edi, edi
lea edx, [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00421ba6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421ca0
mov ecx, esi
call fcn.00401891
lea edx, [eax*2 + 2]
call fcn.0040126f
push edx
push eax
push 1
push edi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.00401e5c
call fcn.00438a95
ret
Function at 0x423f6a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x423fa9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423fa9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423fa9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x423fa9
cmp dword [ecx + 0x74], 0xe
jbe 0x423fa9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43179e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43183b
push ebx
push esi
call fcn.00431767
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004316fb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4317e8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43183a
push edi
push eax
call fcn.0042eac4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431808
call fcn.0042ea8a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431839
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004316fb
add esp, 0x20
test eax, eax
jne 0x431827
push edi
call fcn.0042ea8a
jmp 0x43182f
push ebx
call fcn.0042ea8a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x431aa8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ea08
push 0x43ea00
push str.FlsAlloc
push 0x1f
call fcn.004319c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431adc
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c270]
call esi
jmp 0x431ae2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431b26
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ea18
push 0x43ea10
push str.FlsGetValue
push 0x21
call fcn.004319c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431b5d
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c270]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x431b65
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43ea20
push 0x43ea18
push str.FlsSetValue
push 0x22
call fcn.004319c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431b9f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43c270]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x438a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401e60
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push 2
push eax
call edi
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x7c]
push ecx
mov ecx, dword [esi + 0x78]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00401c50
mov edx, dword [esi + 4]
push 1
push edx
call edi
push 1
mov ecx, esi
call fcn.00401760
mov eax, dword [esi + 4]
push 2
push eax
call edi
mov ecx, dword [esi + 4]
push 1
push ecx
call edi
push 0
push 0
push 1
push 0
mov ecx, esi
call fcn.004017d0
pop edi
mov eax, 1
pop esi
ret

Function at 0x401ed0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xbc], 1
je 0x402027
mov eax, dword [esp + 0xc]
push 1
test eax, eax
je 0x401f9f
call fcn.00401530
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 0xaa]
mov cx, word [esi + 0xa8]
push 0
push eax
push ecx
mov ecx, esi
call fcn.004018e0
mov edx, dword [esi + 0xb0]
mov ecx, esi
push edx
call fcn.004019c0
mov eax, dword [esi + 4]
push 3
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
mov ecx, esi
call fcn.00401760
push 0
push 0
push 1
push 8
mov ecx, esi
call fcn.004017d0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 2
push ecx
call edi
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0x74]
push edx
xor ecx, ecx
mov cx, word [esi + 0xaa]
xor edx, edx
mov dx, word [esi + 0xa8]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00401a90
test eax, eax
jne 0x401f8a
pop edi
pop esi
ret 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 4]
push 1
push eax
call edi
jmp 0x402006
call fcn.00401530
mov ecx, dword [esi + 0xb0]
push ecx
mov ecx, esi
call fcn.004019c0
push 1
mov ecx, esi
call fcn.00401760
xor edx, edx
xor eax, eax
mov dx, word [esi + 0xaa]
mov ax, word [esi + 0xa8]
push 0
push edx
push eax
mov ecx, esi
call fcn.004018e0
push 1
mov ecx, esi
call fcn.00401760
push 0
push 0
push 1
push 8
mov ecx, esi
call fcn.004017d0
mov ecx, dword [esi + 4]
push 3
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
mov ecx, esi
call fcn.00401760
push 5
push 0x3e8
mov ecx, esi
mov dword [esi + 0xbc], 1
call fcn.00402360
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x402040
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x402176
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402109
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 2
push eax
call edi
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x7c]
push ecx
mov ecx, dword [esi + 0x78]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00401a90
test eax, eax
jne 0x40208f
pop edi
pop esi
ret 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 4]
push 1
push edx
call edi
push 0
mov ecx, esi
call fcn.00401530
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 0xae]
mov cx, word [esi + 0xac]
push 0
push eax
push ecx
mov ecx, esi
call fcn.004018e0
mov edx, dword [esi + 0xb0]
mov ecx, esi
push edx
call fcn.004019c0
push 1
mov ecx, esi
call fcn.00401760
mov eax, dword [esi + 4]
push 2
push eax
call edi
mov ecx, dword [esi + 4]
push 1
push ecx
call edi
push 0
push 0
push 1
push 0
mov ecx, esi
call fcn.004017d0
push 1
mov ecx, esi
call fcn.00401760
jmp 0x40215e
push 0
mov ecx, esi
call fcn.00401530
mov edx, dword [esi + 0xb0]
mov ecx, esi
push edx
call fcn.004019c0
push 1
mov ecx, esi
call fcn.00401760
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 0xae]
mov cx, word [esi + 0xac]
push 0
push eax
push ecx
mov ecx, esi
call fcn.004018e0
push 1
mov ecx, esi
call fcn.00401760
push 0
push 0
push 1
push 0
mov ecx, esi
call fcn.004017d0
push 5
push 0x3e8
mov ecx, esi
mov dword [esi + 0xbc], 0
call fcn.00402360
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x402580
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x800
lea eax, [esp + 0x808]
lea edx, [esp]
push eax
push ecx
push edx
call fcn.004b0e67
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x800
ret

Function at 0x402e40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
mov ecx, 0x100
xor eax, eax
push ebx
push esi
mov ebx, dword [esp + 0x410]
push edi
lea edi, [esp + 0xc]
push 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x41c]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x414]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edx, eax
lea edi, [esp + 0xc]
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x400
ret
Function at 0x402f50
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.default.0x402f6e
jmp dword [eax*4 + 0x40300c]
xor ebx, ebx
jmp case.default.0x402f6e
mov ebx, 1
jmp case.default.0x402f6e
mov ebx, 2
jmp case.default.0x402f6e
mov ebx, 3
jmp case.default.0x402f6e
mov ebx, 4
jmp case.default.0x402f6e
mov ebx, 5
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
push 0x100
rep stosd dword es:[edi], eax
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x2c]
push 0x100
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x402ffe
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x220]
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
mov eax, ebx
pop esi
pop ebx
add esp, 0x20c
ret
Function at 0x408420
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x14], ebx
test edi, edi
je 0x40846a
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x40846a
mov al, byte [0xfe5309]
test al, al
jne 0x40846a
mov al, byte [0xfe5308]
test al, al
je 0x408463
mov byte [0xfe5308], 0
mov byte [0xfe5309], 1
xor esi, esi
mov eax, 0xfe5308
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + 1]
mov byte [esp + esi + 0x10], cl
dec edx
je 0x408495
dec edx
jne 0x40849f
cmp cl, 3
jne 0x408490
mov byte [eax], 0
mov byte [eax + 1], 0
jmp 0x40849f
mov byte [eax], 3
jmp 0x40849f
cmp cl, 1
sbb cl, cl
add ecx, 2
mov byte [eax], cl
mov dl, byte [esp + esi + 0x10]
mov cl, byte [eax]
cmp dl, cl
je 0x4084ae
mov ebp, 1
add eax, 2
inc esi
cmp eax, 0xfe530e
jl 0x408471
push 0xfe5310
call dword [sym.imp.USER32.dll_GetKeyboardState]
test edi, edi
jne 0x4084d6
mov ecx, 0x40
xor eax, eax
mov edi, 0xfe5310
rep stosd dword es:[edi], eax
mov edi, 0xffffffec
lea ecx, [ebx + 0x14]
sub edi, ebx
mov bl, 0x80
mov al, byte [ecx]
lea edx, [edi + ecx]
test byte [edx + 0xfe5310], bl
lea esi, [esp + edx + 0x18]
mov byte [esi], al
je 0x4084fd
test al, al
seta al
inc eax
jmp 0x408507
dec al
neg al
sbb al, al
and al, 0xfd
add al, 3
mov dl, byte [esi]
mov byte [ecx], al
cmp dl, al
je 0x408514
mov ebp, 1
inc ecx
lea eax, [edi + ecx]
cmp eax, 0x100
jl 0x4084e2
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp dword [ecx + 0x114], edx
je 0x408548
pop edi
mov eax, ebp
pop esi
mov dword [ecx + 0x114], edx
pop ebp
mov dword [0xfe541c], edx
pop ebx
add esp, 0x108
ret 4
mov eax, dword [0xfe541c]
cmp eax, edx
je 0x408557
mov dword [ecx + 0x114], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 4

Function at 0x4086c0
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea eax, [esi + 8]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret 8
Function at 0x40a050
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4be35b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8ec
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.00405e90
mov ecx, ebp
mov dword [esp + 0x904], 0
call fcn.0040a2a0
mov eax, dword [esp + 0x90c]
push 1
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.004063f0
test eax, eax
jne 0x40a0c0
lea ecx, [esp + 0x20]
mov dword [esp + 0x904], 0xffffffff
call fcn.00405f00
xor eax, eax
jmp 0x40a26a
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [esp + 0x38]
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
mov dword [esp + 0x14], ebx
je 0x40a28c
mov esi, dword [esp + 0x910]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push esi
push edx
push eax
push ebx
mov ecx, ebp
call fcn.0040a2f0
test eax, eax
je 0x40a28c
push ebx
mov ecx, ebp
call fcn.0040a400
cmp eax, 1
mov dword [ebp + 8], eax
jl 0x40a28c
lea ecx, [eax*4]
push ecx
call fcn.004b099c
mov edx, dword [esp + 0x6c]
add esp, 4
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x64]
push esi
push edx
push eax
push ebx
mov ecx, ebp
call fcn.0040a2f0
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jle 0x40a24e
jmp 0x40a164
mov esi, dword [esp + 0x10]
or edi, 0xffffffff
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push 2
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 2
jne 0x40a285
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x4fc]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
and ecx, 0xffff
push eax
lea edx, [esp + 0x504]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x4fc]
push 0
push eax
call fcn.004032c0
lea edi, [esp + 0x504]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
test bl, 1
je 0x40a1e1
inc ebx
jmp 0x40a1e4
add ebx, 2
push ebx
call fcn.004b099c
mov ecx, dword [ebp + 4]
add esp, 4
mov dword [ecx + esi*4], eax
mov edx, dword [ebp + 4]
mov ecx, ebx
xor eax, eax
mov edi, dword [edx + esi*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [esp + 0x4fc]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 4]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, dword [edx + eax*4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp eax, ecx
jl 0x40a15d
or edi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x904], edi
call fcn.00405f00
mov eax, 1
mov ecx, dword [esp + 0x8fc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8f8
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x904], edi
call fcn.00405f00
xor eax, eax
jmp 0x40a26a
Function at 0x40a2f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
push ebx
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push 0
push 0
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ebx, dword [esp + 0x234]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x20]
push 2
push eax
push ebp
call esi
cmp dword [esp + 0x10], 2
jne 0x40a3e4
mov edx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push eax
and edx, 0xffff
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push ebp
call esi
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.004032c0
mov al, byte [esp + 0x24]
add esp, 8
cmp al, 0x5b
jne 0x40a3be
lea edx, [esp + 0x120]
push 0x104
push edx
push 0x5d
lea eax, [esp + 0x29]
push 0
push eax
call fcn.00402750
lea ecx, [esp + 0x134]
push ecx
push ebx
call fcn.004b3980
add esp, 0x1c
test eax, eax
je 0x40a3d2
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x2710
mov dword [esp + 0x14], eax
jl 0x40a335
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret 0x10

Function at 0x40a400
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x110
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov dword [esp + 0xc], 0
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 2
push ecx
push esi
call ebp
cmp dword [esp + 0x10], 2
jne 0x40a492
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
and eax, 0xffff
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
call ebp
lea edx, [esp + 0x18]
push 0
push edx
call fcn.004032c0
mov al, byte [esp + 0x20]
add esp, 8
cmp al, 0x5b
je 0x40a482
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 0x2710
mov dword [esp + 0xc], eax
jl 0x40a41e
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x110
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x110
ret 4
Function at 0x40c9a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x38]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
push 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str..GRP
lea edi, [ecx + esi - 4]
push edi
call fcn.004b1530
add esp, 0xc
test eax, eax
je 0x40c9ef
push 4
push str..PAC
push edi
call fcn.004b1530
add esp, 0xc
test eax, eax
je 0x40c9ef
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x10
mov ecx, ebx
call fcn.0040c8c0
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ca21
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x10
mov edi, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x44]
push 0
push 0
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x20
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1a]
push 1
and edx, 0xffff
push 0x15
and eax, 0xffff
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0040c8f0
test eax, eax
pop ebp
jne 0x40ca9d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x10
lea edx, [esp + 0xc]
mov ecx, ebx
push edx
call fcn.0040cdd0
test eax, eax
jne 0x40cabf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 0x10
mov ecx, dword [ebx + 0x10]
imul ecx, dword [ebx + 0x14]
shl ecx, 2
cmp word [esp + 0x1a], 0x20
jne 0x40cad5
xor eax, eax
jmp 0x40cad8
or eax, 0xffffffff
mov edi, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
push esi
call fcn.004038b0
add esp, 0x10
mov ecx, ebx
call fcn.0040ce20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x28
ret 0x10