joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x40f209
push esi
push edi
xor esi, esi
mov dword [ebp - 0x43c], esi
lea edi, [ebp - 0x438]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x42c], 0xc
lea edi, [ebp - 0x428]
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x47c]
push esi
push eax
mov dword [ebp - 0x480], 0x44
call fcn.00414b10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, 0x208
push edi
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x41a]
push esi
push eax
mov word [ebp - 0x41c], si
call fcn.00414b10
push edi
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.00414b10
add esp, 0x18
lea eax, [ebp - 0x41c]
push eax
call fcn.0040f215
test eax, eax
je 0x40f207
push ebx
push esi
xor edi, edi
push esi
inc edi
push edi
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
push ebx
push dword [ebp - 0x420]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x480]
push eax
push esi
push esi
push esi
push edi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40f203
push dword [ebp - 0x43c]
call esi
push dword [ebp - 0x438]
call esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004147c2
leave
ret

Function at 0x40f215
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAeDebug
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f275
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x20a
push esi
push esi
push str.Debugger
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
mov esi, eax
mov eax, esi
pop esi
leave
ret 4
Function at 0x40f532
Capabilities:
Terminate process

Disassembly:
push 0x28
mov eax, 0x428073
call fcn.00423fef
mov ebx, ecx
push 0
call fcn.00409dae
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp byte [ebp + 8], 0
je 0x40f570
test byte [0x439260], 0x10
je 0x40f570
push 0x666
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test byte [0x439260], 1
je 0x40f57f
push ebx
call fcn.00411e65
test byte [0x439260], 2
je 0x40f58e
push ebx
call fcn.0040f67e
cmp byte [ebp + 8], 0
je 0x40f63e
mov eax, dword [ebx]
mov ecx, SysReAllocString
and eax, ecx
cmp eax, ecx
jne 0x40f63e
mov al, byte [0x439260]
test al, 4
jne 0x40f5ca
test al, 8
je 0x40f63e
mov esi, dword [0x439264]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, esi
jne 0x40f63e
xor edi, edi
inc edi
mov dword [ebp + 8], edi
call fcn.00413cda
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], al
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
mov esi, 0x43957c
mov dword [ebp - 0x14], esi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
push eax
call fcn.0040f726
mov byte [ebp - 4], 5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
call fcn.0040f50f
mov byte [ebp - 4], 1
push edi
call fcn.00413d35
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.0040635b
call fcn.00424094
ret 4

Function at 0x40f726
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x426dd8
call fcn.00423fbc
mov edi, dword [ebp + 8]
xor ebx, ebx
or esi, 0xffffffff
mov dword [edi], 0x40f500
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], esi
sete al
test al, al
jne 0x40f765
push 0x80004005
push 0x2e68367a
call fcn.0040639b
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x40f2f3
push ebx
push ebx
mov dword [ebp - 0x1c], 0x40f7e4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], str.ErrorDlg
call fcn.00417822
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x40f79a
mov eax, esi
mov dword [ebp - 0x20], eax
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40f7b6
push esi
push eax
call edi
push dword [ebp - 0x20]
call ebx
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp + 8]
add ecx, 4
cmp dword [ecx], 0
jge 0x40f7c6
call fcn.00408781
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], esi
je 0x40f7dc
push esi
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x20]
call ebx
mov dword [ebp - 0x20], esi
call fcn.00424094
ret 4
Function at 0x410ef1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
jne 0x410f3c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x42ed4c
mov byte [esi + 4], 1
call edi
push str.User32.dll
mov dword [esi + 0x10], eax
call edi
push str.kernel32.dll
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x410f3e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edi
leave
ret

Function at 0x41190f
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
mov esi, eax
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x24]
push 3
push 0xc0000000
push eax
add ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x41194a
xor eax, eax
jmp 0x411a84
push edi
push ebx
push edi
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x411969
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411943
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x41198e
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
jmp 0x411943
push dword [esi + 0x24]
push dword [esi + 0x20]
push ebx
push eax
call fcn.00414be5
add esp, 0x10
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4119d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call edi
jmp 0x411943
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 4]
push eax
mov dword [esi + 0x20], eax
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 8]
call edi
push dword [esi + 4]
call edi
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x411943
mov eax, dword [esi + 0x14]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x411943
push ebx
push dword [esi + 0x24]
push ebx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x411a61
push dword [esi + 4]
call edi
or dword [esi + 4], 0xffffffff
jmp 0x411943
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x411a7e
push dword [esi + 8]
call edi
mov dword [esi + 8], ebx
jmp 0x411a53
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4122b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427ff5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x50], ebx
push str._Data_created_
lea ecx, [esp + 0x10]
call fcn.00407b20
call fcn.00411a89
push eax
lea edi, [esp + 0x1c]
call fcn.00407628
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov byte [esp + 0x50], 1
push dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
call fcn.00407ad4
push 0x42d240
lea eax, [esp + 0x10]
push eax
call fcn.00407ad4
push str._Type_
lea eax, [esp + 0x10]
push eax
call fcn.00407ad4
push 1
lea edi, [esp + 0x1c]
call fcn.00407628
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov byte [esp + 0x50], 2
push dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
call fcn.00407ad4
push 0x42eff0
lea eax, [esp + 0x10]
push eax
call fcn.00407ad4
push 0x42eff8
lea eax, [esp + 0x10]
push eax
call fcn.00407ad4
push dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.00407ad4
push 0x42effc
lea eax, [esp + 0x10]
push eax
call fcn.00407ad4
mov dword [esp + 0x1c], 0x42f1c0
mov dword [esp + 0x30], ebx
mov byte [esp + 0x50], 3
mov dword [esp + 0x34], ebx
mov byte [esp + 0x50], 4
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x30], bl
mov dword [esp + 0x2c], ebx
call fcn.00411ec6
mov byte [esp + 0x50], 5
push dword [esp + 0xc]
lea ecx, [esp + 0x20]
call fcn.00411796
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x1c]
call fcn.00411754
mov byte [esp + 0x50], 1
cmp dword [esp + 0x10], ebx
je 0x4123fb
lea ecx, [esp + 0x10]
call fcn.00407ca7
mov byte [esp + 0x50], bl
cmp dword [esp + 0x14], ebx
je 0x41240e
lea ecx, [esp + 0x14]
call fcn.00407ca7
or dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0xc], ebx
je 0x412422
lea ecx, [esp + 0xc]
call fcn.00407ca7
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4147c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4362ec]
jne 0x4147cc
repz ret
jmp fcn.00417d5d

Function at 0x41d74b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418849
xor ebx, ebx
cmp dword [0x43904c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41d820
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41d78b
xor eax, eax
jmp 0x41d8e4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41d784
push eax
call fcn.004187e6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43904c], eax
call esi
push eax
call fcn.004187e6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x439050], eax
call esi
push eax
call fcn.004187e6
mov dword [0x439054], eax
lea eax, [ebp - 8]
push eax
call fcn.00418fd5
test eax, eax
pop ecx
pop ecx
je 0x41d7ee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041746e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41d820
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004187e6
cmp eax, ebx
pop ecx
mov dword [0x43905c], eax
je 0x41d820
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004187e6
pop ecx
mov dword [0x439058], eax
mov eax, dword [0x439058]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41d899
cmp dword [0x43905c], esi
je 0x41d899
push eax
call fcn.00418852
pop ecx
call eax
cmp eax, ebx
je 0x41d866
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43905c]
call fcn.00418852
pop ecx
call eax
test eax, eax
je 0x41d866
test byte [ebp - 0x18], 1
jne 0x41d899
lea eax, [ebp - 0xc]
push eax
call fcn.0041900c
test eax, eax
pop ecx
je 0x41d881
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041746e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41d890
or dword [ebp + 0x10], 0x200000
jmp 0x41d8ca
or dword [ebp + 0x10], 0x40000
jmp 0x41d8ca
mov eax, dword [0x439050]
cmp eax, esi
je 0x41d8ca
push eax
call fcn.00418852
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41d8ca
mov eax, dword [0x439054]
cmp eax, esi
je 0x41d8ca
push dword [ebp - 4]
push eax
call fcn.00418852
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43904c]
call fcn.00418852
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423a3f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4362ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004239d4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00414b10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x423a8e
cmp dword [ebp - 0x1c], 5
jb 0x423aa6
jmp 0x423aa2
cmp dword [ebp - 0x10], 1
jne 0x423aa6
cmp dword [ebp - 0x1c], 4
ja 0x423aa2
jne 0x423aa6
cmp dword [ebp - 0x18], 0
jbe 0x423aa6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42adfc
call fcn.00407108
test eax, eax
jge 0x423ac7
mov byte [0x439698], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004147c2
add ebp, 0x78
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x4c7436
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x369e4437
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x76fa3dd1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x4181734
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 0x16], 0x48
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x11], 0x2c
mov byte [ebp - 0x10], 0x20
mov byte [ebp - 0xf], 0x57
mov byte [ebp - 0xe], 0x6f
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x21
mov byte [ebp - 9], 0
lea eax, [ebp - 0x16]
mov dword [esp], eax
call sym._puts
nop
leave
ret
Function at 0x401b70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401bbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401bb4
test esi, esi
je 0x401bb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b90
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401da0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ec8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e2e
cmp eax, 4
jne 0x401e50
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e3e
cmp edx, 4
je 0x401e3e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401da0
Function at 0x40d8ee
Capabilities:
Hash data using sha1

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

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x76691bef
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x73043238
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40a6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], 0x452022
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
test eax, eax
jne 0x40a721
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0x19
mov dword [esp + 8], eax
jmp 0x40a823
mov dword [esp], eax
mov ebx, eax
call sub.cygwin1.dll_fileno
lea edx, [ebp - 0x78]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll__fstat64
inc eax
jne 0x40a747
mov edi, 1
jmp 0x40a809
mov eax, dword [ebp - 0x68]
and eax, 0xf000
cmp eax, 0x4000
je 0x40a804
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.cygwin1.dll_fseek
inc eax
je 0x40a73d
mov dword [esp], ebx
call sub.cygwin1.dll_ftell
test eax, eax
mov dword [ebp - 0x7c], eax
js 0x40a73d
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.cygwin1.dll_fseek
inc eax
je 0x40a73d
mov edx, dword [ebp - 0x7c]
mov edi, 1
lea eax, [edx + 1]
mov dword [esp], eax
call fcn.00437aac
mov edx, dword [ebp - 0x7c]
mov dword [esi], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.cygwin1.dll_fread
mov edx, dword [ebp - 0x7c]
cmp edx, eax
jne 0x40a7f8
mov eax, dword [esi]
mov edi, 2
mov byte [eax + edx], 0
mov eax, dword [esi]
call fcn.0040a57c
test eax, eax
jne 0x40a7f8
mov dword [esp], ebx
call sub.cygwin1.dll_fclose
xor eax, eax
jmp 0x40a828
mov eax, dword [esi]
mov dword [esp], eax
call sub.cygwin1.dll_free
jmp 0x40a809
mov edi, 3
mov dword [esp], ebx
call sub.cygwin1.dll_fclose
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0040abb4
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret