joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b7e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0xc], 0
push esi
je 0x41b83a
mov dword [0x510a6c], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x51053c], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x50db58
je 0x41b825
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x41b817
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, 0x50db58
call fcn.00410170
push 0
push 0
push 0
push 0x423950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [ebp + 8]
push esi
push ecx
push str.time.windows.com
call fcn.0041b8a0
test eax, eax
jne 0x41b861
push esi
push ecx
push str.time.nist.gov
call fcn.0041b8a0
test eax, eax
jne 0x41b861
xor esi, esi
jmp 0x41b866
mov esi, 1
cmp dword [ebp + 0xc], 0
je 0x41b88c
mov eax, dword [0x510a68]
mov dword [0x510a6c], 1
test eax, eax
je 0x41b88c
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da318
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 0x41c46d
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 0x41c4a6
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.0047ec50
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x41c4b8
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 0x41c510
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c506
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c52c
push edx
push ecx
call fcn.0047cdbf
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.0047cdd2
mov esp, ebp
pop ebp
ret
call fcn.0048954f
int3

Function at 0x41e170
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 0x41e265
cmp dword [edi + 8], 0x70b
jne 0x41e265
mov edx, dword [edi + 0xc]
cmp edx, 0x201
je 0x41e1aa
cmp edx, 0x203
jne 0x41e265
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.0047d6e4
lea ecx, [esi + esi]
mov edi, eax
push ecx
push 0
push edi
call fcn.0047f1d0
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.0047cdcd
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 0x41f870
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.0047f1d0
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.0047f1d0
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 0x41f9b7
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
jmp 0x41f9e7
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 0x41fa51
mov eax, 0x4f47c8
jmp 0x41fa64
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 0x41fa77
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.0047cdd2
mov esp, ebp
pop ebp
ret
Function at 0x4201a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x4fae98
push dword [ebp + 8]
xor bl, bl
call fcn.0048bc3c
mov esi, eax
add esp, 8
test esi, esi
je 0x4201e7
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x4201d8
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.004aaeb3
add esp, 0x10
push esi
call fcn.004aab4c
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 0x422b60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da840
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.004231e0
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 0x4239f0
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.004af0bb
add esp, 8
test eax, eax
jne 0x423a71
push 0x4faf10
push edi
call fcn.0048bc3c
mov edi, eax
add esp, 8
test edi, edi
je 0x423a71
mov ebx, dword [ebp - 0x24]
mov ecx, esi
push esi
push ebx
call fcn.00417600
test ebx, ebx
je 0x423a55
push edi
push ebx
push 1
push dword [esi]
call fcn.004af647
add esp, 0x10
mov ecx, esi
push esi
push eax
call fcn.00417600
push edi
call fcn.004aab4c
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cdd2
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.0047cdd2
mov esp, ebp
pop ebp
ret
Function at 0x428e00
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.0041b790
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 0x428e50
push edi
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x428e61
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 0x428e80
mov eax, dword [str..dat]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
xor ecx, ebp
mov eax, dword [0x4fb1a0]
mov dword [ebx + 4], eax
mov ax, word [0x4fb1a4]
pop esi
mov word [ebx + 8], ax
pop ebx
call fcn.0047cdd2
mov esp, ebp
pop ebp
ret 4
Function at 0x4291f0
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 0x42936f
cmp dword [ebp + 0xc], ebx
je 0x42936f
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 0x429256
push esi
call edi
mov ecx, eax
test ecx, ecx
je 0x42935a
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.00428e00
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
je 0x429292
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, eax
test ecx, ecx
je 0x42933f
lea eax, [ebp - 0x20c]
push 0x4fae98
push eax
call fcn.0048bc3c
mov esi, eax
add esp, 8
test esi, esi
je 0x42933f
push esi
push dword [ebp + 0xc]
push 1
push dword [ebp - 0x214]
call fcn.004aaeb3
push esi
call fcn.004aab4c
push dword [ebp - 0x218]
xor edx, edx
lea ecx, [ebp - 0x20c]
push 2
xor ebx, ebx
call fcn.004468c0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x42933f
mov eax, dword [esi]
cmp eax, 1
je 0x429307
mov dword [0x510a80], 0x80000
mov ecx, 0x80000
jmp 0x429325
mov ecx, dword [esi + 4]
push 2
push 0
push dword [ebp - 0x21c]
push 0
call fcn.004461a0
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 0x42933a
call fcn.00446de0
jmp 0x42933f
call fcn.00441160
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42935a
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.0047cdd2
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cdd2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x429c30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db1e9
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 0x429d1b
lea ebx, [esi + 0x30]
cmp ebx, esi
je 0x429ca7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x429c9c
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00410170
push ebx
call fcn.00416430
add esp, 4
lea ecx, [esi + 0x18]
cmp dword [esi + 0x2c], 8
jb 0x429cbc
mov ecx, dword [esi + 0x18]
push dword [esi + 0x28]
push ecx
mov ecx, ebx
call fcn.00409280
cmp dword [ebx + 0x14], 8
jb 0x429ccf
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 0x429d6c
mov ecx, 0x2e
cmp cx, word [esi + 0x78]
jne 0x429d2a
lea ebx, [esi + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x429d6c
mov eax, 0x2e
cmp ax, word [esi + 0x78]
jne 0x429d6c
push ebx
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x429d2a
jmp 0x429d6c
lea eax, [esi + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x429d6c
cmp edi, esi
je 0x429d43
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x429d38
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00410170
push edi
call fcn.00416430
add esp, 4
add esi, 0x78
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429d54
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 0x429f50
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.00429eb0
test eax, eax
je 0x429fe9
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 0x429fd4
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 0x429fd3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x429fd3
test ebx, ebx
je 0x429fd3
mov esi, dword [ebp + 0xc]
mov ecx, esi
push esi
push ebx
call fcn.00417600
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x429fce
push ebx
push dword [ebp + 8]
push eax
call fcn.0047e6d0
add esp, 0xc
mov esi, 1
pop ebx
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x429fe9
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 0x42a0a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db269
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.00429eb0
test eax, eax
je 0x42a1d6
push 0x4fb220
push 0x74
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42a11f
push 0x4fb220
push 0x6a
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42a1c1
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 0x42a1c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42a1c1
cmp dword [ebp - 0x2c], ebx
je 0x42a1c1
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.00424870
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e350
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42a1bc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a1b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a1f6
push edx
push ecx
call fcn.0047cdbf
add esp, 8
mov ebx, 1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x42a1d6
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.0047cdd2
mov esp, ebp
pop ebp
ret 8
call fcn.0048954f
int3
Function at 0x42ad90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db3c8
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 0x42aef5
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0x64], 0
call fcn.0042ace0
test eax, eax
jne 0x42aef5
mov ecx, closesocket
call fcn.0042ace0
test eax, eax
je 0x42adf5
cmp eax, 2
jne 0x42aef5
push 1
push closesocket
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 0x42aee6
push 1
push closesocket
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 0x42ae89
lea eax, [ebp - 0x28]
push eax
push 0x4f47c8
lea ecx, [ebp - 0x4c]
call fcn.0040e900
test eax, eax
je 0x42ae86
cmp dword [ebp - 0x18], 0
je 0x42ae86
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 0x42ae86
mov dword [esi + 0x64], 1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x42aec0
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42aeb6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42af18
push edx
push ecx
call fcn.0047cdbf
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 0x42aee3
push eax
call dword [ebp - 0x40]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 4], 4
test eax, eax
je 0x42aef5
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.0047cdd2
mov esp, ebp
pop ebp
ret
call fcn.0048954f
int3
Function at 0x42bd40
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 0x42bd6f
mov ebx, dword [ebx]
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x42be27
cmp word [ebx], ax
je 0x42be27
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x20c], 0
je 0x42bde6
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42bdb0
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x42bde6
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x42bdd3
mov eax, dword [0x4f48e8]
mov dword [edi], eax
mov esi, ebx
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42bdf0
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42be06
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 0x42be43
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.0047cdd2
mov esp, ebp
pop ebp
ret