joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x8b26d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8b26da
ret
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x8b30cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x8cb258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x8cb258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x8ca0e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8b30d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x405690
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44806b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45d320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042af08
push 4
mov dword [ebp - 4], 0
call fcn.0042b721
mov edi, eax
add esp, 4
test edi, edi
je 0x405710
call fcn.0042acd8
mov dword [edi], eax
call fcn.0042aa97
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042a9cc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405706
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042a9f4
jmp 0x405712
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a960
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4496db
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
mov dword [ebp - 0x23c], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40aa5e
lea edx, [ebp - 0x21c]
push edx
call fcn.00430365
add esp, 4
cmp word [ebp - 0x21c], 0
lea edi, [ebp - 0x21c]
je 0x40aa5e
movzx eax, word [edi]
mov dword [ebp - 0x240], eax
cmp eax, 0x43
jb 0x40aa3b
push eax
lea esi, [ebp - 0x238]
call fcn.0040b070
mov dword [ebp - 4], 0
cmp dword [ebp - 0x228], 0
je 0x40aa1c
mov ecx, dword [ebp - 0x23c]
lea edx, [ebp - 0x240]
call fcn.0040b9a0
push 0xffffffffffffffff
push 0
mov ecx, esi
push ecx
mov ecx, eax
call fcn.00409cf0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x224], 8
jb 0x40aa3b
mov edx, dword [ebp - 0x238]
push edx
call fcn.0042b3ae
add esp, 4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aa40
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea edi, [edi + eax*2 + 2]
jne 0x40a9d3
mov ecx, dword [ebp - 0x23c]
xor eax, eax
cmp dword [ecx + 8], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bd98
mov esp, ebp
pop ebp
ret 4
Function at 0x40b3f0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x45d320]
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.0042fa28
add esp, 8
test eax, eax
setne al
test al, al
jne 0x40b62b
push esi
push 0x12
push 0
push 0
push 0x44fe50
call dword [0x461008]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b619
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 0x44fe50
push ebx
mov edi, 0x1c
push esi
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x464], edi
call dword [0x46100c]
test eax, eax
je 0x40b5fb
jmp 0x40b4a5
mov edi, 0x1c
lea ecx, [ebp - 0x464]
push ecx
push ebx
push 0x44fe50
push 0
push esi
call dword [0x46100c]
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 [0x461010]
mov ecx, dword [ebp - 0x468]
test ecx, ecx
je 0x40b5c0
cmp ecx, 0x400
ja 0x40b5c0
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 [0x461010]
test eax, eax
je 0x40b5c0
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 0x40b5c0
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 0x40b5b9
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x444]
je 0x40b5e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x43c]
push ecx
inc ebx
push ebx
push 0x44fe50
push 0
push esi
call dword [0x46100c]
test eax, eax
jne 0x40b4a0
jmp 0x40b5fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [0x461014]
mov edx, dword [ebp - 0x40c]
mov dword [ebp - 0x46c], edx
push esi
call dword [0x461014]
mov eax, dword [ebp - 0x46c]
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd98
mov esp, ebp
pop ebp
ret
pop esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd98
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0042bd98
mov esp, ebp
pop ebp
ret
Function at 0x40f8e0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push edi
mov ebx, ecx
mov edi, edx
test esi, esi
je 0x40f924
mov dword [0x461028], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0xffffffffffffffff
push 0
push edi
mov ecx, 0x45edb4
mov dword [0x461030], eax
call fcn.00409cf0
push 0
push 0
push 0
push 0x414f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.004234d5
test eax, eax
je 0x40f93b
mov edi, str.time.windows.com
call fcn.0040f990
test eax, eax
jne 0x40f956
call fcn.004234d5
test eax, eax
je 0x40f952
mov edi, str.time.nist.gov
call fcn.0040f990
test eax, eax
jne 0x40f956
xor edi, edi
jmp 0x40f95b
mov edi, 1
test esi, esi
je 0x40f97f
mov eax, dword [0x46102c]
mov dword [0x461028], 1
test eax, eax
je 0x40f97f
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 0x4100f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448b68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45d320]
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.00408e30
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405780
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x41015e
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 0x410186
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042b3ae
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.0042bd98
mov esp, ebp
pop ebp
ret

Function at 0x4116d0
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 0x4117bf
cmp dword [ebx + 8], 0x70b
jne 0x4117bf
mov ecx, dword [ebx + 0xc]
cmp ecx, 0x201
je 0x41170a
cmp ecx, 0x203
jne 0x4117bf
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.0042b301
mov ebx, eax
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.0042c290
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.0042c59d
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 0x412020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449208
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45d320]
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 0x41218d
dec eax
jne 0x412227
movzx ebx, word [ebp + 0x10]
push ebx
call fcn.0040ff70
add esp, 4
test eax, eax
jne 0x412183
cmp ebx, 0x27e4
jg 0x412153
je 0x4120fa
dec ebx
je 0x412098
dec ebx
je 0x4120e5
jmp 0x412227
push 0x104
push 0x460df0
push 0x27e6
xor eax, eax
push edi
mov word [0x460df0], ax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x460df0
lea ecx, [ebp - 0x2c]
call fcn.00408d60
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x508]
mov dword [ebp - 4], 0
call fcn.00409cf0
lea ecx, [ebp - 0x2c]
call fcn.00409e20
mov edx, dword [ebp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x41223b
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 0x41223b
cmp ebx, 0x2806
jne 0x412227
cmp dword [esi + 0x500], 8
lea eax, [esi + 0x4ec]
jb 0x412170
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 0x41223b
call fcn.0040ff10
cmp dword [0x45ed58], 8
mov eax, dword [0x45ed44]
jae 0x4121a5
mov eax, 0x45ed44
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.0040fd00
add esi, 0x4ec
add esp, 8
cmp dword [esi + 0x10], 0
je 0x412220
push 0x2806
push edi
call ebx
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x4121fc
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.004157d0
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.0042bd98
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x454e20
push eax
xor bl, bl
call fcn.0042cd2d
mov esi, eax
add esp, 8
test esi, esi
je 0x4132b8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x4132a9
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042cbf5
add esp, 0x10
push esi
call fcn.0042ca2a
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 0x414f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45d320]
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.0042f3a2
add esp, 8
test eax, eax
jne 0x415043
push 0x454e48
push esi
call fcn.0042cd2d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x415030
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x414fde
mov esi, dword [ebp - 0x24]
push esi
mov ecx, edi
call fcn.0040d950
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x414ff9
push 0
push eax
push ebx
call fcn.0042f88a
add esp, 0xc
test esi, esi
je 0x415014
mov eax, dword [edi]
push ebx
push esi
push 1
push eax
call fcn.0042f288
add esp, 0x10
push eax
mov ecx, edi
call fcn.0040d950
push ebx
call fcn.0042ca2a
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bd98
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.0042bd98
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.0042bd98
mov esp, ebp
pop ebp
ret

Function at 0x415060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448628
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45d320]
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.0042f3a2
add esp, 8
test eax, eax
jne 0x415139
push 0x454e48
push esi
call fcn.0042cd2d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x415139
mov edi, dword [ebp - 0x30]
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040d950
cmp edi, ebx
jbe 0x4150f3
mov edx, dword [ebp - 0x5c]
push esi
push edi
push 1
push edx
call fcn.0042f288
add esp, 0x10
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040d950
push esi
call fcn.0042ca2a
add esp, 4
lea eax, [ebp - 0x45]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x45], bl
call fcn.00413a80
mov esi, dword [ebp - 0x5c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415113
mov ecx, dword [ebp - 0x4c]
sub eax, edx
push eax
push esi
call fcn.00409840
mov al, 1
cmp esi, ebx
je 0x41513b
push esi
call fcn.0042b3ae
add esp, 4
mov al, 1
jmp 0x41513b
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.0042bd98
mov esp, ebp
pop ebp
ret
Function at 0x416910
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 0x41695d
push esi
push str..rsrc
call fcn.004431aa
add esp, 8
test eax, eax
je 0x416951
inc ebx
add esi, 0x28
cmp ebx, edi
jb 0x416935
jmp 0x41695d
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 0x416a41
mov esi, dword [ebp - 0xc]
push 2
lea eax, [esi + edi - 2]
push eax
push 0x455068
call fcn.0043068e
add esp, 0xc
test eax, eax
jne 0x416a41
cmp dword [esi + edi - 6], 1
jne 0x416a41
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 0x4169da
lea ecx, [ebx + 0x20]
push eax
call fcn.0040d950
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
cmp ecx, eax
je 0x4169da
sub eax, ecx
push eax
lea eax, [esi + edi]
push eax
push ecx
call fcn.0042b3c0
add esp, 0xc
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
sub esi, eax
test byte [ebx + 0x30], 4
je 0x416a0c
lea ecx, [ebx + 0x10]
push eax
call fcn.0040d950
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
je 0x416a0c
sub eax, ecx
push eax
lea edx, [esi + edi]
push edx
push ecx
call fcn.0042b3c0
add esp, 0xc
mov byte [ebp - 1], 1
test byte [ebx + 0x30], 2
je 0x416a41
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.0040d950
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
cmp ecx, eax
je 0x416a41
sub esi, dword [ebp + 8]
sub eax, ecx
push eax
add esi, edi
push esi
push ecx
call fcn.0042b3c0
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 0x419280
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x20
mov eax, 0x4464af
call fcn.0042bda7
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
call fcn.0040cdc0
mov esi, str.SpreadsheetToolsempty.xls
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
call fcn.0042c221
pop ecx
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040d350
cmp dword [edi + 0x14], 8
jb 0x4192c7
mov eax, dword [edi]
jmp 0x4192c9
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x419392
call fcn.0041c2b2
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 0x41938a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x41938a
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x41938a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x41938a
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040d950
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x2c]
call fcn.0042b3c0
mov esi, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x2c], esi
je 0x41938a
lea ecx, [ebp - 0xd]
call fcn.0041d7f8
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x41936b
mov eax, dword [edi]
jmp 0x41936d
mov eax, edi
sub esi, dword [ebp - 0x2c]
push ebx
push eax
push esi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xd]
call fcn.0042a555
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 1
call fcn.0041d63e
lea ecx, [ebp - 0x2c]
call fcn.00404b70
mov eax, edi
call fcn.0042be7f
ret

Function at 0x41973d
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 0x41974e
mov eax, dword [esi]
jmp 0x419750
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41976d
cmp dword [esi + 0x14], 8
jb 0x419764
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebp
ret

Function at 0x419799
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 0x4197a7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret