joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ad2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403b11
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403b11
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403b11
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403b11
cmp dword [ecx + 0x74], 0xe
jbe 0x403b11
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40a3dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4186e0
push 0x4186d8
push str.FlsAlloc
push 0x1f
call fcn.0040a29c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a411
push dword [ebp + 8]
mov ecx, esi
call dword [0x417160]
call esi
jmp 0x40a417
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a45b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4186f0
push 0x4186e8
push str.FlsGetValue
push 0x21
call fcn.0040a29c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a492
push dword [ebp + 8]
mov ecx, esi
call dword [0x417160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a49a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4186f8
push 0x4186f0
push str.FlsSetValue
push 0x22
call fcn.0040a29c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a4d4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40da22
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40dabf
push ebx
push esi
call fcn.0040d9eb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040d97f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40da6c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dabe
push edi
push eax
call fcn.0040b1b8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40da8c
call fcn.0040a12f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dabd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040d97f
add esp, 0x20
test eax, eax
jne 0x40daab
push edi
call fcn.0040a12f
jmp 0x40dab3
push ebx
call fcn.0040a12f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x415b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415bad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415bad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41b558
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00483040
mov dword [esp], 0xc8
mov dword [esp + 4], 0x96
push dword [0x1dec0ec]
call fcn.00468f23
mov ebx, eax
push dword [0x1dec0ec]
call fcn.00469333
mov edi, eax
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
add ebx, edi
mov edi, dword [esp]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
mov dword [esp + 8], ebx
push dword [0x1dec0ec]
call fcn.00468f92
mov ebx, eax
push dword [0x1dec0ec]
call fcn.00469893
mov edi, eax
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
add ebx, edi
mov edi, dword [esp + 4]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
mov dword [esp + 0xc], ebx
push reloc.WS2_32.dll_connect
push dword [0x1debe44]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
call fcn.00469341
push 0xa
call fcn.00479c20
push eax
push 0x1a
push 0xaa
push 0xf
push 0xf
push 6
call fcn.00463e33
push 8
call fcn.00479c20
push eax
push 0x1a
push 0xaa
push 0x2d
push 0xf
push 4
call fcn.00463e33
push 9
call fcn.00479c20
push eax
push 0x1a
push 0xaa
push 0x4b
push 0xf
push 5
call fcn.00463e33
push dword [0x1dec0d0]
push 0x14
push 0xaa
push 0x78
push 0xf
push 7
call fcn.00462681
call fcn.0042f615
call fcn.00469232
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
je 0x41b75b
call fcn.0046c754
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x41b758
push dword [esp + 0x20]
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x41b757
call fcn.0046c736
push eax
mov ebx, 6
cmp ebx, dword [esp]
jne 0x41b70c
mov eax, 0x545cfe
push eax
call fcn.0045d0cc
add esp, 0xc
jmp 0x41b7b0
mov ebx, 4
cmp ebx, dword [esp]
jne 0x41b72b
mov eax, 0x545cfe
push eax
call fcn.0045d0cc
add esp, 0xc
jmp 0x41b7b0
mov ebx, 5
cmp ebx, dword [esp]
jne 0x41b747
mov eax, 0x545cfe
push eax
call fcn.0045d0cc
add esp, 0xc
jmp 0x41b7b0
mov ebx, 7
cmp ebx, dword [esp]
jne 0x41b756
add esp, 0xc
jmp 0x41b7b0
pop eax
pop eax
pop eax
jmp 0x41b765
push 0
call fcn.004698a1
push 0x1b
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x41b788
call fcn.00469742
mov ebx, eax
and ebx, ebx
jne 0x41b788
call fcn.0042f615
jmp 0x41b7b0
push 0xd
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x41b7ab
call fcn.00469742
mov ebx, eax
and ebx, ebx
jne 0x41b7ab
call fcn.0042f615
jmp 0x41b7b0
jmp 0x41b6b8
push 0
call fcn.00468bb1
xor eax, eax
add esp, 0x10
pop edi
pop ebx
ret 4
Function at 0x41defd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push edi
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41df04
call fcn.00483040
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00440000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00440000
mov dword [esp + 8], 0x1a4
mov dword [esp + 0xc], 0xa0
push dword [0x1dec0ec]
call fcn.00468f23
mov ebx, eax
push dword [0x1dec0ec]
call fcn.00469333
mov edi, eax
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
add ebx, edi
mov edi, dword [esp + 8]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
mov dword [esp + 0x10], ebx
push dword [0x1dec0ec]
call fcn.00468f92
mov ebx, eax
push dword [0x1dec0ec]
call fcn.00469893
mov edi, eax
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
add ebx, edi
mov edi, dword [esp + 0xc]
mov eax, edi
mov ecx, 2
cdq
idiv ecx
mov edi, eax
sub ebx, edi
mov dword [esp + 0x14], ebx
push edx
call fcn.00482ea0
pop edx
push eax
push reloc.WS2_32.dll_connect
mov edx, dword [0x1debfb8]
push edx
call fcn.00482ea0
pop edx
push eax
push edx
call fcn.00482ee0
mov edx, dword [esp + 0xc]
push edx
call fcn.00482ee0
call fcn.00482fd0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x28]
push dword [esp + 0x28]
push 1
call fcn.00440312
add dword [esp + 0x14], edx
call fcn.00469341
call fcn.00440330
push dword [esp + 4]
push 0x50
push 0x17c
push 0xa
push 0xf
push 3
call fcn.004650bd
push dword [0x1debef4]
push 0x1e
push 0x14a
push 0x6e
push 0x2d
push 7
call fcn.00462681
call fcn.0042f615
call fcn.00469232
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
je 0x41e14a
call fcn.0046c754
push eax
mov ebx, 1
cmp ebx, dword [esp]
jne 0x41e147
push dword [esp + 0x1c]
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x41e146
call fcn.0046c736
push eax
mov ebx, 7
cmp ebx, dword [esp]
jne 0x41e145
push dword [esp + 0xc]
mov edx, 0x5566ca
pop ecx
call fcn.004402c0
je 0x41e0ca
mov eax, 0x5497ae
push eax
call fcn.0045d0cc
jmp 0x41e140
push dword [esp + 0xc]
mov edx, 0x54fb10
pop ecx
call fcn.004402c0
je 0x41e0e8
mov eax, 0x5430ec
push eax
call fcn.0045d0cc
jmp 0x41e140
push dword [esp + 0xc]
mov edx, 0x546ace
pop ecx
call fcn.004402c0
je 0x41e106
mov eax, 0x557b6e
push eax
call fcn.0045d0cc
jmp 0x41e140
push dword [esp + 0xc]
mov edx, 0x553f98
pop ecx
call fcn.004402c0
je 0x41e124
mov eax, 0x550aa8
push eax
call fcn.0045d0cc
jmp 0x41e140
push dword [esp + 0xc]
mov edx, 0x54fc10
pop ecx
call fcn.004402c0
je 0x41e140
mov eax, 0x553e2e
push eax
call fcn.0045d0cc
add esp, 0xc
jmp 0x41e1a1
pop eax
pop eax
pop eax
jmp 0x41e154
push 1
call fcn.004698a1
push 0x1b
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x41e178
call fcn.00469742
mov ebx, eax
cmp ebx, 1
jne 0x41e178
call fcn.0042f615
jmp 0x41e1a1
push 0xd
call sub.USER32.dll_GetKeyState
mov ebx, eax
cmp ebx, 1
jle 0x41e19c
call fcn.00469742
mov ebx, eax
cmp ebx, 1
jne 0x41e19c
call fcn.0042f615
jmp 0x41e1a1
jmp 0x41e05e
push 1
call fcn.00468bb1
xor eax, eax
push dword [esp]
call fcn.004830a0
push dword [esp + 4]
call fcn.004830a0
add esp, 0x1c
pop edi
pop ebx
ret 8
Function at 0x42bdd2
Capabilities:
Hide graphical window

Disassembly:
push ebx
call fcn.00483040
push dword [esp + 8]
call fcn.00468d1f
and eax, eax
je 0x42bec3
mov ebx, dword [esp + 8]
cmp ebx, dword [0x1dec0ec]
jne 0x42be56
push dword [0x1dec0f0]
call fcn.00468d1f
and eax, eax
je 0x42be14
push 1
push dword [0x1dec0f0]
call fcn.0046907f
push 0
push dword [0x1dec0ec]
call fcn.0046907f
push 9
push dword [0x1dec0ec]
call fcn.00468d31
push eax
call sub.USER32.dll_ShowWindow
push dword [0x1dec0ec]
call fcn.00468d31
push eax
call sub.USER32.dll_SetForegroundWindow
push dword [0x1dec0ec]
call fcn.004698a1
mov ebx, dword [esp + 8]
cmp ebx, dword [0x1dec0f0]
jne 0x42bec3
push dword [0x1dec0ec]
call fcn.00468d1f
and eax, eax
je 0x42be81
push 1
push dword [0x1dec0ec]
call fcn.0046907f
push 0
push dword [0x1dec0f0]
call fcn.0046907f
push 9
push dword [0x1dec0f0]
call fcn.00468d31
push eax
call sub.USER32.dll_ShowWindow
push dword [0x1dec0f0]
call fcn.00468d31
push eax
call sub.USER32.dll_SetForegroundWindow
push dword [0x1dec0f0]
call fcn.004698a1
xor eax, eax
pop ebx
ret 4
Function at 0x43f414
Capabilities:
Query service status

Disassembly:
push ebp
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x43f41a
call fcn.00483040
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00440000
lea eax, [esp + 4]
push 0xf003f
push 0
push 0
call sub.ADVAPI32.dll_OpenSCManagerW
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x43f4a1
push 0xf01ff
push dword [esp + 4]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_OpenServiceW
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x43f48f
lea eax, [esp + 4]
push eax
push dword [esp + 0x28]
call sub.ADVAPI32.dll_QueryServiceStatus
push dword [esp + 0x24]
call sub.ADVAPI32.dll_CloseServiceHandle
push dword [esp + 0x20]
call sub.ADVAPI32.dll_CloseServiceHandle
lea ebp, [esp + 4]
mov eax, dword [ebp + 4]
jmp 0x43f4a3
xor eax, eax
push dword [esp]
call fcn.004830a0
add esp, 0x28
pop ebp
ret 4
Function at 0x43f991
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.00483040
push dword [esp + 0x10]
push 0
push 1
call sub.KERNEL32.dll_OpenProcess
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x43f9da
push 1
push dword [esp + 4]
call sub.KERNEL32.dll_TerminateProcess
and eax, eax
je 0x43f9d2
mov dword [esp + 4], 1
push dword [esp]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esp + 4]
jmp 0x43f9e2
add esp, 8
pop ebx
ret 4

Function at 0x43fa24
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.00483040
push dword [esp + 0xc]
call fcn.00440330
mov ebx, dword [0x1dec2e8]
and ebx, ebx
jne 0x43fa60
push 0
push 0
call sub.USER32.dll_FindWindowW
mov dword [0x1dec2ec], eax
mov dword [0x1dec2e8], 1
jmp 0x43fa75
push 2
push dword [0x1dec2ec]
call sub.USER32.dll_GetWindow
mov dword [0x1dec2ec], eax
mov ebx, dword [0x1dec2ec]
and ebx, ebx
je 0x43fb0f
push 0xfffffff0
push dword [0x1dec2ec]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x10000000
cmp ebx, 0x10000000
jne 0x43fb0d
push 0xffffffec
push dword [0x1dec2ec]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x80
cmp ebx, 0x80
je 0x43fb0d
push edx
call fcn.00482ea0
pop edx
push eax
push edx
call fcn.00482ea0
pop edx
push eax
push 0x100
call fcn.00480920
lea eax, [esp + 4]
push eax
call fcn.00482f40
push 0x100
push dword [esp + 4]
push dword [0x1dec2ec]
call sub.USER32.dll_GetWindowTextW
push dword [esp]
mov edx, 0x540098
pop ecx
call fcn.004402c0
jne 0x43fb0d
jmp 0x43fb27
jmp 0x43fb19
mov dword [0x1dec2e8], 0
mov ebx, dword [0x1dec2ec]
and ebx, ebx
jne 0x43fa36
mov edx, dword [esp]
push edx
call fcn.00482ea0
pop edx
push eax
push edx
call fcn.00482ee0
pop eax
push eax
call fcn.00440300
pop edx
add eax, edx
jmp 0x43fb4e
push dword [esp]
call fcn.004830a0
add esp, 4
pop ebx
ret

Function at 0x440dd3
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x440e6b
push edi
push 0x1ded9fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x1dec3a4]
test edi, edi
je 0x440e3f
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x440e38
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x1dec3a4
call fcn.00482d91
pop ecx
pop ecx
jmp 0x440e3a
mov edi, dword [edi]
test edi, edi
jne 0x440e0f
pop ebx
mov eax, dword [0x1de7358]
mov esi, eax
inc eax
push 0x10
push 0x1dec3a4
mov dword [0x1de7358], eax
call fcn.00482dd1
pop ecx
pop ecx
push 0x1ded9fc
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x440e73
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00440d87
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x1ded9fc
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x1dec3a4]
jmp 0x440ea4
cmp dword [esi + 0xc], edi
je 0x440eaa
mov esi, dword [esi]
test esi, esi
jne 0x440e9d
jmp 0x440ec2
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x1dec3a4
call fcn.00482d91
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x4425b9
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x44260e
push dword [esp + 0x10]
push 0x442538
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x1dec624]
test esi, esi
je 0x442667
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x442606
cmp byte [esi + 0x10], 0
je 0x442606
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4425e2
jmp 0x442667
mov esi, dword [0x1dec624]
test esi, esi
je 0x442667
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x442660
cmp byte [esi + 0x11], 0
je 0x44263c
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x442653
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x1dec624
call fcn.00482d91
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x44261b
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x45c9a2
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x1dedd58]
call fcn.0048244e
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 0x45caa2
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x45c9f8
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x45c9f0
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x45ca38
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x45ca7a
push 0x22
pop edx
cmp cx, dx
je 0x45ca2a
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x45ca1a
xor ecx, ecx
cmp word [eax], cx
je 0x45ca7a
mov ecx, eax
add eax, 2
jmp 0x45ca7c
test dx, dx
je 0x45ca82
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x45ca2a
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x45ca70
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x45ca7a
cmp cx, dx
je 0x45ca6d
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x45ca5d
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x45ca42
jmp 0x45ca2a
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x45ca84
xor edx, edx
cmp dword [ebp], ebx
jne 0x45ca8d
test edi, edi
jne 0x45caaa
test edx, edx
je 0x45ca92
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x45c9e6
test edi, edi
jne 0x45cabb
mov eax, ebx
jmp 0x45cabf
test esi, esi
je 0x45cabb
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x45cabf
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x45d1df
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x45d233
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d221
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x45d22d
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x45d1f2
jmp 0x45d231
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc

Function at 0x45d2ad
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x45d36c
cmp dword [esp + 0x24], 2
je 0x45d36c
push 0x2000
push ebp
push dword [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x45d33b
cmp dword [esp + 0x18], 2
jne 0x45d357
cmp dword [esp + 0x28], 0xffffffff
je 0x45d2ff
cmp ebp, dword [esp + 0x28]
jae 0x45d357
add ebp, 2
test ebx, ebx
jne 0x45d324
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x45d357
cmp ax, 0xd
je 0x45d33b
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d2eb
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00506900
jmp 0x45d3fe
push eax
push 0
push dword [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x45d38a
cmp ebp, dword [esp + 0x28]
jae 0x45d3e2
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45d3e2
cmp dword [esp + 0x18], 1
jne 0x45d3e2
inc ebp
test ebx, ebx
jne 0x45d3cf
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x45d3e2
cmp al, 0xd
je 0x45d37d
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x45d37d
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x45d3f9
call fcn.00506950
jmp 0x45d3fe
call fcn.005068a0
push esi
push 0
push dword [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x45e3d3
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x45e572
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x45e571
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45e570
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x1debc34]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x45e569
call fcn.00495400
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x45e556
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004958d0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.00495a50
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x45e4a2
cmp dword [eax + 8], 3
je 0x45e4a2
push dword [esp + 0x50]
push edi
call fcn.004951a0
pop ecx
pop ecx
jmp 0x45e4c0
push dword [esp + 0x50]
call fcn.00506810
mov esi, eax
push esi
push edi
call fcn.004958c0
pop ecx
pop ecx
push esi
call fcn.00506800
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.00495920
push 0x8000
push edi
call fcn.00495770
push edi
push dword [esi]
call fcn.00495bc0
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x45e53d
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.00495b80
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x45e535
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x45e503
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x45e54f
mov dword [esp + 0x18], 1
push edi
call fcn.00495330
pop ecx
push ebp
push 0
push dword [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc

Function at 0x45e62c
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x45e68e
cmp word [esi], di
je 0x45e68e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004965d0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004967e0
add esp, 0x10
test eax, eax
jne 0x45e68d
push 0x24
push 8
push dword [0x1debc34]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10