joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443bc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443bf3
push esi
call fcn.00451f50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x443bec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443c79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443c62
mov eax, dword [esi + 8]
test eax, eax
je 0x443c17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x443c5e
cmp eax, 2
je 0x443c62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x443c0a
cmp eax, 3
je 0x443c3d
cmp eax, 1
jne 0x443c0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x443c0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x443c0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443ca0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443c88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443ca0
add esp, 4
pop esi
ret

Function at 0x444510
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x444531
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x444531
mov eax, dword [eax + 0x44]
test eax, eax
je 0x444531
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4617b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1c5ada0]
xor edx, edx
cmp eax, edx
jne 0x4617d6
xor eax, eax
mov byte [eax + 0x1c5aca0], al
inc eax
cmp eax, 0x100
jl 0x4617be
mov dword [0x1c5ada0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1c5aca0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x461867
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46183a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x461808
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4618e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x461933
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46191a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4682b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493e4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00468bd0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1c29f84
call fcn.004861e5
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x468343
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004861e5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46833c
push 0
mov ecx, eax
call fcn.0045f3e0
mov dword [esi + 0xc], eax
jmp 0x468345
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x468345
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48884b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x488883
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004868ff
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004868d7
jmp 0x48888f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x489f39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x489f7b
call fcn.0048f9f2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x489f7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x489f72
xor eax, eax
jmp 0x489f83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00489f89
pop edi
pop esi
pop ebx
ret 4
Function at 0x401290
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
call fcn.004018e0
call sym.___main
mov eax, 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0xb
jg 0x4012f2
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
shl eax, 2
lea eax, [edx + eax]
mov dword [esp + 4], eax
mov dword [esp], section..rdata
call sym._scanf
lea eax, [ebp - 0x3c]
inc dword [eax]
jmp 0x4012c9
mov eax, 0x12c
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jns 0x40130f
mov dword [esp], 0x403003
call sym._printf
mov ecx, dword [ebp - 0x40]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
test eax, eax
jle 0x401390
mov ecx, dword [ebp - 0x40]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
push eax
fild dword [esp]
lea esp, [esp + 4]
fld dword [ebp - 0x48]
faddp st(1)
fstp dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
lea edx, [eax*4]
lea eax, [ebp - 0x40]
sub dword [eax], edx
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 0xb
jg 0x401462
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + eax*4 - 0x38]
mov eax, dword [ebp - 0x40]
sub eax, edx
add eax, 0x12c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
test eax, eax
jle 0x40143d
mov ecx, dword [ebp - 0x40]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
push eax
fild dword [esp]
lea esp, [esp + 4]
fld dword [ebp - 0x48]
faddp st(1)
fstp dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
lea edx, [eax*4]
lea eax, [ebp - 0x40]
sub dword [eax], edx
cmp dword [ebp - 0x40], 0
jns 0x401458
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov dword [esp], 0x403006
call sym._printf
jmp 0x401462
lea eax, [ebp - 0x3c]
inc dword [eax]
jmp 0x401397
cmp dword [ebp - 0x40], 0
js 0x401489
fld dword [ebp - 0x48]
fld qword [str.333333]
fmulp st(1)
fstp dword [ebp - 0x48]
fld dword [ebp - 0x48]
fstp qword [esp + 4]
mov dword [esp], str._.0f
call sym._printf
mov dword [esp], str.pause
call sub.msvcrt.dll_system
mov eax, 0
leave
ret

Function at 0x401aa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x401530
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
call dbg.__main
lea eax, [ebp - 0x24]
mov ecx, eax
call method.CSendKeys.CSendKeys__
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_GetTopWindow]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40169f
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_IsWindowVisible]
call eax
sub esp, 4
test eax, eax
sete al
test al, al
jne 0x40167b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40167e
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym.operator_new___unsigned_int_
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
mov dword [esp + 4], str.Cisco
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x40167f
mov dword [esp + 4], str.HWND:
mov dword [esp], 0x4cf9e0
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov ecx, edx
call method.std::ostream.operator___void_const_
sub esp, 4
mov dword [esp + 4], str._Titulo:
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____
mov ecx, eax
call method.std::ostream.operator___std::ostream____std::ostream__
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call method.CSendKeys.AppActivate_HWND___
lea eax, [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp], str._F4
mov ecx, eax
call method.CSendKeys.SendKeys_char_const__bool_
sub esp, 8
mov dword [ebp - 0xc], 0
jmp 0x40167f
nop
jmp 0x40167f
nop
mov dword [esp + 4], 2
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindow]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
jmp 0x401564
mov dword [esp], 0x3c
call dbg.sleep
jmp 0x401550
Function at 0x401814
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
mov byte [ebp - 0x20], al
movzx eax, byte [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MapVirtualKeyA]
call eax
sub esp, 8
mov byte [ebp - 9], al
movzx eax, byte [ebp - 0x20]
mov dword [esp], eax
call method.CSendKeys.IsVkExtended_unsigned_char_
test al, al
je 0x401857
mov ebx, 3
jmp 0x40185c
mov ebx, 2
movzx ecx, byte [ebp - 9]
movzx edx, byte [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ecx, eax
call method.CSendKeys.KeyboardEvent_unsigned_char__unsigned_char__long_
sub esp, 0xc
nop
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x40259c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x154
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test al, al
jne 0x4025d2
add dword [ebp - 0x14], 1
jmp 0x4025e9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strlen
add eax, 1
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test al, al
je 0x4025f9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x15], 0
cmp dword [ebp - 0x10], 0
je 0x402659
mov dword [esp + 8], 0x12c
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetClassNameA]
call eax
sub esp, 0xc
test eax, eax
setne al
test al, al
je 0x402659
movzx ebx, byte [ebp - 0x15]
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x148]
mov dword [esp], eax
call sym._strstr
test eax, eax
setne al
movzx eax, al
or eax, ebx
test eax, eax
setne al
mov byte [ebp - 0x15], al
cmp dword [ebp - 0xc], 0
je 0x4026b5
mov dword [esp + 8], 0x12c
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
test eax, eax
setne al
test al, al
je 0x4026b5
movzx ebx, byte [ebp - 0x15]
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x148]
mov dword [esp], eax
call sym._strstr
test eax, eax
setne al
movzx eax, al
or eax, ebx
test eax, eax
setne al
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x4026cb
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, 0
jmp 0x4026d0
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x4026d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_FindWindowA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402805
cmp dword [ebp + 8], 0
jne 0x402718
cmp dword [ebp + 0xc], 0
jne 0x402718
mov eax, 0
jmp 0x40281e
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
je 0x40273a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 0
je 0x40274e
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add eax, edx
add eax, 5
mov dword [esp], eax
call sym.operator_new___unsigned_int_
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add eax, edx
add eax, 5
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._memset
cmp dword [ebp + 8], 0
je 0x40279e
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._strcpy
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x4027c9
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x18]
add edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcpy
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], sym.__ZN9CSendKeys15enumwindowsProcEP6HWND__l_8
mov eax, dword [sym.imp.USER32.dll_EnumWindows]
call eax
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 0
je 0x402805
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.operator_delete___void_
cmp dword [ebp - 0xc], 0
jne 0x402812
mov eax, 0
jmp 0x40281e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call method.CSendKeys.AppActivate_HWND___
nop
leave
ret

Function at 0x40d190
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 0x40d1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4dc39c]
test esi, esi
jle 0x40d2f0
mov eax, dword [0x4dc3a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40d220
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40d29f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40d210
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40d317
mov eax, dword [0x4dc3a0]
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 [0x4dc3a0]
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 0x40d2f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40d298
sub eax, 4
and eax, 0xfffffffb
jne 0x40d2a6
add dword [0x4dc39c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4dc3a0]
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 0x40d298
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 0x40d22a
mov eax, dword [0x4dc3a0]
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 0x40d7d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4dc3b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4dc3b0]
sub esp, 4
test ebx, ebx
je 0x40d825
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 0x40d81e
test esi, esi
je 0x40d81e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d800
mov dword [esp], 0x4dc3b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f120
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.0040dde0
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 0x40f214
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x40f260
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 0x40f286
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x40f278
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x40f29d
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 0x40f2c3
mov dword [esp], esi
call sym._free
jmp 0x40f23a
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 0x40f23a
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40f23a
Function at 0x41c950
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4dcdf4]
test ebx, ebx
je 0x41c980
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4dcdf4]
test eax, eax
je 0x41c9a8
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 [0x4dcdf4], eax
mov ebx, eax
jmp 0x41c95e
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 [0x4dcdf4], eax
jmp 0x41c96f

Function at 0x41ce50
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x41ce80
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 0x41ce81
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 0x41ced5
jmp 0x41cee3
cmp eax, 0x6a
je 0x41ceed
add eax, 1
cmp byte [ebx + eax], 0
jne 0x41ced0
cmp eax, 0x6a
je 0x41ceed
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]