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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x482f40
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5086e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x482f40
test cl, 0x48
je 0x482dd7
cmp byte [eax + 5], 0xa
je 0x482dd7
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x482e29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x482e11
call fcn.00479302
mov dword [eax], 9
call fcn.0047930b
mov dword [eax], esi
jmp 0x482e21
cmp eax, 0x6d
je 0x482f40
push eax
call fcn.00479314
pop ecx
or eax, 0xffffffff
jmp 0x482f42
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x482f3b
test eax, eax
je 0x482e50
cmp byte [ebx], 0xa
jne 0x482e50
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x482e59
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x482f35
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x482f25
cmp al, 0xd
je 0x482e8b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x482f17
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x482ea5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x482ea0
add dword [ebp + 0x10], 2
jmp 0x482ef9
mov dword [ebp + 0x10], eax
jmp 0x482f13
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x482ecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x482f13
cmp dword [ebp - 0xc], 0
je 0x482f13
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x482eee
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x482ef9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x482f16
cmp ebx, dword [ebp + 0xc]
jne 0x482efe
cmp byte [ebp - 1], 0xa
jne 0x482efe
mov byte [ebx], 0xa
jmp 0x482f16
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00483f08
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x482f17
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x482e6f
jmp 0x482f35
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x482f35
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x482f42
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x484c82
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x504b70], ebx
push esi
push edi
jne 0x484d02
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x484d3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c7edc
push edi
call esi
test eax, eax
mov dword [0x504b70], eax
je 0x484d3d
push 0x4c7ecc
push edi
call esi
push 0x4c7eb8
push edi
mov dword [0x504b74], eax
call esi
cmp dword [0x504798], 2
mov dword [0x504b78], eax
jne 0x484d02
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x504b80], eax
je 0x484d02
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x504b7c], eax
mov eax, dword [0x504b7c]
test eax, eax
je 0x484d47
call eax
test eax, eax
je 0x484d2e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x504b80]
test eax, eax
je 0x484d2e
test byte [ebp - 8], 1
jne 0x484d47
cmp dword [0x5047a4], 4
jb 0x484d41
or byte [ebp + 0x12], 0x20
jmp 0x484d66
xor eax, eax
jmp 0x484d76
or byte [ebp + 0x12], 4
jmp 0x484d66
mov eax, dword [0x504b74]
test eax, eax
je 0x484d66
call eax
mov ebx, eax
test ebx, ebx
je 0x484d66
mov eax, dword [0x504b78]
test eax, eax
je 0x484d66
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x504b70]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x484e5a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x484e88
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x484e8f
cmp ebx, dword [eax + 4]
jae 0x484e8f
xor eax, eax
jmp 0x48507f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x484ea0
xor eax, eax
inc eax
jmp 0x48507e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x484eb6
cmp ecx, edx
jae 0x484ffb
cmp dword [eax + 4], 0
je 0x484ebf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x484ea7
cmp dword [ebp + 8], 0
je 0x484ee1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x484ffb
cmp eax, esi
jae 0x484ffb
mov eax, dword [0x504b88]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x484f06
cmp dword [esi*4 + 0x504b90], edi
je 0x484fff
inc esi
cmp esi, eax
jl 0x484ef4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48507b
cmp dword [ebp - 8], 0x1000000
jne 0x48507b
test byte [ebp - 0xc], 0xcc
je 0x484f84
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x48507b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x48507b
cmp word [eax + 0x18], 0x10b
jne 0x48507b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x48507b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x484f84
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x484f84
test byte [ecx + 0x27], 0x80
jne 0x484ffb
push 1
push 0x504bd0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x484e98
mov ecx, dword [0x504b88]
test ecx, ecx
mov edx, ecx
jle 0x484fb8
lea eax, [ecx*4 + 0x504b8c]
cmp dword [eax], edi
je 0x484fb8
dec edx
sub eax, 4
test edx, edx
jg 0x484fac
test edx, edx
jne 0x484fe9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x484fc5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x484fdd
lea eax, [edx*4 + 0x504b90]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x484fcb
cmp ecx, 0x10
jge 0x484fe9
inc ecx
mov dword [0x504b88], ecx
push 0
push 0x504bd0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x484e98
xor eax, eax
jmp 0x48507e
test esi, esi
jle 0x484e98
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x504bd0
call ebx
test eax, eax
jne 0x484e98
cmp dword [esi*4 + 0x504b90], edi
je 0x485055
mov eax, dword [0x504b88]
lea esi, [eax - 1]
test esi, esi
jl 0x485043
cmp dword [esi*4 + 0x504b90], edi
je 0x48503f
dec esi
jns 0x485033
test esi, esi
jge 0x485053
cmp eax, 0x10
jge 0x48504e
inc eax
mov dword [0x504b88], eax
lea esi, [eax - 1]
jmp 0x485055
je 0x48506d
xor ecx, ecx
test esi, esi
jl 0x48506d
lea eax, [ecx*4 + 0x504b90]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x48505b
push 0
push 0x504bd0
call ebx
jmp 0x484e98
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4877cf
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004786f0
mov eax, dword [0x4e54e4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00483f08
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x487902
push 2
push esi
push dword [ebp + 8]
call fcn.00483f08
add esp, 0xc
cmp eax, ebx
je 0x487902
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4878a2
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00479fa0
push 0x8000
push dword [ebp + 8]
call fcn.00487910
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x487858
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00482a37
add esp, 0xc
cmp eax, 0xffffffff
je 0x487878
sub edi, eax
test edi, edi
jg 0x487850
jmp 0x487890
call fcn.0047930b
cmp dword [eax], 5
jne 0x48788d
call fcn.00479302
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00487910
pop ecx
pop ecx
jmp 0x4878ea
jge 0x4878ea
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00483f08
push dword [ebp + 8]
call fcn.0048693c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4878ea
call fcn.00479302
mov dword [eax], 0xd
call fcn.0047930b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00483f08
add esp, 0xc
mov eax, esi
pop edi
jmp 0x487904
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00480e79
leave
ret

Function at 0x48c159
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48c191
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.0048a227
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048a1ff
jmp 0x48c19d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48d847
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 0x48d889
call fcn.004931c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48d889
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48d880
xor eax, eax
jmp 0x48d891
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048d897
pop edi
pop esi
pop ebx
ret 4
Function at 0x4936f9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x493727
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x493745
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049365f
jmp 0x493745
mov eax, dword [esi + 0x14]
test eax, eax
je 0x493745
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049365f
test edi, edi
mov eax, edi
jne 0x49372f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax - 0x70]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4013a0
Capabilities:
Get thread local storage value
Set thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov eax, dword [0x41b060]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x401450
mov ebx, eax
lea edi, [eax + 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 8], edx
mov edx, edi
sub edx, eax
add edx, 0x7d0
mov dword [esp + 4], edx
call dword [sym.imp.msvcrt.dll__vsnprintf]
mov esi, eax
mov eax, dword [ebx + 0x18]
add eax, esi
mov dword [ebx + 0x18], eax
test esi, esi
je 0x401403
cmp byte [eax - 1], 0xa
je 0x401410
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strlen]
lea edx, [ebp - 0x10]
mov dword [esp + 4], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [0x41b068]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebx + 0x18], edi
mov eax, esi
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0xbf0
mov dword [esp], 1
call dword [sym.imp.msvcrt.dll_calloc]
lea edi, [eax + 0x1c]
mov ebx, eax
mov dword [eax + 0x18], edi
mov dword [esp + 4], eax
mov eax, dword [0x41b060]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x4013c7
Function at 0x401ff0
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov edx, 0x63
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x110]
push ebx
sub esp, 0x128
mov word [ebp - 0x104], dx
mov dword [ebp - 0x110], 0x6c707061
mov dword [ebp - 0x10c], 0x74616369
mov dword [ebp - 0x108], 0x2e6e6f69
mov dword [esp + 4], 0x2e
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strrchr]
test eax, eax
je 0x402044
mov byte [eax], 0
mov dword [esp + 0x10], 0x400
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 6
mov eax, dword [0x41b06c]
mov esi, dword fs:[0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov ebx, eax
mov eax, 0xc2
call fcn.00401360
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.MapViewOfFile_failed__error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.004018f0
mov eax, dword [0x40b040]
lock add dword [ebx + 0xc], eax
mov eax, dword [0x40b03c]
lock add dword [ebx + 0x10], eax
mov eax, dword [0x40b030]
lock add dword [ebx + 0x14], eax
mov eax, dword [0x40b02c]
lock add dword [ebx + 0x18], eax
mov eax, dword [0x40b034]
lock add dword [ebx + 0x1c], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [0x41b06c]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [0x40b014]
sub esp, 4
test eax, eax
je 0x40216c
mov edx, dword [0x40b03c]
mov ecx, str.failures
mov eax, str.failure
add edx, dword [0x40b02c]
cmp edx, 1
cmovne eax, ecx
mov ecx, dword [0x40b030]
mov dword [ebp - 0x114], eax
mov eax, dword [0x40b034]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x114]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [0x40b03c]
add eax, dword [0x40b040]
add eax, ecx
add eax, dword [0x40b02c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x20]
mov dword [esp], str._04lx:_s:__ld_tests_executed___ld_marked_as_todo__0_as_flaky___ld__s____ld_skipped._n
mov dword [esp + 4], eax
call fcn.00401490
mov eax, dword [0x41b068]
mov dword [esp], eax
call ebx
mov eax, dword [0x41b064]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [0x41b064]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402bb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402c70
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x101bc450
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
xor eax, eax
mov cl, 0x6e
lea edx, [ebp - 0x6c]
mov dword [0x101d2958], 0x1b23
mov byte [ebp - 0x2c], 0x6e
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0x64
mov byte [ebp - 0x29], 0x6c
mov byte [ebp - 0x28], 0x6c
mov byte [ebp - 0x27], 0x2e
mov byte [ebp - 0x26], 0x64
mov byte [ebp - 0x25], 0x6c
mov byte [ebp - 0x24], 0x6c
mov byte [ebp - 0x23], 0
mov byte [ebp - 0x22], 0x26
mov dword [0x101d2954], 0x1ad
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x75], cl
jmp 0x101bc5fc

Function at 0x101bca30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101d2960], 0
mov byte [0x101d2964], 0
mov edi, dword [0x101d2958]
add edi, 0xfffff6be
mov dword [0x101d2954], edi
mov dword [0x101d295c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101bca90
xor eax, eax
mov dword [0x101d295c], 0
mov dword [ebp - 0x20], eax
jmp 0x101bcaca
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101d2958], 0x1057
mov eax, dword [0x101d295c]
add eax, 1
mov dword [0x101d295c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101bca90
jmp 0x101bca7f
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101d2968], 0
mov dword [0x101d2958], 0x526
mov edx, dword [0x101d2960]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101d2968], edi
mov dword [0x101d2958], 0x253a
mov eax, edi
cdq
idiv ecx
mov dword [0x101d2960], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x101d2964], cl
mov dword [0x101d2954], 0x179b
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x101d2954]
add ecx, 0xffffe180
mov dword [0x101d2954], ecx
mov cl, byte [0x101d2964]
mov edx, dword [0x101d2960]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x101d295c]
add edx, 1
mov dword [0x101d295c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x101bcaca
jmp 0x101bcac2
Function at 0x101bd060
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x34
mov dword [ebp - 8], 0
mov dword [0x101d2954], 0x114c
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x101d2958], 0x255
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x101bd111
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff7
mov ecx, dword [ebp - 0x1c]
add ecx, 0x1fb
mov dword [0x101d2954], ecx
mov dword [ebp - 0x20], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2], 0x64
mov dword [ebp - 0x24], eax
je 0x101bd1bd
jmp 0x101bd108
mov eax, dword [ebp - 0x28]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], cl
mov eax, 0x1b2b
mov cl, byte [ebp - 0x2d]
test cl, 1
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x38], eax
jne 0x101bd111
jmp 0x101bd12f
mov eax, dword [ebp - 0x24]
add esp, 0x34
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, 0x17ef
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ecx
jne 0x101bd0d4
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov dword [0x101d2954], eax
mov dword [0x101d2958], 0x1c19
mov esi, dword [ebp - 0x10]
cmp word [esi + ecx*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edx
jne 0x101bd108
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x24], eax
jne 0x101bd108
xor eax, eax
mov dword [0x101d2958], 0xb65
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x24], eax
jne 0x101bd108
xor eax, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffdd9
mov dword [0x101d2954], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x24], eax
je 0x101bd0a1
jmp 0x101bd108
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x24], eax
jne 0x101bd108
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
jne 0x101bd108
mov dword [0x101d2954], 0xff8
mov eax, 1
mov dword [ebp - 0x24], eax
jmp 0x101bd108