joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420c7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x420cc4
call fcn.00417e56
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x420cc4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x420ce0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004207f5
mov esi, eax
test edi, edi
je 0x420cde
test ebx, ebx
je 0x420cde
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4214b3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4487e4
call fcn.00435905
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4214d8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42151e
lea ecx, [ebp - 0x10]
call fcn.00404800
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004159c1
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401630
mov eax, esi
call fcn.004359dd
ret 8
Function at 0x4331c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x466910]
jne 0x4331ce
repz ret
jmp fcn.0043975a

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4341bf
call fcn.00435ab0
mov dword [eax], esi
call fcn.00435a9d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00434053
add esp, 0x14
push 0x16
pop eax
jmp 0x434214
test dword [ebp + 0xc], 0xfffffff9
jne 0x43419b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4341ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435ac3
pop ecx
call fcn.00435a9d
mov eax, dword [eax]
jmp 0x434214
test al, 0x10
jne 0x434212
test al, 1
je 0x434212
test byte [ebp + 0xc], 2
je 0x434212
call fcn.00435ab0
mov dword [eax], 5
call fcn.00435a9d
mov dword [eax], 0xd
jmp 0x4341e3
xor eax, eax
pop esi
pop ebp
ret

Function at 0x44189d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00439169
and dword [ebp - 4], 0
cmp dword [0x46ab3c], 0
mov ebx, eax
jne 0x44194e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4419ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4419ff
push eax
call fcn.004390f7
mov dword [esp], 0x452e88
push edi
mov dword [0x46ab3c], eax
call esi
push eax
call fcn.004390f7
mov dword [esp], 0x452e74
push edi
mov dword [0x46ab40], eax
call esi
push eax
call fcn.004390f7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46ab44], eax
call esi
push eax
call fcn.004390f7
pop ecx
mov dword [0x46ab4c], eax
test eax, eax
je 0x44194e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004390f7
pop ecx
mov dword [0x46ab48], eax
mov eax, dword [0x46ab48]
cmp eax, ebx
je 0x4419a6
cmp dword [0x46ab4c], ebx
je 0x4419a6
push eax
call fcn.00439172
push dword [0x46ab4c]
mov esi, eax
call fcn.00439172
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4419a6
test edi, edi
je 0x4419a6
call esi
test eax, eax
je 0x44199d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44199d
test byte [ebp - 0xc], 1
jne 0x4419a6
or dword [ebp + 0x10], 0x200000
jmp 0x4419df
mov eax, dword [0x46ab40]
cmp eax, ebx
je 0x4419df
push eax
call fcn.00439172
pop ecx
test eax, eax
je 0x4419df
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4419df
mov eax, dword [0x46ab44]
cmp eax, ebx
je 0x4419df
push eax
call fcn.00439172
pop ecx
test eax, eax
je 0x4419df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46ab3c]
call fcn.00439172
pop ecx
test eax, eax
je 0x4419ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x441a01
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6194a570
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6195ab80
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6195ab80
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6194a5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x61a6e054]
test esi, esi
jle 0x6194a6f0
mov eax, dword [0x61a6e058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6194a604
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6194a687
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6194a5f0
mov dword [esp], ebx
call fcn.6194ad30
mov edi, eax
test eax, eax
je 0x6194a717
mov eax, dword [0x61a6e058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6194ae70
mov edx, dword [0x61a6e058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6194a6f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6194a680
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6194a690
add dword [0x61a6e054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x61a6e058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6194a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6194a570
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6194a60e
mov eax, dword [0x61a6e058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6194a570
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6194a570
lea esi, [esi]
nop
Function at 0x6194a9b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x61a6e064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x61a6e05c]
sub esp, 4
test ebx, ebx
je 0x6194aa05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6194a9fe
test esi, esi
je 0x6194a9fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6194a9e0
mov dword [esp], 0x61a6e064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6194ad30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x61940000], 0x5a4d
jne 0x6194ad55
mov ecx, dword [0x6194003c]
cmp dword [ecx + 0x61940000], 0x4550
lea edx, [ecx + 0x61940000]
je 0x6194ad60
ret
cmp word [ecx + 0x61940018], 0x10b
jne 0x6194ad55
push esi
movzx eax, word [ecx + 0x61940014]
push ebx
movzx esi, word [ecx + 0x61940006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x61940000
test esi, esi
je 0x6194ada8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6194ad9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6194adaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6194ad90
xor eax, eax
pop ebx
pop esi
ret

Function at 0x6194b320
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x61a6e060]
test eax, eax
jne 0x6194aa30
ret
push ebx
sub esp, 0x18
mov dword [esp + 4], 0xc
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
je 0x6194aa90
mov eax, dword [esp + 0x20]
mov dword [esp], 0x61a6e064
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x61a6e05c]
mov dword [0x61a6e05c], ebx
sub esp, 4
mov dword [ebx + 8], eax
mov dword [esp], 0x61a6e064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
or eax, 0xffffffff
jmp 0x6194aa8b
push esi
push ebx
sub esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x6194b350
mov dword [esi], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
add esp, 4
pop ebx
pop esi
jmp 0x6195ad80
add esp, 4
pop ebx
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
test eax, eax
jne 0x6195ad90
xor eax, eax
ret
jmp 0x6194aa20

Function at 0x6194b390
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6194b3d0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x6194b3f8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x6195b0d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [0x61a6e02c]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6195b138
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x61a28432
mov ecx, eax
call fcn.619e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c30
jmp 0x6195b2a8
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_OpenClipboard]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
je 0x6195b18a
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x61a28432
mov ecx, eax
call fcn.619e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c30
jmp 0x6195b2a8
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_GetClipboardData]
call eax
sub esp, 4
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0
jne 0x6195b1e5
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x61a28432
mov ecx, eax
call fcn.619e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c30
jmp 0x6195b2a8
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalLock]
call eax
sub esp, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
jne 0x6195b23d
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c00
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov dword [esp], 0x61a28432
mov ecx, eax
call fcn.619e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c30
jmp 0x6195b2a8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c00
lea eax, [esp + 0x34]
lea edx, [esp + 0x2b]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov ecx, eax
call fcn.619e6e20
sub esp, 8
lea eax, [esp + 0x2b]
mov ecx, eax
call fcn.619a9c30
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call eax
sub esp, 4
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.619e6d50
sub esp, 4
lea eax, [esp + 0x34]
mov ecx, eax
call fcn.619e7940
mov eax, dword [esp + 0x4c]
sub eax, dword [0x61a6e02c]
je 0x6195b2b9
call fcn.619415c0
mov eax, dword [esp + 0x1c]
add esp, 0x5c
ret
Function at 0x6195f890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x61a29e11
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x61a29e75]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6194b010
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.61a1eaf0
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x61a2726c], 0
jne 0x6195f9b6
mov byte [0x61a2726c], 1
call fcn.61a1ced0
test eax, eax
je 0x6195f984
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6194a220
mov dword [esp], 2
mov esi, dword [fcn.6195ab80]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6195f974
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x61a2a555
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x61a1f370
jmp 0x61a1f368
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6195f93a
mov dword [esp], 2
call dword [0x61a26178]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x61a1f363
mov dword [esp], 2
call dword [0x61a26178]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x61a2a504
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.6195a428
call fcn.61a1d2a0
call fcn.61a1cdb0
call fcn.61a1cf20
jmp 0x61a1f363
Function at 0x61970ed4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
sub esp, 0x68
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, edx
mov byte [esp + 0x10], al
mov eax, dword [0x61a6e02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.61a187f0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.619e71e0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x61970f78
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp], edx
mov ecx, eax
call fcn.6196a40c
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.6196a2f0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.619e7d60
sub esp, 4
add dword [esp + 0x18], 1
jmp 0x61970f1c
mov dword [esp + 0x2c], str.dwsmaklthrtter
mov dword [esp + 0x24], 0x61a32ec0
mov dword [esp + 0x30], 0x61a32f38
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x30]
je 0x61971080
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.61a19374
test al, al
je 0x61971076
cmp byte [esp + 0x10], 0
je 0x61971041
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.619eb830
sub esp, 8
lea eax, [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], 3
mov ecx, eax
call fcn.619eb830
sub esp, 8
mov eax, dword [esp + 0x34]
add eax, 4
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov ecx, eax
call fcn.61970d40
sub esp, 4
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp], edx
mov ecx, eax
call fcn.61970e18
sub esp, 4
test al, al
je 0x61971041
mov eax, 1
jmp 0x61971046
mov eax, 0
test al, al
je 0x6197106d
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 4
mov ecx, eax
call fcn.619eb830
sub esp, 8
mov ebx, dword [esp + 0x40]
jmp 0x619710a1
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 4]
jmp 0x619710a1
add dword [esp + 0x24], 8
jmp 0x61970f90
lea eax, [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, eax
call fcn.619eb830
sub esp, 8
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.619e7940
mov eax, ebx
mov ebx, dword [esp + 0x5c]
sub ebx, dword [0x61a6e02c]
je 0x619710bf
call fcn.619415c0
add esp, 0x68
pop ebx
ret 0xc
Function at 0x61971240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [0x61a6e02c]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.61a187f0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.619e71e0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
je 0x619712cd
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.6196a2f0
sub esp, 8
movsx edx, al
lea eax, [esp + 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.619e7d60
sub esp, 4
add dword [esp + 0x14], 1
jmp 0x61971285
mov dword [esp + 0x38], 0x61a27280
mov dword [esp + 0x30], 0x61a27280
mov dword [esp + 0x3c], 0x61a27480
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x3c]
je 0x6197137b
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.61a19374
test al, al
je 0x61971371
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.619a9c00
mov eax, dword [esp + 0x40]
sub eax, 0x61a27280
sar eax, 2
movsx edx, al
mov eax, dword [esp + 0x34]
mov dword [esp], edx
mov ecx, eax
call fcn.6196a220
sub esp, 4
movsx edx, al
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2f]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 1
mov ecx, eax
call fcn.619e7140
sub esp, 0xc
lea eax, [esp + 0x2f]
mov ecx, eax
call fcn.619a9c30
jmp 0x61971386
add dword [esp + 0x30], 4
jmp 0x619712e5
mov eax, dword [esp + 0x1c]
mov ecx, eax
call fcn.619e71e0
lea eax, [esp + 0x44]
mov ecx, eax
call fcn.619e7940
mov eax, dword [esp + 0x5c]
sub eax, dword [0x61a6e02c]
je 0x619713a2
call fcn.619415c0
mov eax, dword [esp + 0x1c]
add esp, 0x6c
ret 0xc
Function at 0x1000129c
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0x18
mov eax, 0x10023f03
call fcn.1000ecae
mov esi, ecx
mov eax, dword [0x1002cc50]
mov edi, dword [0x1002d744]
mov ecx, 0x1002cc50
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x100012e3
test esi, 0xffff0000
jne 0x100012e3
movzx eax, si
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100015de
jmp 0x100012ec
push esi
lea eax, [ebp - 0x10]
call fcn.1000153b
mov esi, 0x100275a8
push esi
push str.HTML
mov dword [ebp - 0x1c], ebx
call fcn.1000d7bf
test eax, eax
pop ecx
pop ecx
jne 0x10001309
push 0x17
jmp 0x1000130a
push esi
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], eax
jne 0x1000132c
lea eax, [ebp - 0x10]
call fcn.100015c1
xor eax, eax
call fcn.1000ed4d
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x18], eax
push esi
jne 0x10001344
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1000131c
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x10001364
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1000131c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x10001391
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x10]
call fcn.100015c1
mov eax, ebx
jmp 0x10001326
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100013da
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100013cf
mov dword [ebp - 0x1c], 1
cmp esi, ebx
je 0x100013da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x1c]
jmp 0x10001373

Function at 0x10001cc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001cde
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10001d13
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10001d0f
cmp edi, eax
jae 0x10001d13
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10001d01
cmp edi, eax
jb 0x10001d17
xor eax, eax
jmp 0x10001d21
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret