joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b3c0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
push str.Floppy
xor edi, edi
push eax
mov dword [ebp - 0x46c], edi
call fcn.0042fa18
add esp, 8
test eax, eax
setne al
test al, al
jne 0x40b5fb
push esi
push 0x12
push 0
push 0
push 0x44fb60
call dword [0x45ffa8]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b5e9
xor eax, eax
push ebx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x43c]
push eax
xor ebx, ebx
push ebx
push 0x44fb60
push ebx
mov edi, 0x1c
push esi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x464], edi
call dword [0x45ffac]
test eax, eax
je 0x40b5cb
jmp 0x40b475
mov edi, 0x1c
lea ecx, [ebp - 0x464]
push ecx
push ebx
push 0x44fb60
push 0
push esi
call dword [0x45ffac]
push 0
lea edx, [ebp - 0x468]
push edx
push 0
push 0
lea eax, [ebp - 0x464]
push eax
push esi
mov dword [ebp - 0x468], 0
call dword [0x45ffb0]
mov ecx, dword [ebp - 0x468]
test ecx, ecx
je 0x40b590
cmp ecx, 0x400
ja 0x40b590
xor eax, eax
mov dword [ebp - 0x420], eax
lea edx, [ebp - 0x420]
push edx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x468]
push eax
push ecx
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x464]
push edx
push esi
mov dword [ebp - 0x404], 6
mov dword [ebp - 0x420], edi
call dword [0x45ffb0]
test eax, eax
je 0x40b590
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b590
push 0
lea ecx, [ebp - 0x470]
push ecx
push 0xc
lea edx, [ebp - 0x448]
push edx
push 0
push 0
push 0x2d1080
push edi
mov dword [ebp - 0x470], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40b589
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x444]
je 0x40b5b1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x43c]
push ecx
inc ebx
push ebx
push 0x44fb60
push 0
push esi
call dword [0x45ffac]
test eax, eax
jne 0x40b470
jmp 0x40b5cb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [0x45ffb4]
mov edx, dword [ebp - 0x40c]
mov dword [ebp - 0x46c], edx
push esi
call dword [0x45ffb4]
mov eax, dword [ebp - 0x46c]
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
pop esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
Function at 0x40f8b0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push edi
mov ebx, ecx
mov edi, edx
test esi, esi
je 0x40f8f4
mov dword [0x45ffc8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0xffffffffffffffff
push 0
push edi
mov ecx, 0x45dd50
mov dword [0x45ffd0], eax
call fcn.00409cc0
push 0
push 0
push 0
push 0x414f60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.004233ce
test eax, eax
je 0x40f90b
mov edi, str.time.windows.com
call fcn.0040f960
test eax, eax
jne 0x40f926
call fcn.004233ce
test eax, eax
je 0x40f922
mov edi, str.time.nist.gov
call fcn.0040f960
test eax, eax
jne 0x40f926
xor edi, edi
jmp 0x40f92b
mov edi, 1
test esi, esi
je 0x40f94f
mov eax, dword [0x45ffcc]
mov dword [0x45ffc8], 1
test eax, eax
je 0x40f94f
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4100c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448b28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push 0x1c
push str.url.dll_FileProtocolHandler
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call fcn.00408e10
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.004057a0
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x41012e
lea eax, [ebp - 0x2c]
push 1
push 0
push eax
push str.rundll32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x18], esi
jb 0x410156
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042b39e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret

Function at 0x4116a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, eax
xor esi, esi
xor eax, eax
cmp ebx, esi
je 0x41178f
cmp dword [ebx + 8], 0x70b
jne 0x41178f
mov ecx, dword [ebx + 0xc]
cmp ecx, 0x201
je 0x4116da
cmp ecx, 0x203
jne 0x41178f
mov eax, dword [ebp + 8]
push edi
push 0x27da
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov edi, eax
push 0xb0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
call esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push eax
push ecx
push 0xb1
push edi
call esi
mov esi, dword [ebx + 0x1c]
sub esi, dword [ebx + 0x18]
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042b2f1
mov ebx, eax
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.0042c280
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x10
push ebx
push 0
push 0x43e
push edi
call esi
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push ebx
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
call fcn.0042c58d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add esp, 4
push edx
push eax
push 0xb1
push edi
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411ff0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4491c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call section..text
mov esi, eax
mov eax, dword [ebp + 0xc]
sub eax, 0x110
je 0x41215d
dec eax
jne 0x4121f7
movzx ebx, word [ebp + 0x10]
push ebx
call fcn.0040ff40
add esp, 4
test eax, eax
jne 0x412153
cmp ebx, 0x27e4
jg 0x412123
je 0x4120ca
dec ebx
je 0x412068
dec ebx
je 0x4120b5
jmp 0x4121f7
push 0x104
push 0x45fd90
push 0x27e6
xor eax, eax
push edi
mov word [0x45fd90], ax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x45fd90
lea ecx, [ebp - 0x2c]
call fcn.00408d40
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x508]
mov dword [ebp - 4], 0
call fcn.00409cc0
lea ecx, [ebp - 0x2c]
call fcn.00409df0
mov edx, dword [ebp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x41220b
push 0x27e0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0xb0
xor ebx, ebx
push esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
call edi
push 0xffffffffffffffff
push ebx
push 0xb1
push esi
call edi
push ebx
push ebx
push 0x301
push esi
call edi
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
push edx
push eax
push 0xb1
push esi
call edi
lea eax, [ebx + 1]
jmp 0x41220b
cmp ebx, 0x2806
jne 0x4121f7
cmp dword [esi + 0x500], 8
lea eax, [esi + 0x4ec]
jb 0x412140
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
jmp 0x41220b
call fcn.0040fee0
cmp dword [0x45dcf4], 8
mov eax, dword [0x45dce0]
jae 0x412175
mov eax, 0x45dce0
push eax
push 0x27e0
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x30
push 0xc5
push 0x27e6
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x2776
push edi
call fcn.0040fcd0
add esi, 0x4ec
add esp, 8
cmp dword [esi + 0x10], 0
je 0x4121f0
push 0x2806
push edi
call ebx
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x4121cc
mov esi, dword [esi]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ebx
call esi
push 5
push 0x2807
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, 1
call fcn.004157c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x454b38
push eax
xor bl, bl
call fcn.0042cd1d
mov esi, eax
add esp, 8
test esi, esi
je 0x413288
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x413279
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042cbe5
add esp, 0x10
push esi
call fcn.0042ca1a
add esp, 4
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x414f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
push esi
xor bl, bl
call fcn.0042f392
add esp, 8
test eax, eax
jne 0x415033
push 0x454b60
push esi
call fcn.0042cd1d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x415020
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x414fce
mov esi, dword [ebp - 0x24]
push esi
mov ecx, edi
call fcn.0040d8f0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x414fe9
push 0
push eax
push ebx
call fcn.0042f87a
add esp, 0xc
test esi, esi
je 0x415004
mov eax, dword [edi]
push ebx
push esi
push 1
push eax
call fcn.0042f278
add esp, 0x10
push eax
mov ecx, edi
call fcn.0040d8f0
push ebx
call fcn.0042ca1a
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042bd88
mov esp, ebp
pop ebp
ret

Function at 0x415050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4485e8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea ecx, [ebp - 0x44]
push ecx
push esi
mov dword [ebp - 4], ebx
call fcn.0042f392
add esp, 8
test eax, eax
jne 0x415129
push 0x454b60
push esi
call fcn.0042cd1d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x415129
mov edi, dword [ebp - 0x30]
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040d8f0
cmp edi, ebx
jbe 0x4150e3
mov edx, dword [ebp - 0x5c]
push esi
push edi
push 1
push edx
call fcn.0042f278
add esp, 0x10
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040d8f0
push esi
call fcn.0042ca1a
add esp, 4
lea eax, [ebp - 0x45]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x45], bl
call fcn.00413a50
mov esi, dword [ebp - 0x5c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415103
mov ecx, dword [ebp - 0x4c]
sub eax, edx
push eax
push esi
call fcn.00409810
mov al, 1
cmp esi, ebx
je 0x41512b
push esi
call fcn.0042b39e
add esp, 4
mov al, 1
jmp 0x41512b
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bd88
mov esp, ebp
pop ebp
ret
Function at 0x416450
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
movzx ecx, word [edx + 0x14]
lea ecx, [ecx + edx + 0x18]
movzx edx, word [edx + 6]
push esi
xor eax, eax
xor esi, esi
test edx, edx
je 0x416499
push edi
lea esp, [esp]
mov edi, dword [ecx + 0xc]
cmp ebx, edi
jb 0x416480
mov eax, dword [ecx + 8]
add eax, edi
cmp ebx, eax
jb 0x41648e
inc esi
add ecx, 0x28
cmp esi, edx
jb 0x416470
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ecx + 0x14]
sub eax, edi
add eax, ebx
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x4164a0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
xor bl, bl
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
je 0x416592
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x416582
push edi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x41657a
mov ecx, 0x5a4d
cmp cx, word [edi]
jne 0x416570
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x416570
mov edx, dword [ebp + 0xc]
push edx
push edi
mov eax, esi
call fcn.00416900
add esp, 8
test al, al
jne 0x41656c
mov eax, dword [esi + 0x88]
test eax, eax
je 0x416570
push edi
mov edx, esi
mov ebx, eax
call fcn.00416450
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
push ecx
push 0x69
push 0x454d70
push 0
push eax
push eax
push edi
push esi
call fcn.004165a0
mov ebx, dword [ebp - 8]
add esp, 0x24
test al, al
je 0x416570
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416900
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx ecx, word [eax + 0x14]
push ebx
push esi
push edi
movzx edi, word [eax + 6]
xor ebx, ebx
mov byte [ebp - 1], 0
lea esi, [ecx + eax + 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp edi, ebx
jbe 0x41694d
push esi
push str..rsrc
call fcn.0044315a
add esp, 8
test eax, eax
je 0x416941
inc ebx
add esi, 0x28
cmp ebx, edi
jb 0x416925
jmp 0x41694d
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 8]
add edi, dword [ebp + 8]
je 0x416a31
mov esi, dword [ebp - 0xc]
push 2
lea eax, [esi + edi - 2]
push eax
push 0x454d80
call fcn.0043067e
add esp, 0xc
test eax, eax
jne 0x416a31
cmp dword [esi + edi - 6], 1
jne 0x416a31
mov ecx, dword [esi + edi - 0xe]
mov eax, dword [esi + edi - 0xa]
mov edx, dword [esi + edi - 0x12]
mov ebx, dword [ebp + 0xc]
sub esi, 0x12
sub esi, eax
test byte [ebx + 0x30], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], edx
je 0x4169ca
lea ecx, [ebx + 0x20]
push eax
call fcn.0040d8f0
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
cmp ecx, eax
je 0x4169ca
sub eax, ecx
push eax
lea eax, [esi + edi]
push eax
push ecx
call fcn.0042b3b0
add esp, 0xc
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
sub esi, eax
test byte [ebx + 0x30], 4
je 0x4169fc
lea ecx, [ebx + 0x10]
push eax
call fcn.0040d8f0
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
je 0x4169fc
sub eax, ecx
push eax
lea edx, [esi + edi]
push edx
push ecx
call fcn.0042b3b0
add esp, 0xc
mov byte [ebp - 1], 1
test byte [ebx + 0x30], 2
je 0x416a31
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.0040d8f0
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
cmp ecx, eax
je 0x416a31
sub esi, dword [ebp + 8]
sub eax, ecx
push eax
add esi, edi
push esi
push ecx
call fcn.0042b3b0
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4192a2
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x20
mov eax, 0x446484
call fcn.0042bd97
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
call fcn.0040cd60
mov esi, str.SpreadsheetToolsempty.xls
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
call fcn.0042c211
pop ecx
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040d2f0
cmp dword [edi + 0x14], 8
jb 0x4192e9
mov eax, dword [edi]
jmp 0x4192eb
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4193b4
call fcn.0041c2b8
mov esi, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push str.RT_ZIPPED_DATA
push 0x7f
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x4193ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4193ac
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4193ac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x4193ac
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040d8f0
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x2c]
call fcn.0042b3b0
mov esi, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x2c], esi
je 0x4193ac
lea ecx, [ebp - 0xd]
call fcn.0041d63e
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x41938d
mov eax, dword [edi]
jmp 0x41938f
mov eax, edi
sub esi, dword [ebp - 0x2c]
push ebx
push eax
push esi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xd]
call fcn.0042a54a
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 1
call fcn.0041d7fa
lea ecx, [ebp - 0x2c]
call fcn.00404040
mov eax, edi
call fcn.0042be6f
ret

Function at 0x41975f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x419770
mov eax, dword [esi]
jmp 0x419772
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41978f
cmp dword [esi + 0x14], 8
jb 0x419786
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebp
ret

Function at 0x4197bb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4197c9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x41a201
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x84
mov eax, 0x4466d9
call fcn.0042be00
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x71], 0
call fcn.0041c2b8
push 0x44be00
mov esi, eax
push 0x7d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41a35d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41a35d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
cmp eax, edi
je 0x41a35d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x41a35d
lea ecx, [ebp - 0x90]
call fcn.004243fe
mov dword [ebp - 4], edi
cmp ebx, edi
jbe 0x41a34e
push ebx
lea ecx, [ebp - 0x90]
call fcn.0040d8f0
push ebx
push esi
push dword [ebp - 0x90]
call fcn.0042b3b0
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.00421cbc
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00421980
test eax, eax
je 0x41a342
push dword [ebp - 0x78]
lea ecx, [ebp - 0x90]
call fcn.00424ad5
push dword [ebp - 0x78]
lea ecx, [ebp - 0x34]
call fcn.00401100
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004023a0
test al, al
je 0x41a2f5
mov byte [ebp - 0x71], 1
jmp 0x41a336
cmp dword [ebp - 0x1c], edi
je 0x41a336
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
call fcn.00419a9a
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x41a310
mov eax, dword [eax]
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x41a31c
lea ecx, [ebp - 0x2c]
push 0x1010
push eax
push ecx
call fcn.00419671
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.00409e20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401130
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00421973
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0042440e
mov al, byte [ebp - 0x71]
call fcn.0042be83
ret

Function at 0x41a3f1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x2e8
mov eax, 0x44671c
call fcn.0042be00
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x41a4b8
cmp dword [esi + 0x14], 8
jb 0x41a41b
mov eax, dword [esi]
jmp 0x41a41d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a4b8
push esi
lea ecx, [ebp - 0x2f0]
call fcn.00423e4f
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 4], edi
call fcn.00423eaa
mov byte [ebp - 4], 1
jmp 0x41a499
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2f4]
push eax
mov ecx, ebx
call fcn.0041f08d
lea ecx, [ebp - 0x2f4]
call fcn.0041ef62
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.00423eaa
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00408d90
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00409e20
cmp dword [ebp - 0x1c], edi
jne 0x41a451
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409e20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f0]
call fcn.00423e19
call fcn.0042be83
ret
Function at 0x41a545
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x510
mov eax, 0x4467b9
call fcn.0042be00
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x504], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x51c], esi
mov word [esi], cx
mov dword [ebp - 4], eax
mov dword [ebp - 0x504], 1
call fcn.0041c2b8
push 0x44be00
mov edi, eax
push 0x7d
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x41a698
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x500], eax
test eax, eax
je 0x41a698
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a698
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41a698
lea ecx, [ebp - 0x518]
call fcn.004243fe
cmp dword [ebp - 0x500], 0
mov dword [ebp - 4], 1
jbe 0x41a689
push dword [ebp - 0x500]
lea ecx, [ebp - 0x518]
call fcn.0040d8f0
push dword [ebp - 0x500]
push edi
push dword [ebp - 0x518]
call fcn.0042b3b0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00421cbc
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00421980
test eax, eax
je 0x41a67d
lea ecx, [ebp - 0x4fc]
call fcn.0041df9e
lea eax, [ebp - 0x4fc]
push eax
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 3
call fcn.00424ad5
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4f4]
push eax
mov ecx, esi
call fcn.00409cc0
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 2
call fcn.0041dda4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00421973
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 0
call fcn.0042440e
mov eax, esi
call fcn.0042be83
ret