joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b91
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x10065cc], ebx
push esi
push edi
je 0x1001cff
mov eax, dword [0x1004004]
mov ecx, dword [0x10060ec]
add ecx, eax
mov eax, dword [0x10060d0]
cmp eax, ecx
mov edi, 0x1006620
jge 0x1001c97
mov ecx, dword [0x10061c4]
cmp ecx, dword [0x100400c]
jg 0x1001c97
jl 0x1001beb
mov edx, dword [0x10061c0]
cmp edx, dword [0x1004008]
jae 0x1001c97
cdq
idiv dword [0x1004004]
mov eax, dword [0x10061c0]
mov esi, edx
imul esi, esi, 0x1c
add esi, edi
push dword [esi + 0x18]
mov dword [esi + 0x10], eax
mov eax, ecx
sar eax, 0x1f
mov eax, dword [0x1006128]
mov dword [esi + 0x14], ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
mov eax, dword [0x10060d0]
cdq
idiv dword [0x1004004]
push dword [esi]
push dword [edx*4 + 0x10060d8]
push dword [0x1006614]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1001c5f
push ebx
push dword [0x1006608]
call fcn.01001200
mov eax, dword [esi]
mov ecx, dword [0x10061c4]
mov esi, dword [0x10060ec]
cdq
add dword [0x10061c0], eax
mov eax, dword [0x10060d0]
adc ecx, edx
mov edx, dword [0x1004004]
inc eax
add edx, esi
cmp eax, edx
mov dword [0x10061c4], ecx
mov dword [0x10060d0], eax
jl 0x1001bcb
mov ecx, dword [0x10060ec]
cmp ecx, eax
jge 0x1001d70
mov eax, ecx
cdq
idiv dword [0x1004004]
imul edx, edx, 0x1c
add edx, edi
lea esi, [edx + 4]
cmp dword [esi], ebx
jne 0x1001cdd
push 1
push esi
add edx, 8
push edx
push dword [0x1006614]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1001cdd
push ebx
push dword [0x1006608]
call fcn.01001200
mov eax, dword [0x10060ec]
cdq
idiv dword [0x1004004]
mov esi, dword [esi]
inc dword [0x10060ec]
mov eax, dword [edx*4 + 0x10060d8]
mov dword [0x10060e0], eax
jmp 0x1001d60
mov eax, dword [0x10060d8]
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [0x1006128]
mov dword [0x10060e0], eax
push eax
push dword [0x1006614]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001d4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1001d34
xor esi, esi
jmp 0x1001d51
mov eax, dword [0x1006608]
cmp eax, ebx
jne 0x1001d47
push 0x1cf5
call fcn.01001356
push ebx
push eax
call fcn.01001200
mov esi, dword [ebp - 4]
mov eax, esi
cdq
add dword [0x10061c0], eax
adc dword [0x10061c4], edx
mov eax, dword [0x10060e0]
add eax, esi
cmp esi, ebx
mov dword [0x1006130], eax
jne 0x1001d7c
mov dword [0x10065d8], 1
jmp 0x1001d8b
mov eax, esi
cdq
add dword [0x1006058], eax
adc dword [0x100605c], edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001e49
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x1006108]
push esi
push edi
mov eax, ecx
cdq
push 2
pop esi
idiv esi
mov eax, dword [0x1006100]
xor edi, edi
mov esi, edx
imul esi, esi, 0x1c
add esi, 0x1006080
mov dword [esi + 0x10], eax
mov eax, dword [0x1006104]
mov edx, eax
mov dword [esi + 0x14], eax
mov eax, dword [0x1006194]
sar edx, 0x1f
cmp dword [0x10065d4], edi
mov dword [esi], eax
jne 0x1001ee8
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push dword [esi]
mov eax, dword [0x1006108]
push 2
pop ecx
cdq
idiv ecx
push dword [edx*4 + 0x1006118]
push dword [0x1006064]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001fe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1001fe8
push edi
push 0x10061e0
call fcn.01001200
jmp 0x1001fe8
cmp dword [0x1006610], edi
je 0x1001f97
cdq
idiv dword [0x1006184]
test edx, edx
je 0x1001f3a
push dword [0x1006114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov eax, 0x40000000
push eax
push 4
push edi
push 1
push eax
push dword [0x10061d8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1006114], eax
jne 0x1001f3a
push edi
push dword [0x10061d8]
call fcn.01001200
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
mov eax, dword [0x1006108]
cdq
idiv dword [0x1004010]
push dword [esi]
push dword [edx*4 + 0x1006118]
push dword [0x1006114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001fe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1001fe8
mov eax, dword [0x10061d8]
cmp eax, edi
jne 0x1001f90
push 0x1cf6
call fcn.01001356
push edi
push eax
jmp 0x1001ede
push edi
lea edx, [ebp - 4]
push edx
push eax
mov eax, ecx
cdq
idiv dword [0x1004010]
push dword [edx*4 + 0x1006118]
push dword [0x1006114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001fc8
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006194]
je 0x1001fe2
mov eax, dword [0x10061d8]
cmp eax, edi
jne 0x1001fdb
push 0x1cf6
call fcn.01001356
push edi
push eax
call fcn.01001200
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov eax, dword [0x1006194]
cdq
add dword [0x1006100], eax
mov dword [0x1006194], edi
pop edi
adc dword [0x1006104], edx
inc dword [0x1006108]
pop esi
leave
ret
Function at 0x100218b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
xor eax, eax
inc eax
cmp dword [0x1006180], eax
je 0x100223d
push ebx
mov dword [0x1006180], eax
mov eax, dword [0x1006188]
xor ebx, ebx
cmp eax, ebx
push esi
je 0x10021c9
lea edx, [ebp - 0x3e8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10021bd
jmp 0x10021ea
lea eax, [ebp - 0x3e8]
push eax
push 0x3e7
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x10021ea
push ebx
push 0x10011a8
call fcn.01001200
mov esi, 0x10061e0
push esi
push ebx
push 0x10011a4
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
push 0x64000000
push 2
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1006064], eax
jne 0x100222a
push ebx
push esi
call fcn.01001200
lea eax, [ebp - 0x3e8]
push eax
call fcn.01002114
pop esi
mov dword [0x10061d4], eax
pop ebx
leave
ret

Function at 0x100223f
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push dword [0x1006614]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100618c]
xor ebx, ebx
xor esi, esi
inc ebx
cmp dword [0x10061d0], ebx
mov dword [0x1006100], esi
mov dword [0x1006104], esi
mov dword [0x10060c4], eax
je 0x100228e
mov ecx, 0x1000
cmp eax, ecx
jl 0x100233e
mov dword [0x10060c4], ecx
jmp 0x100233e
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [0x1006180], esi
mov eax, dword [0x10061d8]
jne 0x10022c4
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [0x100605c]
ja 0x10022da
jb 0x10022c4
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x1006058]
jae 0x10022da
cmp eax, esi
jne 0x10022d4
push 0x1cf2
call fcn.01001423
jmp 0x100233e
mov dword [0x1006610], ebx
cmp eax, esi
je 0x100233e
cmp dword [0x1006610], esi
je 0x1002312
push eax
mov dword [0x1004010], 2
call fcn.01002114
push esi
push 0x60000000
push 2
push esi
push ebx
push 0x40000000
push dword [0x10061d8]
mov dword [0x1006184], eax
jmp 0x1002322
push esi
push 0x80
push 2
push esi
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1006114], eax
jne 0x100233e
push esi
push dword [0x10061d8]
call fcn.01001200
pop esi
pop ebx
leave
ret
Function at 0x1002c78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [0x10060c0]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x4c]
mov esi, dword [edi + 0x1c]
imul eax, ebx
cdq
mov ecx, eax
add ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
adc edx, dword [edi + 0xc]
sub eax, ecx
mov dword [ebp - 8], eax
sbb esi, edx
mov eax, ebx
mov dword [ebp - 0xc], edx
cdq
cmp edx, esi
jl 0x1002ccc
jg 0x1002cb7
cmp eax, dword [ebp - 8]
jbe 0x1002ccc
mov ebx, dword [edi + 0x18]
mov eax, dword [0x10061d4]
sub ebx, ecx
lea edx, [eax - 1]
and edx, ebx
je 0x1002ccc
sub eax, edx
add ebx, eax
mov eax, dword [0x10060d0]
push 2
cdq
pop esi
idiv esi
mov eax, dword [ebp - 0xc]
mov esi, edx
imul esi, esi, 0x1c
add esi, 0x1006620
push dword [esi + 0x18]
mov dword [esi + 0x10], ecx
mov ecx, eax
sar ecx, 0x1f
mov dword [esi + 0x14], eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push dword [esi]
mov eax, dword [edi + 0x4c]
push 2
pop ecx
cdq
idiv ecx
push dword [edi + edx*4 + 0x20]
push dword [0x1006064]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x1002d3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1002d3e
push 0
push 0x10061e0
call fcn.01001200
inc dword [0x10060d0]
leave
ret 4
Function at 0x1003480
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10011d0
call fcn.0100375c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10034bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10034bb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10034d3
cmp eax, 0x20b
je 0x10034c0
mov dword [ebp - 0x1c], edi
jmp 0x10034e7
cmp dword [ecx + 0x84], 0xe
jbe 0x10034bb
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10034e1
cmp dword [ecx + 0x74], 0xe
jbe 0x10034bb
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100665c], 0xffffffff
or dword [0x1006660], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1006050]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100604c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1006664], eax
call fcn.01003758
cmp dword [0x1004020], edi
jne 0x1003542
push fcn.01003758
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003746
push 0x1001104
push 0x1001100
call sub.msvcrt.dll__initterm
mov eax, dword [0x1006048]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1006044]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010fc
push 0x10010f8
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010033d0
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10035b9
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10035ee
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003795
ret
Function at 0x4121cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4121da
pop dword [ebp - 0x10]
mov eax, 0x4121da
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x4f606
push 0
mov eax, 0xdd83110b
add eax, 0x22c1a1b1
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x45d6
xor edi, edi
add edi, eax
mov ebx, 0x674c1d36
sub ebx, 0x67039f36
add ebx, dword [ebp - 0x10]
mov edx, 0xe655a43c
sub dword [ebp - 4], edx
mov esi, dword [ebx]
xor dword [ebp - 4], esi
add esi, edx
add dword [ebp - 4], ecx
mov dword [edi], esi
sub dword [ebp - 8], 0x59322539
add edi, 0xdb31406e
sub edi, 0xdb31406a
add ebx, 0x4b3c4c16
sub ebx, 0x4b3c4c12
loop 0x41222a
add eax, 0x10a2b
mov ebx, eax
add eax, 0xe2a13053
sub eax, 0xe2a1304e
mov ecx, 0x401661ed
sub ecx, 0x3fd661ed
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x622f6057
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x7b0c7d3b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.004014e0
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x402106
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x404075
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
sub esp, 0xe
mov byte [esp], 0x6d
mov byte [esp + 1], 0x63
mov byte [esp + 2], 0x69
mov byte [esp + 3], 0x53
mov byte [esp + 4], 0x65
mov byte [esp + 5], 0x6e
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0x53
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x67
mov byte [esp + 0xd], 0x41
mov byte [esp + 0xe], 0
lea eax, [esp]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4060ec], eax
leave
ret

Function at 0x403570
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x401917
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40193d
mov eax, 0
jmp 0x401942
mov eax, 1
leave
ret

Function at 0x401944
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._URLDownloadToFileA_20
sub esp, 0x14
test eax, eax
jne 0x401991
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.FileExistsStatus_char_const_
test eax, eax
je 0x401991
mov eax, 1
jmp 0x401996
mov eax, 0
test al, al
je 0x4019a1
mov eax, 1
jmp 0x4019a6
mov eax, 0
leave
ret
Function at 0x40c650
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40c6b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4da3bc]
test esi, esi
jle 0x40c7b0
mov eax, dword [0x4da3c0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40c6e0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40c75f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40c6d0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40c7d7
mov eax, dword [0x4da3c0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4da3c0]
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 0x40c7b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40c758
sub eax, 4
and eax, 0xfffffffb
jne 0x40c766
add dword [0x4da3bc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4da3c0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40c758
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x40c6ea
mov eax, dword [0x4da3c0]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x40cc90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4da3d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4da3d0]
sub esp, 4
test ebx, ebx
je 0x40cce5
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 0x40ccde
test esi, esi
je 0x40ccde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ccc0
mov dword [esp], 0x4da3d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e5e0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym._strlen
mov ebx, eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x41]
lea ecx, [ebx + 0x31]
shr eax, 4
mov dword [ebp - 0x20], ecx
shl eax, 4
call fcn.0040d2a0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + ebx + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x40e6d4
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x40e720
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call dbg.get_ptr_from_atom
mov ebx, eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, edi
mov dword [esp], eax
call sym._malloc
mov edx, 0x20
mov esi, eax
lea esi, [esi]
bt esi, edx
jae 0x40e746
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x40e738
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x40e75d
int3
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call dbg.get_ptr_from_atom
mov ebx, eax
cmp esi, eax
je 0x40e783
mov dword [esp], esi
call sym._free
jmp 0x40e6fa
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40e6fa
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40e6fa
Function at 0x41bde0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4dae14]
test ebx, ebx
je 0x41be10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4dae14]
test eax, eax
je 0x41be38
cmp dword [eax], 0xffffffff
je sym._pthread_tls_init.cold
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dae14], eax
mov ebx, eax
jmp 0x41bdee
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4dae14], eax
jmp 0x41bdff

Function at 0x41c2e0
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x41c310
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x41c311
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x41c365
jmp 0x41c373
cmp eax, 0x6a
je 0x41c37d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x41c360
cmp eax, 0x6a
je 0x41c37d
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sym._abort
lea esi, [esi]