joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5f40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4d5f56
test eax, eax
jne 0x4d606e
mov edi, dword [0x5880f0]
test edi, edi
je 0x4d606e
xor ebx, ebx
jmp 0x4d5f77
mov edi, dword [edi + 8]
test edi, edi
je 0x4d5f99
push dword [edi + 4]
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4d5f70
mov esi, eax
push 0
push dword [edi + 4]
call sub.kernel32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
mov bl, 1
jmp 0x4d5f70
test bl, 1
je 0x4d606e
mov edi, dword [0x5880f0]
test edi, edi
je 0x4d606e
xor ebx, ebx
jmp 0x4d5fc7
mov edi, dword [edi + 8]
test edi, edi
je 0x4d5fe9
push dword [edi + 4]
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4d5fc0
mov esi, eax
push 0
push dword [edi + 4]
call sub.kernel32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
mov bl, 1
jmp 0x4d5fc0
test bl, 1
je 0x4d606e
mov edi, dword [0x5880f0]
test edi, edi
je 0x4d606e
xor ebx, ebx
jmp 0x4d6007
mov edi, dword [edi + 8]
test edi, edi
je 0x4d6029
push dword [edi + 4]
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4d6000
mov esi, eax
push 0
push dword [edi + 4]
call sub.kernel32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
mov bl, 1
jmp 0x4d6000
test bl, 1
je 0x4d606e
mov edi, dword [0x5880f0]
test edi, edi
je 0x4d606e
xor ebx, ebx
jmp 0x4d6047
mov edi, dword [edi + 8]
test edi, edi
je 0x4d6069
push dword [edi + 4]
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4d6040
mov esi, eax
push 0
push dword [edi + 4]
call sub.kernel32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
mov bl, 1
jmp 0x4d6040
test bl, 1
jne 0x4d6075
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x5880f0]
jmp 0x4d6080
mov edi, dword [edi + 8]
test edi, edi
je 0x4d606e
push dword [edi + 4]
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x4d607d
mov esi, eax
push 0
push dword [edi + 4]
call sub.kernel32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
jmp 0x4d607d
Function at 0x4d7b70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x503058]
test eax, eax
je 0x4d7b8a
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4d7ba2
jmp 0x4d7baa
push 0x503058
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4d7baa
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4d7c18
mov eax, dword [0x503058]
test eax, eax
je 0x4d7c20
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4d7c38
mov esi, eax
test eax, eax
jne 0x4d7c12
mov eax, dword [0x5880e0]
test eax, eax
jne 0x4d7bdb
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4d7c3f
mov dword [0x5880e0], eax
push 8
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4d7c3f
mov byte [eax + 4], 0
mov dword [eax], 0x503058
mov esi, eax
mov eax, dword [0x503058]
test eax, eax
jne 0x4d7c0b
push 0x503058
call fcn.004cb880
add esp, 4
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
pop ebp
ret
push 0x503058
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4d7bbe
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
push 4
push 8
call fcn.004085f0
add esp, 8
ud2

Function at 0x4d7c50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x503060]
mov esi, ecx
test eax, eax
je 0x4d7c6e
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4d7c86
jmp 0x4d7c95
push 0x503060
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4d7c95
cmp dword [eax], 0
mov ebx, eax
je 0x4d7c95
add ebx, 4
jmp 0x4d7d8d
mov eax, dword [0x503060]
test eax, eax
je 0x4d7d2f
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4d7d4b
mov edi, eax
test eax, eax
jne 0x4d7d10
mov eax, dword [0x5880e0]
test eax, eax
jne 0x4d7cd2
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4d7d94
mov dword [0x5880e0], eax
push 0x10
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4d7d94
mov dword [eax], 0
mov dword [eax + 0xc], 0x503060
mov edi, eax
mov eax, dword [0x503060]
test eax, eax
jne 0x4d7d09
push 0x503060
call fcn.004cb880
add esp, 4
push edi
push eax
call sub.kernel32.dll_TlsSetValue
test esi, esi
je 0x4d7d64
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi], 0
test edx, edx
je 0x4d7d64
cmp edx, 1
jne 0x4d7d4f
mov edx, ecx
jmp 0x4d7d68
push 0x503060
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4d7cb1
xor ebx, ebx
jmp 0x4d7d8d
test ecx, ecx
je 0x4d7d64
xor eax, eax
lock dec dword [ecx]
mov edx, 0
jne 0x4d7d68
call fcn.004b1570
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 8]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], edx
je 0x4d7d8d
test ecx, ecx
je 0x4d7d8d
lock dec dword [ecx]
jne 0x4d7d8d
call fcn.004b1570
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0x10
call fcn.004085f0
add esp, 8
ud2
Function at 0x4d7db0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x503068]
mov esi, ecx
test eax, eax
je 0x4d7dcd
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4d7de5
jmp 0x4d7df1
push 0x503068
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4d7df1
cmp dword [eax], 0
je 0x4d7df1
add eax, 4
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x503068]
test eax, eax
je 0x4d7e80
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4d7e9c
mov edi, eax
test eax, eax
jne 0x4d7e68
mov eax, dword [0x5880e0]
test eax, eax
jne 0x4d7e2e
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4d7eb4
mov dword [0x5880e0], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4d7eb4
mov dword [eax], 0
mov dword [eax + 8], 0x503068
mov edi, eax
mov eax, dword [0x503068]
test eax, eax
jne 0x4d7e61
push 0x503068
call fcn.004cb880
add esp, 4
push edi
push eax
call sub.kernel32.dll_TlsSetValue
test esi, esi
je 0x4d7ea2
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp eax, 1
jne 0x4d7ea4
mov ecx, dword [esi + 4]
jmp 0x4d7ea4
push 0x503068
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4d7e0d
xor eax, eax
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
mov dword [edi], 1
lea eax, [edi + 4]
mov dword [edi + 4], ecx
pop esi
pop edi
pop ebp
ret
push 4
push 0xc
call fcn.004085f0
add esp, 8
ud2
Function at 0x4d8270
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
movsd xmm1, qword [0x566730]
mov eax, dword [ebp + 8]
mov edi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
movlps qword [esp + 0x18], xmm0
movsd qword [esp + 0x24], xmm1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.004ceae0
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x4d82da
mov esi, dword [esp + 0x14]
jmp 0x4d8334
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp eax, 4
je 0x4d8334
cmp eax, 3
jne 0x4d8329
mov eax, dword [esi + 4]
mov eax, dword [eax]
push dword [esi]
call eax
add esp, 4
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x4d831b
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x4d830d
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
mov dword [edi], 0
jmp 0x4d845c
mov dword [esp + 4], edi
lea edi, [esp + 0x18]
mov edx, esi
mov ecx, edi
call fcn.004cecf0
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
xor eax, 2
or eax, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
jne 0x4d839c
cmp al, 3
jne 0x4d83a0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push dword [ebx]
call eax
add esp, 4
mov ecx, dword [ebx + 4]
cmp dword [ecx + 4], 0
je 0x4d838c
mov eax, dword [ebx]
cmp dword [ecx + 8], 9
jb 0x4d837e
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
push ebx
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
jmp 0x4d83a0
test ebx, ebx
je 0x4d83af
mov eax, dword [esp + 4]
mov dword [eax], 0
jmp 0x4d8456
test esi, esi
mov dword [esp + 0xc], eax
je 0x4d83dd
mov dword [esp + 0x18], 0
call sub.kernel32.dll_GetCurrentProcess
push 2
push 0
push 0
push edi
push eax
push esi
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x4d8447
mov eax, dword [esp + 0x18]
jmp 0x4d83df
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x1c], eax
push eax
call sub.kernel32.dll_CreateFileMappingA
test eax, eax
je 0x4d8432
mov edi, eax
push dword [esp + 0xc]
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
push edi
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x4d8432
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax], 1
jmp 0x4d8456
mov eax, dword [esp + 4]
mov dword [eax], 0
push dword [esp + 8]
call sub.kernel32.dll_CloseHandle
jmp 0x4d8456
call sub.kernel32.dll_GetLastError
mov eax, dword [esp + 4]
mov dword [eax], 0
push esi
call sub.kernel32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4e1990
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
movsd xmm1, qword [0x569720]
mov esi, dword [0x56bbf8]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
movlps qword [esp + 0x18], xmm0
mov dword [esp + 0x24], 0
movsd qword [esp + 0x10], xmm1
mov eax, dword [esi]
test eax, eax
jne 0x4e19d8
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4e1b52
mov dword [esi], eax
push 0x20
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4e1b52
movsd xmm0, qword [esp + 0x28]
movsd qword [eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [esp + 0x18]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
lock inc dword [eax]
jle 0x4e1b4e
cmp dword [edi], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0xc], eax
je 0x4e1a44
mov ebx, dword [edi + 4]
jmp 0x4e1a67
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, dword [esp + 0x24]
mov eax, dword [edi + 0x10]
movsd xmm0, qword [edi + 8]
movsd xmm2, qword [edi + 0x14]
movsd xmm1, qword [0x569720]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0
movsd qword [esp + 0x54], xmm2
movsd qword [esp + 0x10], xmm1
mov eax, dword [esi]
test eax, eax
jne 0x4e1af9
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4e1b60
mov dword [esi], eax
push 0x4c
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4e1b60
lea esi, [esp + 0x10]
mov ecx, 0x13
mov edi, eax
inc ebx
rep movsd dword es:[edi], dword [esi]
mov esi, eax
mov dword [esp + 0x10], eax
nop dword [eax + eax]
dec ebx
je 0x4e1b31
lock inc dword [esi]
jle 0x4e1b4e
mov ecx, esi
call fcn.004e1ee0
jmp 0x4e1b20
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], eax
mov dword [ecx + 8], esi
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
push 4
push 0x20
call fcn.004085f0
add esp, 8
jmp 0x4e1b6c
push 4
push 0x4c
call fcn.004085f0
add esp, 8
ud2
Function at 0x4ec8a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
call sub.kernel32.dll_GetLogicalDrives
test eax, eax
je 0x4ec91c
mov edi, eax
xorps xmm0, xmm0
mov esi, 1
xor edx, edx
mov eax, 4
mov ebx, 0x41
mov dword [ebp - 0x18], 4
not edi
movlps qword [ebp - 0x14], xmm0
jmp 0x4ec8ef
mov dword [eax + edx*4], ebx
inc edx
mov dword [ebp - 0x10], edx
inc ebx
add esi, esi
cmp ebx, 0x5a
je 0x4ec908
test esi, edi
jne 0x4ec8e7
cmp edx, dword [ebp - 0x14]
jne 0x4ec8e0
lea ecx, [ebp - 0x18]
call fcn.004ec560
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
jmp 0x4ec8e0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
movsd xmm0, qword [ebp - 0x18]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
jmp 0x4ec931
call sub.kernel32.dll_GetLastError
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ee080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push 0
push 1
call sub.kernel32.dll_OpenProcess
test eax, eax
je 0x4ee0b4
push 1
push eax
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x4ee189
mov byte [esi], 4
jmp 0x4ee259
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0x56ac44
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x41b090
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
lea edi, [ebp - 0x24]
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.004089e0
add esp, 8
mov eax, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x34]
mov ebx, dword [0x56bbf8]
mov dword [ebp - 0x1c], eax
movsd qword [ebp - 0x24], xmm0
mov eax, dword [ebx]
test eax, eax
jne 0x4ee126
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4ee263
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4ee263
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x34]
movsd qword [eax], xmm0
mov byte [ebp - 0x1c], 0x27
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x56aaa0
mov eax, dword [ebx]
test eax, eax
jne 0x4ee166
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4ee178
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
jne 0x4ee241
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4ee28b
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0x56acb0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x41b090
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
lea edi, [ebp - 0x24]
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.004089e0
add esp, 8
mov eax, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x34]
mov ebx, dword [0x56bbf8]
mov dword [ebp - 0x1c], eax
movsd qword [ebp - 0x24], xmm0
mov eax, dword [ebx]
test eax, eax
jne 0x4ee1f7
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4ee271
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4ee271
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x34]
movsd qword [eax], xmm0
mov byte [ebp - 0x1c], 0x27
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x56aaa0
mov eax, dword [ebx]
test eax, eax
jne 0x4ee233
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4ee27f
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4ee27f
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x24]
movsd qword [eax], xmm0
mov dword [esi + 4], eax
mov dword [esi], 3
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4ee28b
push 4
push 0xc
call fcn.004085f0
add esp, 8
jmp 0x4ee28b
push 4
push 0xc
call fcn.004085f0
add esp, 8
ud2
Function at 0x4fa5e0
Capabilities:
Write file on windows

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

Function at 0x4fa640
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5881a0]
test esi, esi
jle 0x4fa760
mov eax, dword [0x5881a4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4fa674
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4fa6f7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4fa660
mov dword [esp], ebx
call fcn.004fafc0
mov edi, eax
test eax, eax
je 0x4fa787
mov eax, dword [0x5881a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004fb100
mov edx, dword [0x5881a4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4fa767
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4fa6f0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4fa700
add dword [0x5881a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5881a4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4fa6f0
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004fa5e0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4fa67e
mov eax, dword [0x5881a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004fa5e0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004fa5e0
lea esi, [esi]
nop
Function at 0x4fac40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5881bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5881b4]
sub esp, 4
test ebx, ebx
je 0x4fac95
mov ebp, dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4fac8e
test esi, esi
je 0x4fac8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4fac70
mov dword [esp], 0x5881bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4fafc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4fafe5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4faff0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4fafe5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4fb038
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4fb02e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4fb03a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4fb020
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ed0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x597978e6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x165f0aa6
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x418775
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4187bc
cmp ebx, 0x20
je 0x4187bc
cmp ebx, 0xffffffe0
je 0x4187bc
jne 0x4187c5
add eax, 1
cmp esi, eax
je 0x4187d2
jne 0x4187a1
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x4187d6
jne 0x41879d
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x4187ea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x41882f
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x418835
add eax, 4
pop esi
dec esi
push esi
jne 0x418817
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x43b907
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x43b92c
xor eax, eax
jmp 0x43b931
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x473c40
call fcn.00472453
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x43b967
push ebx
call fcn.0047244d
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x43b974
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43b9c9
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x43b9c9
test eax, eax
je 0x43b9c9
lea esi, [edx + ecx]
cmp edx, esi
jae 0x43b9c9
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x43b9a5
pop esi
mov eax, dword [ebp - 4]
leave
ret 4