joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50d080]
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 esi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x1c
push str.url.dll_FileProtocolHandler
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00410170
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x41c8bd
mov edx, dword [esi]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
sub eax, ebx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
ja 0x41c8f6
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x28]
lea edi, [ebx + ecx]
push eax
push edx
mov dword [ebp - 0x18], edi
lea eax, [esi + ebx*2]
push eax
call fcn.0047ecb0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x41c908
push ecx
push edx
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040a8f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push str.rundll32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41c960
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c956
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c97c
push edx
push ecx
call fcn.0047ce0f
add esp, 8
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.0047ce22
mov esp, ebp
pop ebp
ret
call fcn.004895af
int3

Function at 0x41e5c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x41e6b5
cmp dword [edi + 8], 0x70b
jne 0x41e6b5
mov edx, dword [edi + 0xc]
cmp edx, 0x201
je 0x41e5fa
cmp edx, 0x203
jne 0x41e6b5
push ebx
push esi
push 0x27da
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xb0
push esi
mov dword [ebp - 4], 0
call ebx
push dword [edi + 0x1c]
push dword [edi + 0x18]
push 0xb1
push esi
call ebx
mov esi, dword [edi + 0x1c]
xor ecx, ecx
sub esi, dword [edi + 0x18]
mov edx, 2
inc esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d739
lea ecx, [esi + esi]
mov edi, eax
push ecx
push 0
push edi
call fcn.0047f230
mov esi, dword [ebp - 0xc]
add esp, 0x10
push edi
push 0
push 0x43e
push esi
call ebx
push 1
push 0
push 0
push edi
push str.open
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call fcn.0047ce1d
add esp, 4
push dword [ebp - 4]
push dword [ebp - 8]
push 0xb1
push esi
call ebx
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41fcc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
mov eax, dword [0x50d080]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
xor ecx, ecx
mov dword [esp + 0xc], esi
push edi
test ebx, ebx
mov eax, 5
cmovne eax, ecx
push eax
push 0x27e4
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x208
lea eax, [esp + 0x54]
push 0
push eax
call fcn.0047f230
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x5c]
add esp, 0xc
push 0x104
push eax
mov eax, ebx
neg eax
sbb eax, eax
add eax, 0x2782
push eax
push dword [0x510a78]
call edi
lea eax, [esp + 0x50]
push eax
push 0x27f5
push esi
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
call esi
push 0x208
lea eax, [esp + 0x25c]
push 0
push eax
call fcn.0047f230
add esp, 0xc
lea eax, [esp + 0x258]
push 0x104
push eax
mov eax, ebx
neg eax
sbb eax, eax
add eax, 0x2784
push eax
push dword [0x510a78]
call edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x258]
push eax
push 0x27f6
push edi
call esi
push 0x27e0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x27e6
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test ebx, ebx
je 0x41fe07
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
jmp 0x41fe37
lea eax, [esp + 0x40]
push eax
push 0x27e4
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
add eax, 0xfffffffd
add eax, ecx
push 1
push dword [esp + 0x20]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
test ebx, ebx
push 0
sete al
push eax
push 0xcf
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and eax, 0xfffffff7
or ecx, 8
test ebx, ebx
cmove eax, ecx
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x27
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
test ebx, ebx
je 0x41fea1
mov eax, 0x4f46f8
jmp 0x41feb4
cmp dword [0x50db0c], 8
mov eax, 0x50daf8
cmovae eax, dword [0x50daf8]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x41fec7
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047ce22
mov esp, ebp
pop ebp
ret
Function at 0x4205f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x4fadc8
push dword [ebp + 8]
xor bl, bl
call fcn.0048bc9c
mov esi, eax
add esp, 8
test esi, esi
je 0x420637
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x420628
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.004aaf13
add esp, 0x10
push esi
call fcn.004aabac
add esp, 4
mov al, 1
pop esi
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x422fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da920
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00423630
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.00405a50
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x423e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x38]
mov edi, ecx
push eax
push edi
mov esi, edx
xor bl, bl
call fcn.004af11b
add esp, 8
test eax, eax
jne 0x423ec1
push 0x4fae40
push edi
call fcn.0048bc9c
mov edi, eax
add esp, 8
test edi, edi
je 0x423ec1
mov ebx, dword [ebp - 0x24]
mov ecx, esi
push esi
push ebx
call fcn.00417a50
test ebx, ebx
je 0x423ea5
push edi
push ebx
push 1
push dword [esi]
call fcn.004af6a7
add esp, 0x10
mov ecx, esi
push esi
push eax
call fcn.00417a50
push edi
call fcn.004aabac
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047ce22
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047ce22
mov esp, ebp
pop ebp
ret
Function at 0x429250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x510a74]
push ebx
mov ebx, dword [ebp + 8]
inc eax
push esi
push eax
push ecx
mov dword [0x510a74], eax
lea eax, [ebp - 0x204]
push str._ld_ld
push eax
call fcn.0041bbe0
add esp, 0x10
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x204]
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4292a0
push edi
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4292b1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebx, 0xfffffffe
rep movsb byte es:[edi], byte [esi]
pop edi
nop
mov ax, word [ebx + 2]
lea ebx, [ebx + 2]
test ax, ax
jne 0x4292d0
mov eax, dword [str..dat]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
xor ecx, ebp
mov eax, dword [0x4fb0d0]
mov dword [ebx + 4], eax
mov ax, word [0x4fb0d4]
pop esi
mov word [ebx + 8], ax
pop ebx
call fcn.0047ce22
mov esp, ebp
pop ebp
ret 4
Function at 0x429640
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x210], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], ecx
test eax, eax
je 0x4297bf
cmp dword [ebp + 0xc], ebx
je 0x4297bf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
je 0x4296a6
push esi
call edi
mov ecx, eax
test ecx, ecx
je 0x4297aa
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.00429250
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
je 0x4296e2
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, eax
test ecx, ecx
je 0x42978f
lea eax, [ebp - 0x20c]
push 0x4fadc8
push eax
call fcn.0048bc9c
mov esi, eax
add esp, 8
test esi, esi
je 0x42978f
push esi
push dword [ebp + 0xc]
push 1
push dword [ebp - 0x214]
call fcn.004aaf13
push esi
call fcn.004aabac
push dword [ebp - 0x218]
xor edx, edx
lea ecx, [ebp - 0x20c]
push 2
xor ebx, ebx
call fcn.00446660
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x42978f
mov eax, dword [esi]
cmp eax, 1
je 0x429757
mov dword [0x510a80], 0x80000
mov ecx, 0x80000
jmp 0x429775
mov ecx, dword [esi + 4]
push 2
push 0
push dword [ebp - 0x21c]
push 0
call fcn.00445f40
mov ecx, eax
mov eax, dword [esi]
mov dword [0x510a80], ecx
xor ebx, ebx
test ecx, ecx
mov ecx, esi
sete bl
cmp eax, 1
jne 0x42978a
call fcn.00446b80
jmp 0x42978f
call fcn.00440f00
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4297aa
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047ce22
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0047ce22
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42a080
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db2c9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x48]
mov dword [ebp - 0x10], 1
cmp ecx, 0xffffffff
jne 0x42a16b
lea ebx, [esi + 0x30]
cmp ebx, esi
je 0x42a0f7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42a0ec
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00410170
push ebx
call fcn.00416880
add esp, 4
lea ecx, [esi + 0x18]
cmp dword [esi + 0x2c], 8
jb 0x42a10c
mov ecx, dword [esi + 0x18]
push dword [esi + 0x28]
push ecx
mov ecx, ebx
call fcn.00409280
cmp dword [ebx + 0x14], 8
jb 0x42a11f
mov ebx, dword [ebx]
lea eax, [esi + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x48], eax
cmp eax, 0xffffffff
je 0x42a1bc
mov ecx, 0x2e
cmp cx, word [esi + 0x78]
jne 0x42a17a
lea ebx, [esi + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42a1bc
mov eax, 0x2e
cmp ax, word [esi + 0x78]
jne 0x42a1bc
push ebx
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42a17a
jmp 0x42a1bc
lea eax, [esi + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42a1bc
cmp edi, esi
je 0x42a193
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42a188
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00410170
push edi
call fcn.00416880
add esp, 4
add esi, 0x78
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a1a4
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00409280
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a3a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
xor esi, esi
call fcn.0042a300
test eax, eax
je 0x42a439
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x42a424
push ebx
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 8]
mov ebx, eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a423
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x42a423
test ebx, ebx
je 0x42a423
mov esi, dword [ebp + 0xc]
mov ecx, esi
push esi
push ebx
call fcn.00417a50
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x42a41e
push ebx
push dword [ebp + 8]
push eax
call fcn.0047e730
add esp, 0xc
mov esi, 1
pop ebx
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x42a439
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x18], 0
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42a4f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db349
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50d080]
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 esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov ecx, esi
push eax
mov dword [ebp - 0x2c], 0
call fcn.0042a300
test eax, eax
je 0x42a626
push 0x4fb150
push 0x74
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42a56f
push 0x4fb150
push 0x6a
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42a611
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [esi + 0x18]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a611
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42a611
cmp dword [ebp - 0x2c], ebx
je 0x42a611
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov ecx, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 1
call fcn.00424cc0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e350
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42a60c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a602
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a646
push edx
push ecx
call fcn.0047ce0f
add esp, 8
mov ebx, 1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x42a626
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x18], 0
mov eax, ebx
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.0047ce22
mov esp, ebp
pop ebp
ret 8
call fcn.004895af
int3
Function at 0x42b1e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db4a8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x64], 0xffffffff
jne 0x42b345
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0x64], 0
call fcn.0042b130
test eax, eax
jne 0x42b345
mov ecx, SysReAllocString
call fcn.0042b130
test eax, eax
je 0x42b245
cmp eax, 2
jne 0x42b345
push 1
push SysReAllocString
push str.LockXLSRuntime.Connect
lea ecx, [ebp - 0x70]
call fcn.0040ea80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x42b336
push 1
push SysReAllocString
push str.CLSID36CFCB02_788B_41D9_A9A6_FCBCEC7FF987InprocServer32
lea ecx, [ebp - 0x4c]
call fcn.0040ea80
mov eax, 7
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x4c], ecx
je 0x42b2d9
lea eax, [ebp - 0x28]
push eax
push 0x4f46f8
lea ecx, [ebp - 0x4c]
call fcn.0040e900
test eax, eax
je 0x42b2d6
cmp dword [ebp - 0x18], 0
je 0x42b2d6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42b2d6
mov dword [esi + 0x64], 1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x42b310
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b306
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b368
push edx
push ecx
call fcn.0047ce0f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x42b333
push eax
call dword [ebp - 0x40]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 4], 4
test eax, eax
je 0x42b345
push eax
call dword [ebp - 0x64]
xor eax, eax
cmp dword [esi + 0x64], 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047ce22
mov esp, ebp
pop ebp
ret
call fcn.004895af
int3
Function at 0x42bd60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], esi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x214], esi
jb 0x42bd8f
mov ebx, dword [ebx]
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x42be47
cmp word [ebx], ax
je 0x42be47
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x20c], 0
je 0x42be06
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42bdd0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x42be06
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x42bdf3
mov eax, dword [0x4f4818]
mov dword [edi], eax
mov esi, ebx
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42be10
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42be26
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x210]
pop edi
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42be63
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00410170
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047ce22
mov esp, ebp
pop ebp
ret
Function at 0x4334b0
Capabilities:
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, edx
mov byte [ebp - 1], 0
push edi
mov eax, dword [esi + 0x10]
push 0
push 0
push 0x8003
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43351f
cmp dword [esi + 0x14], 0x10
jb 0x4334e5
mov esi, dword [esi]
push 0
push dword [ebp + 0xc]
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x433517
push dword [ebp + 8]
push 0
push dword [edi]
push 0x6603
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x433517
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433610
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x43361f
mov eax, 1
pop esi
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000008
push 1
push 0
push 0
push esi
call edi
test eax, eax
jne 0x433666
push eax
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433666
push 8
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433666
push 0x20
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
pop edi
pop esi
ret

Function at 0x433680
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x43373e
push ebx
call fcn.00433610
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x433724
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push esi
push esi
push 0x8003
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x433724
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi]
test eax, eax
jne 0x4336d3
mov eax, dword [edi + 4]
sub eax, ecx
push 0
push eax
mov eax, dword [ebp + 0x14]
add eax, ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x433717
push ebx
push 0x10
mov ecx, ebx
mov dword [ebp + 8], 0x10
call fcn.00417a50
push 0
lea eax, [ebp + 8]
push eax
push dword [ebx]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
mov ecx, 1
cmovne esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test esi, esi
jne 0x433733
push ebx
push 1
mov ecx, ebx
call fcn.00417a50
mov eax, dword [ebx]
mov byte [eax], 0x17
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10