joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041978
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1004e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x10050238], eax
mov edi, dword [ebx]
push 4
push edi
call esi
test eax, eax
jne 0x100377b0
push 4
add edi, 0xe5
push edi
call esi
test eax, eax
jne 0x100377b0
mov al, byte [edi]
test al, al
je 0x100377b0
cmp byte [ebp + 8], 0
jne 0x100377b0
mov cl, 0x12
mov dword [ebp - 0x3c], 0x667c5712
mov dword [ebp - 0x38], 0x46326077
xor eax, eax
mov dword [ebp - 0x34], 0x5b327573
mov word [ebp - 0x30], 0x56
nop
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x1003769f
mov cl, byte [ebp - 0x3c]
jmp 0x10037690
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10003ae0
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x38
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 0x2b], 0
call fcn.10003ae0
mov byte [ebp - 4], 1
mov edi, dword [ebx + 8]
test edi, edi
je 0x100376ec
push 4
push edi
call esi
test eax, eax
jne 0x100376ec
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x10047fd8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x10037702
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10004c40
mov edi, dword [ebx + 8]
test edi, edi
je 0x1003773c
push 4
push edi
call esi
test eax, eax
jne 0x1003773c
push 4
add edi, 0x10c
push edi
call esi
test eax, eax
jne 0x1003773c
mov eax, dword [edi]
test eax, eax
je 0x1003773c
lea edi, [eax + 0x130]
push 4
push edi
call esi
test eax, eax
jne 0x1003773c
mov dword [edi], 0xffffffff
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x54]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10003ae0
mov byte [ebp - 4], 2
mov edi, dword [ebx + 8]
test edi, edi
je 0x10037770
push 4
push edi
call esi
test eax, eax
jne 0x10037770
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call dword [0x1004801c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x10037786
inc eax
push eax
push dword [ebp - 0x54]
call fcn.10004c40
mov edi, dword [ebx + 8]
test edi, edi
je 0x1003779e
push 4
push edi
call esi
test eax, eax
jne 0x1003779e
mov ecx, edi
call dword [0x10047fe0]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100377b0
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10004c40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003de80
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10039e90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041a88
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1004e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.10039c20
lea ecx, [ebp - 0x7c]
call fcn.10039cd0
push esi
lea ecx, [ebp - 0x7c]
call fcn.10039dc0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x10039f37
inc ecx
push ecx
push dword [ebp + 8]
call fcn.10004c40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003de80
mov esp, ebp
pop ebp
ret
Function at 0x1003ade0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041b8e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x1003ae16
xor ebx, ebx
jmp 0x1003ae1f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003ae61
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1003aea0
test esi, esi
jne 0x1003aea4
push 0x1003a660
push 0x1004fb10
call fcn.1003a350
mov eax, dword [section..data]
add esp, 8
cmp eax, 0xffffffff
je 0x1003ae61
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003ae8e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003ae8e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1003aee6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003aecf
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x1003aea4
cmp dword [ebx + 0x18], 0
je 0x1003ae30
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1003af0d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1003af0d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1003a680
cmp dword [ebx + 0x18], 0
jne 0x1003aef0
jmp 0x1003ae30
Function at 0x1003b1b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003b380
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003b28d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1004e004]
jb 0x1003b1fa
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004e008]
ja 0x1003b1fa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003b1ca
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003b21f
jmp 0x1003b28d
cmp dword [ebp - 0x14], 0x10000
jne 0x1003b273
cmp dword [ebp - 0x18], 0x10000
jb 0x1003b273
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003b256
mov eax, dword [ebp - 8]
jmp 0x1003b28f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003b266
xor eax, eax
jmp 0x1003b28f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003b288
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003b380
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003b1ca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003b2a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003b3b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003b375
mov edx, dword [ebp - 4]
cmp edx, dword [0x1004e004]
jb 0x1003b2e5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004e008]
ja 0x1003b2e5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003b2b5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003b30a
jmp 0x1003b375
cmp dword [ebp - 0x14], 0x10000
jne 0x1003b35e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003b35e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003b341
mov eax, dword [ebp - 8]
jmp 0x1003b377
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003b351
xor eax, eax
jmp 0x1003b377
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003b370
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003b3b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003b2b5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003b3e0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003b7d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1004fb24], 0
jne 0x1003b41d
cmp dword [0x1004fb20], 0
je 0x1003b41d
mov eax, dword [0x1004fb20]
mov dword [0x1004fb24], eax
cmp dword [0x1004fb24], 0
je 0x1003b49a
mov ecx, dword [0x1004fb24]
cmp dword [ecx + 8], 0
je 0x1003b49a
mov edx, dword [0x1004fb24]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003b49a
mov ecx, dword [0x1004fb24]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003b49a
mov eax, dword [0x1004fb24]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1003b469
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1003b470
xor eax, eax
jmp 0x1003b5b9
mov ecx, dword [0x1004fb24]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1003b5b9
mov edx, dword [0x1004fb20]
mov dword [0x1004fb24], edx
jmp 0x1003b4b6
mov eax, dword [0x1004fb24]
mov ecx, dword [eax + 4]
mov dword [0x1004fb24], ecx
cmp dword [0x1004fb24], 0
je 0x1003b4f6
cmp dword [0x1004fb24], 0
je 0x1003b4f4
mov edx, dword [0x1004fb24]
cmp dword [edx + 8], 0
je 0x1003b4f4
mov eax, dword [0x1004fb24]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1003b4f4
mov edx, dword [0x1004fb24]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1003b4f4
jmp 0x1003b44e
jmp 0x1003b4a8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003b5c0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003b5b7
mov eax, dword [ebp - 0x18]
mov dword [0x1004fb24], eax
mov ecx, dword [0x1004fb24]
mov dword [ecx], 0x52727464
mov edx, dword [0x1004fb24]
mov dword [edx + 8], 0
mov eax, dword [0x1004fb24]
mov ecx, dword [0x1004fb20]
mov dword [eax + 4], ecx
mov edx, dword [0x1004fb24]
mov dword [0x1004fb20], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1004fb24]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1003b587
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1003b5a7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003b57e
mov eax, dword [0x1004fb24]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003b44e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003c300
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004fb20]
mov dword [ebp - 4], eax
jmp 0x1003c319
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003c340
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003c33e
call sub.KERNEL32.dll_GetLastError
jmp 0x1003c342
jmp 0x1003c310
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003c7e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1004fb30], eax
je 0x1003c804
mov eax, 0x10dd
jmp 0x1003c9ac
cmp dword [0x1004fb34], 0
je 0x1003c817
mov eax, dword [0x1004fb34]
jmp 0x1003c9ac
cmp dword [ebp + 0xc], 0
jne 0x1003c827
mov eax, 0x57
jmp 0x1003c9ac
cmp dword [ebp + 8], 0
jne 0x1003c837
mov eax, 6
jmp 0x1003c9ac
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1003c860
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1004fb34], ecx
mov edx, dword [ebp + 8]
mov dword [0x1004fb38], edx
mov eax, dword [ebp - 8]
jmp 0x1003c9ac
push 0x18
call fcn.1003e0e6
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003c8bb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1004fb34], ecx
cmp dword [ebp - 4], 0
je 0x1003c8aa
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1003e44e
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1004fb38], ecx
mov eax, dword [ebp - 8]
jmp 0x1003c9ac
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1003c7c0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003c7c0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1003c8fb
cmp dword [ebp - 0xc], 0x1e
jbe 0x1003c917
mov dword [ebp - 8], 9
cmp dword [0x1004fb28], 0
je 0x1003c912
jmp 0x1003c889
jmp 0x1003c880
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1003c93e
mov dword [ebp - 8], 9
cmp dword [0x1004fb28], 0
je 0x1003c939
jmp 0x1003c889
jmp 0x1003c880
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003c969
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003c880
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1004fb40]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1004fb40], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1003c9c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1004fb30], eax
je 0x1003c9dd
mov eax, 0x10dd
jmp 0x1003cac0
mov eax, dword [0x1004fb40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003ca5c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003ca38
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003ca38
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1003b860
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1003e44e
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003c9e5
mov dword [0x1004fb40], 0
call fcn.1003c140
mov ecx, dword [0x1004fb3c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003caaa
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1003e44e
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003ca74
mov dword [0x1004fb3c], 0
mov dword [0x1004fb30], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003cfa0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1004fb34], 0
je 0x1003cfb9
mov eax, dword [0x1004fb34]
jmp 0x1003d058
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003cfca
xor eax, eax
jmp 0x1003d058
push 8
call fcn.1003e0e6
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003d022
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003d00b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1003e44e
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1004fb34], eax
mov dword [0x1004fb38], 0
mov eax, dword [ebp - 8]
jmp 0x1003d058
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003d03a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003cfea
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1004fb3c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1004fb3c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401ec0
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 0x401f0b
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 0x401f04
test esi, esi
je 0x401f04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ee0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4020f0
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 0x402140
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 0x402218
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40217e
cmp eax, 4
jne 0x4021a0
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 0x40218e
cmp edx, 4
je 0x40218e
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.004020f0
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3da3538f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x251c0c8a
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40fec0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x40fee2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40fee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40fed8
mov eax, 1
add ebx, ebx
jne 0x40fefb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40fef0
jne 0x40ff0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fef0
xor ecx, ecx
sub eax, 3
jb 0x40ff20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ff92
mov ebp, eax
add ebx, ebx
jne 0x40ff2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ff38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40ff5c
inc ecx
add ebx, ebx
jne 0x40ff48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ff3d
jne 0x40ff59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ff3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ff7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ff6d
jmp 0x40fede
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ff7c
add edi, ecx
jmp 0x40fede
pop esi
mov edi, esi
mov ecx, 0x269
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ff9a
cmp byte [edi], 0
jne 0x40ff9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40ff9f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x41000e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10e14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10e8c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ffcc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10e90]
or eax, eax
je 0x410008
mov dword [ebx], eax
add ebx, 4
jmp 0x40ffe9
call dword [esi + 0x10e94]
popal
jmp 0x4053a4