joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d9f2
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x3ca784c]
call fcn.0044e8eb
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x42daf2
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x42da48
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x42da40
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x42da88
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x42daca
push 0x22
pop edx
cmp cx, dx
je 0x42da7a
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42da6a
xor ecx, ecx
cmp word [eax], cx
je 0x42daca
mov ecx, eax
add eax, 2
jmp 0x42dacc
test dx, dx
je 0x42dad2
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x42da7a
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x42dac0
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x42daca
cmp cx, dx
je 0x42dabd
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42daad
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x42da92
jmp 0x42da7a
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x42dad4
xor edx, edx
cmp dword [ebp], ebx
jne 0x42dadd
test edi, edi
jne 0x42dafa
test edx, edx
je 0x42dae2
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x42da36
test edi, edi
jne 0x42db0b
mov eax, ebx
jmp 0x42db0f
test esi, esi
je 0x42db0b
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x42db0f
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x431860
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x3ca6700], 0
jne 0x43186e
call fcn.004317e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x3ca6704]
call esi
test eax, eax
jne 0x431891
call fcn.004317e0
push dword [0x3ca6704]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x4318a0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x431900
mov ebx, 0x10
test edi, edi
jns 0x431909
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x4318d2
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4330bd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.DLL_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x4330d7
inc esi
push 2
call edi
test bx, ax
je 0x4330e3
or esi, 2
push 4
call edi
test bx, ax
je 0x4330ef
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4336d1
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.DLL_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x433709
push dword [edi]
call dword [sym.imp.USER32.DLL_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x4337ee
call dword [sym.imp.USER32.DLL_GetFocus]
cmp dword [edi], eax
jne 0x4337ee
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x43381c
test ebp, ebp
jle 0x43381c
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x43381c
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4337e5
push eax
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
cmp dword [edi + 0x10], 0
je 0x43378f
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x4337a4
push 0
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.DLL_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.DLL_DeleteObject]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteDC]
jmp 0x43381c
cmp dword [edi + 0x10], ebx
je 0x433808
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x43381c
push ebx
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.DLL_FillRect]
cmp dword [esp + 0x10], 0
je 0x43382c
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x433834
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.DLL_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.004374eb
push eax
call fcn.00437c97
push dword [0x3ca6774]
mov dword [esp + 0x24], eax
call fcn.0044eca4
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.DLL_ScreenToClient]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x4338a8
inc ebx
push 0x12
call esi
test di, ax
je 0x4338b4
or ebx, 2
push 0x11
call esi
test di, ax
je 0x4338c0
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.004330bd
push 0x433915
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.0043b2df
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x43484e
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x3ca78d0]
call fcn.0044e8eb
xor ebp, ebp
mov esi, eax
cmp dword [0x3ca6850], ebp
jne 0x43492a
xor ebx, ebx
inc ebx
mov dword [0x3ca6850], ebx
call fcn.0043763f
mov edi, 0xa4
push edi
push ebp
push 0x3ca6858
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x3ca6858], 0x13
lea eax, [esp + 0x10]
mov dword [0x3ca685c], edi
mov dword [0x3ca6868], 0x434799
mov dword [0x3ca686c], 0x434ae4
push eax
mov dword [0x3ca68c0], 0x434774
mov dword [0x3ca68c4], 0x434a2f
mov dword [0x3ca6864], 0x43474f
mov dword [0x3ca68e8], 0x4347b4
mov dword [0x3ca68fc], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43492a
cmp dword [esp + 0x20], ebx
je 0x434912
cmp dword [esp + 0x20], 2
jne 0x43492a
cmp dword [esp + 0x14], 5
jae 0x43491a
mov dword [0x3ca68fc], ebp
jmp 0x43492a
jne 0x43492a
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x3ca68fc], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0043c027
mov eax, dword [esp + 0x140]
push ebp
push dword [0x3ca5d38]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x434a00
push dword [esp + 0x128]
push dword [0x3ca78ec]
call fcn.0044eac9
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x4349cf
push edi
call fcn.00449513
test eax, eax
je 0x4349cf
push ebp
push ebp
push edi
call fcn.0044915d
mov dword [esi + 0x18], eax
jmp 0x4349d2
mov dword [esi + 0x18], ebp
push 0x43449e
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0x3ca6858
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x3ca6854], eax
call fcn.0043751a
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x435815
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x3ca78d0]
call fcn.0044e8eb
xor ebx, ebx
mov ebp, eax
cmp dword [0x3ca6a68], ebx
jne 0x4358a9
mov esi, 0xa4
push esi
push ebx
push 0x3ca6a70
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x3ca6a74], esi
mov esi, dword [sym.imp.USER32.DLL_LoadCursorW]
mov dword [0x3ca6a70], 0xa
mov dword [0x3ca6a78], 0x4353aa
push 0x7f89
push ebx
mov dword [0x3ca6ae8], 0x4377d3
mov dword [0x3ca6aec], 0x4377ad
mov dword [0x3ca6a7c], 0x4353c9
mov dword [0x3ca6b00], 0x4353e9
call esi
mov dword [0x3ca6a68], eax
test eax, eax
jne 0x4358a9
push 0x7f00
push ebx
call esi
mov dword [0x3ca6a68], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0043c027
push ebx
push dword [0x3ca5d38]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x435975
push edi
push dword [esp + 0x14]
push dword [0x3ca78ec]
call fcn.0044eac9
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.DLL_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x3ca5d34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x3ca6a70
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.0043751a
push 0x4354cf
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.DLL_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x438f80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x438ffa
push 9
call esi
test al, al
jns 0x438ffa
push 0x11
call esi
test al, al
js 0x438ffa
push 0x10
call esi
test al, al
js 0x438ffa
push 0x12
call esi
test al, al
js 0x438ffa
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x438ffa
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x438ffa
xor eax, eax
jmp 0x43907b
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x439022
push 0x11
call esi
test al, al
js 0x43901a
push 0x10
call esi
test al, al
js 0x43901a
push 0x12
call esi
test al, al
jns 0x439022
push 1
push edi
call fcn.00439083
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x439038
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x439078
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x439078
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x439078
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x439078
lea eax, [esi - 1]
push eax
push dword [0x3ca78fc]
call fcn.0044ea8a
test eax, eax
je 0x439078
mov eax, dword [eax + 8]
jmp 0x43907a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4395bc
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x3ca6e20]
push esi
test eax, eax
jne 0x4395cd
push fcn.004396d5
push 0x10
push 0x258
call fcn.0044eb5d
mov dword [0x3ca6e20], eax
push dword [esp + 0xc]
push eax
call fcn.0044eac9
mov esi, eax
test esi, esi
je 0x4396ce
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4395ef
mov edi, 0x4b606c
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4395ff
xor eax, eax
cmp word [ebx], ax
jne 0x439604
mov ebx, 0x4ca788
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x3ca5d34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4396b5
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x439665
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x439669
push 0x4ca784
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x439669
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x43968d
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4396a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4396a1
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x3ca5d34]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x4396cc
cmp dword [esp + 0x14], 0xffffffff
je 0x4396c0
mov esi, dword [esp + 0x14]
push esi
push dword [0x3ca6e20]
call fcn.0044ea3b
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x439764
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x4397dc
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x4397bd
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x4397ba
cmp ecx, 0x5c
je 0x4397ba
cmp ecx, 0x2f
jne 0x4397c7
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x4397a7
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4397de
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x439b10
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x439be5
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x439be4
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.0043c0fa
push esi
mov word [ebp - 0x20], ax
call fcn.0043c122
push esi
mov word [ebp - 0x1e], ax
call fcn.0043c145
push esi
mov word [ebp - 0x1c], ax
call fcn.0043c167
push esi
mov word [ebp - 0x1a], ax
call fcn.0043c189
push esi
mov word [ebp - 0x18], ax
call fcn.0043c1ab
push esi
mov word [ebp - 0x16], ax
call fcn.0043c1cd
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x439bc3
lea eax, [ebp - 8]
jmp 0x439bd1
cmp dword [ebp + 0xc], 2
jne 0x439bce
lea ecx, [ebp - 8]
jmp 0x439bd1
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x439d40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x439d7c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x43a870
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x43a891
push esi
call fcn.00439d40
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x43a905
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x43a8f2
dec ecx
je 0x43a8dd
sub ecx, 2
je 0x43a8ca
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x43a94a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x43a96b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x43afc0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x43afe7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0043a870
mov dword [esp + 4], eax
jmp 0x43b001
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x43b00d
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x43b029
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x43b039
mov esi, 2
jmp 0x43b055
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x43b048
mov esi, 3
jmp 0x43b055
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x43b0b2
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x43b084
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.0043a870
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8

Function at 0x43c8f9
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x43ee09
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x3ca7944]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 0xac]
je 0x43ee31
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xb0]
je 0x43ee46
push eax
push esi
mov dword [esi + 0xb0], eax
call dword [esi]
push dword [ebp + 0x10]
mov eax, dword [esi + 0x90]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 0x30]
pop esi
pop ebp
ret 0x14

Function at 0x43ef03
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x3ca7944]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x43ef2b
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14
Function at 0x43f0fb
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x3ca5d34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x3ca7944]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x3ca7948], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00441cf7
mov dword [esi + 0x58], 0x43fd0e
mov eax, esi
mov dword [esi + 0x5c], 0x43fd5a
mov dword [esi + 0x10], fcn.0043f8af
mov dword [esi + 0x30], 0x43f7a1
mov dword [esi + 0x64], 0x43fde4
mov dword [esi + 0x60], 0x43fd9c
mov dword [esi + 0x34], 0x43f451
mov dword [esi + 0x24], 0x43f428
mov dword [esi + 0x28], 0x43f3fd
mov dword [esi + 0x2c], 0x43f34f
mov dword [esi + 0x44], 0x43fb14
pop esi
ret 4