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

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40252f
call fcn.0040da60
push dword [esp + 0x2c]
call fcn.00405190
mov eax, 0x4160ab
mov dword [0x416fd4], eax
mov dword [esp], 0
jmp 0x40255d
mov eax, 6
cmp eax, dword [esp]
jl 0x4025cb
mov eax, dword [0x416fd4]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x416fd4]
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405e40
lea eax, [esp + 0xc]
push eax
call fcn.0040d960
mov edx, dword [esp + 0xc]
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040dac0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dac0
lea eax, [esp + 0x10]
push eax
call fcn.0040d960
inc dword [esp]
jno 0x40255d
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
call sub.KERNEL32.dll_GetCommandLineW
push eax
call fcn.00409640
lea eax, [esp + 0x14]
push eax
call fcn.0040d960
mov edx, dword [esp + 0x10]
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040dac0
lea eax, [esp + 0x18]
push eax
call fcn.0040d960
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405ba0
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x402689
push edx
call fcn.0040d920
pop edx
push eax
mov edx, 0x416026
push edx
call fcn.0040dac0
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.00405ef0
call fcn.00405172
add dword [esp], edx
call fcn.00405e20
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040d960
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.004092f0
mov edx, dword [esp + 0x20]
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040dac0
pop eax
push eax
call fcn.00405160
pop edx
add eax, edx
jmp 0x4026be
push dword [esp + 0x14]
call fcn.0040d9f0
push dword [esp + 8]
call fcn.0040d9f0
push dword [esp + 0x10]
call fcn.0040d9f0
push dword [esp + 0xc]
call fcn.0040d9f0
push dword [esp + 0x20]
call fcn.0040d9f0
add esp, 0x24
pop ebx
ret

Function at 0x4026f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040da60
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x416fc4], eax
push dword [0x416fc4]
call fcn.00409690
mov dword [esp + 4], eax
push dword [0x416fc4]
push dword [esp + 8]
push dword [esp + 8]
call fcn.004096b0
push dword [esp]
call sub.KERNEL32.dll_FreeResource
mov eax, dword [esp + 4]
jmp 0x40274d
add esp, 8
ret 8
Function at 0x403000
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
call fcn.0040da60
mov ebx, dword [0x416fd0]
cmp ebx, 1
jne 0x4030ad
push dword [0x417044]
call fcn.00409e73
mov ebx, eax
and ebx, ebx
jle 0x403054
push dword [0x417044]
call fcn.00409e7d
push dword [0x417044]
call fcn.00409e92
or eax, eax
je 0x403054
mov ebp, dword [0x417048]
push dword [ebp + 8]
call fcn.0040a1b4
jmp 0x403035
push dword [0x41703c]
call fcn.00409e73
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x4030ad
push 5
push 0
push 1
push dword [0x41703c]
call fcn.004069e0
push dword [0x41703c]
call fcn.00409e7d
push dword [0x41703c]
call fcn.00409e92
or eax, eax
je 0x4030ad
mov ebp, dword [0x417040]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x40308e
mov eax, 1
jmp 0x4030b6
add esp, 4
pop ebx
pop ebp
ret
Function at 0x403c33
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040da60
mov eax, 0x416139
mov dword [0x416fd4], eax
mov dword [esp], 0
jmp 0x403c54
mov eax, 3
cmp eax, dword [esp]
jl 0x403cc2
mov eax, dword [0x416fd4]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x416fd4]
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405e40
lea eax, [esp + 0xc]
push eax
call fcn.0040d960
mov edx, dword [esp + 0xc]
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040dac0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040dac0
lea eax, [esp + 0x10]
push eax
call fcn.0040d960
inc dword [esp]
jno 0x403c54
push 0x400
call fcn.00409690
mov dword [esp + 0x10], eax
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
call fcn.0040a339
lea eax, [esp + 0x18]
push eax
call fcn.0040d960
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [esp + 0x20]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409640
lea eax, [0x417010]
push eax
call fcn.0040d960
push dword [0x417010]
call fcn.0040a1b4
push dword [0x417010]
call fcn.0040a0f5
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [0x417010]
call sub.KERNEL32.dll_GetTempFileNameW
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409640
lea eax, [0x416fe4]
push eax
call fcn.0040d960
push dword [0x416fe4]
call fcn.0040a1b4
push dword [0x416fe4]
call fcn.0040a0f5
push dword [esp + 0x10]
push 0
mov eax, 0x416020
push eax
push dword [0x416fe4]
call sub.KERNEL32.dll_GetTempFileNameW
push dword [0x416fe4]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040d920
pop edx
push eax
push edx
call fcn.0040d920
pop edx
push eax
push dword [esp + 0x18]
call fcn.00409640
lea eax, [0x416ff8]
push eax
call fcn.0040d960
push dword [0x416ff8]
call fcn.0040a1b4
push dword [esp + 0xc]
push dword [0x416ff8]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
call fcn.004095b0
jmp 0x403e08
push dword [esp + 0xc]
call fcn.0040d9f0
push dword [esp + 0x14]
call fcn.0040d9f0
push dword [esp + 8]
call fcn.0040d9f0
add esp, 0x18
pop ebx
ret

Function at 0x405420
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004053d4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x417640
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x417060]
jmp 0x405451
cmp dword [esi + 0xc], edi
je 0x405457
mov esi, dword [esi]
test esi, esi
jne 0x40544a
jmp 0x40546f
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x417060
call fcn.0040d5d2
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x40547c
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 0x405514
push edi
push 0x417640
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x417060]
test edi, edi
je 0x4054e8
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4054e1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x417060
call fcn.0040d5d2
pop ecx
pop ecx
jmp 0x4054e3
mov edi, dword [edi]
test edi, edi
jne 0x4054b8
pop ebx
mov eax, dword [0x416140]
mov esi, eax
inc eax
push 0x10
push 0x417060
mov dword [0x416140], eax
call fcn.0040d612
pop ecx
pop ecx
push 0x417640
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 0x408fb8
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40900d
push dword [esp + 0x10]
push 0x408f37
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x417088]
test esi, esi
je 0x409066
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x409005
cmp byte [esi + 0x10], 0
je 0x409005
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 0x408fe1
jmp 0x409066
mov esi, dword [0x417088]
test esi, esi
je 0x409066
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 0x40905f
cmp byte [esi + 0x11], 0
je 0x40903b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x409052
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 0x417088
call fcn.0040d5d2
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40901a
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40916a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x417664]
call fcn.0040cd88
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 0x40926a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x4091c0
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4091b8
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x409200
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x409242
push 0x22
pop edx
cmp cx, dx
je 0x4091f2
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4091e2
xor ecx, ecx
cmp word [eax], cx
je 0x409242
mov ecx, eax
add eax, 2
jmp 0x409244
test dx, dx
je 0x40924a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4091f2
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x409238
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x409242
cmp cx, dx
je 0x409235
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x409225
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40920a
jmp 0x4091f2
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40924c
xor edx, edx
cmp dword [ebp], ebx
jne 0x409255
test edi, edi
jne 0x409272
test edx, edx
je 0x40925a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4091ae
test edi, edi
jne 0x409283
mov eax, ebx
jmp 0x409287
test esi, esi
je 0x409283
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x409287
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40a0f5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x40a16d
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 0x40a14e
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x40a14b
cmp ecx, 0x5c
je 0x40a14b
cmp ecx, 0x2f
jne 0x40a158
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x40a138
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40a16f
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40a175
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x40a183
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x40a186
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40a1af
test byte [esp + 8], 2
je 0x40a1a3
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a1b1
xor eax, eax
ret 8

Function at 0x40a470
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 0x40a4ac
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 0x40a7d0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x4176bc]
call fcn.0040cef9
test eax, eax
je case.0x40a7fe.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x40a7fe.3
movzx ecx, byte [ecx + 0x40a908]
jmp dword [ecx*4 + 0x40a8f0]
cmp dword [eax + 4], 0
je 0x40a81b
push 2
push 0x4126c8
push eax
call fcn.0040aac0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x4126c8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x40a84a
push 3
push 0x4126cc
push eax
call fcn.0040aac0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x4126cc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x40a879
push 2
push 0x4126d0
push eax
call fcn.0040aac0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x4126d0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x40a8a8
push 4
push 0x4126d4
push eax
call fcn.0040aac0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x4126d4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x40a8d7
push 4
push 0x4126dc
push eax
call fcn.0040aac0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x4126dc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
Function at 0x40aa20
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x40aa14
cmp word [edx], 0
je 0x40aa14
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x40a9ad
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x40a980
jmp 0x40a960
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a960
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0040aac0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a980
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x10]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.0040abd0
mov esi, eax
test esi, esi
je 0x40aa0b
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x40a9e8
push dword [esp + 0x10]
push esi
push eax
call fcn.0040aac0
mov dword [esp + 4], eax
jmp 0x40a9fc
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x18]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x416fb0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
push dword [esp + 4]
push dword [0x4176bc]
call fcn.0040cef9
test eax, eax
je 0x40aa3c
mov dword [esp + 4], eax
jmp 0x40a920
xor eax, eax
ret 0xc

Function at 0x40aa50
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x40aab5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40aaad
push dword [esp + 0x10]
push dword [0x4176bc]
call fcn.0040cef9
test eax, eax
je 0x40aaa3
cmp dword [eax + 4], 0
je 0x40aa92
push edi
push esi
push eax
call fcn.0040aac0
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x40aac0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x40abc7
cmp dword [esi + 0x14], 1
jne 0x40ab0b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x40ab88
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x40ab73
dec eax
je 0x40ab5c
sub eax, 2
je 0x40ab47
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.0040a470
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40abb5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x40ab31
xor eax, eax
pop esi
add esp, 0xc
ret 0xc

Function at 0x40adb1
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret
Function at 0x40c310
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 0x40cd88
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4175b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x40cde9
push esi
push dword [0x4175ac]
push 8
push dword [0x416fb0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4175b0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4175a8]
jmp 0x40cdd9
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40cdd7
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40cdc7
push edi
push 0x40cd26
call fcn.00411862
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x40cdf3
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x40ce09
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x4175ac]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40ce40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x416fb0]
mov dword [0x4175b0], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4175b0]
call ebx
mov eax, dword [0x4175ac]
mov edi, eax
add eax, esi
push eax
push dword [0x4175b0]
mov dword [0x4175ac], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x416fb0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x4175b0]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x40ce80
test ebx, ebx
je 0x40cea1
push 0x14
push 0x4175a8
call fcn.0040d612
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x40cea1
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x40d960
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4161a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40d9a6
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x4176c0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40d9c7
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x4176c0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040de00
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x40db20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4161a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x40db50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4161a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x40dc80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4161a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x40dcbe
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x40dcbe
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x40dcc0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40dcd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4161a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4