joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e0a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48a733
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047dcd7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048336f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048488b
test eax, eax
je 0x44e1bc
mov ecx, dword [esp + 0x3c]
call fcn.0048339c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44e180
push edi
mov ecx, esi
call fcn.00480a03
mov ecx, esi
call fcn.0044e370
cmp dword [esp + 0x38], 1
jne 0x44e1b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00480b3e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4503b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4503e3
push esi
call fcn.0045e760
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4503dc
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 0x450469
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x450452
mov eax, dword [esi + 8]
test eax, eax
je 0x450407
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 0x45044e
cmp eax, 2
je 0x450452
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4503fa
cmp eax, 3
je 0x45042d
cmp eax, 1
jne 0x4503fa
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 0x4503fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4503fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00450490
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x450478
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00450490
add esp, 4
pop esi
ret

Function at 0x450d00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x450d21
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x450d21
mov eax, dword [eax + 0x44]
test eax, eax
je 0x450d21
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 0x47eacc
Capabilities:
Get graphical window text

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

Function at 0x4801bd
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 0x4801ff
call fcn.00485c71
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4801ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4801f6
xor eax, eax
jmp 0x480207
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048020d
pop edi
pop esi
pop ebx
ret 4
Function at 0x4861a1
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 0x4861cf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4861ed
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00486107
jmp 0x4861ed
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4861ed
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00486107
test edi, edi
mov eax, edi
jne 0x4861d7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x468002
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00467be9

Function at 0x468530
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00428f90
mov eax, dword [0x494040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00466951
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x468572
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4686ce
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047de10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x623810]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00469ac3
mov ecx, dword [esi*4 + 0x623810]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4686c7
cmp eax, dword [edi + ecx + 0x24]
jne 0x4686c7
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4686c7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00469ac3
add esp, 0x14
test edx, edx
jl 0x4686c7
jg 0x46863d
test eax, eax
jb 0x4686c7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4686c7
jl 0x468657
cmp dword [ebp - 0x1008], eax
ja 0x4686c7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x468675
test ebx, ebx
je 0x4686ae
cmp ecx, edi
jae 0x4686ae
mov al, byte [ecx]
cmp al, 0xd
jne 0x46868f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46869b
cmp byte [ecx + 1], 0xa
jne 0x46869b
inc ecx
jmp 0x46869b
movzx eax, al
movsx eax, byte [eax + 0x494318]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x468675
cmp edx, ebx
jne 0x468675
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4686cc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00427b3d
leave
ret
Function at 0x468c4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x623810]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x468c8c
cmp byte [ebx], 0xa
jne 0x468c8c
or byte [eax + edi + 0x28], 4
jmp 0x468c91
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x468d8f
mov al, byte [edx]
cmp al, 0x1a
je 0x468d71
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x468cc0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x468ce5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x468cef
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x468ca2
jmp 0x468d8f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x468d6c
cmp dword [ebp - 0xc], 0
je 0x468d6c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x623810]
test byte [eax + edi + 0x28], 0x48
je 0x468d46
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x468d31
mov byte [esi], dl
jmp 0x468d42
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x623810]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x468d8f
cmp byte [ebp - 1], 0xa
jne 0x468d55
cmp esi, ebx
jne 0x468d55
mov byte [esi], 0xa
jmp 0x468d8e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00469ae1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x468d8f
mov byte [esi], 0xd
jmp 0x468d8e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x623810]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x468d8b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x468d8f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x468d98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x623810]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x468ddb
cmp word [esi], dx
jne 0x468ddb
or byte [edi + eax + 0x28], 4
jmp 0x468de0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x468f33
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x468f13
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x468e22
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x468e58
cmp eax, edx
jae 0x468e64
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x468dfa
jmp 0x468f33
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x468f0f
cmp dword [ebp - 0x14], 0
je 0x468f0f
mov eax, dword [ebx*4 + 0x623810]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x468ee7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x468eb0
mov word [esi], cx
jmp 0x468ee3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x623810]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x623810]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x623810]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x468f33
pop ebx
cmp word [ebp - 4], bx
jne 0x468ef8
cmp esi, dword [ebp + 0xc]
jne 0x468ef8
mov word [esi], bx
jmp 0x468f30
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00469ae1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x468f33
push 0xd
jmp 0x468f2c
mov ecx, dword [ebx*4 + 0x623810]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x468f2a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x468f33
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x488b60
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x101c
call fcn.0051bfb0
mov ecx, dword [esp + 0x1020]
push ebx
push esi
lea eax, [esp + 0x102c]
push edi
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.0051c159
lea eax, [esp + 0x34]
push eax
call 0x488c10
push 0x544de4
call 0x488c10
lea ecx, [esp + 0x3c]
push ecx
call 0x488d40
push 1
push 1
call fcn.00488b60
add esp, 0x20
push 1
call dword [sym.imp.WINMM.DLL_timeEndPeriod]
call 0x47ebe0
mov esi, dword [sym.imp.USER32.DLL_GetMessageA]
mov edi, dword [sym.imp.USER32.DLL_TranslateMessage]
mov ebx, dword [sym.imp.USER32.DLL_DispatchMessageA]
push 0
push 0
lea edx, [esp + 0x14]
push 0
push edx
call esi
test eax, eax
jne 0x481646
call 0x44d420
lea eax, [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
call ebx
jmp 0x481630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x7fec24], eax
mov eax, dword [0x7fec20]
cmp ecx, eax
je 0x488bda
mov edx, dword [0x7fe7a0]
mov dword [0x7fec20], ecx
test edx, edx
je 0x488bda
mov eax, ecx
sub eax, 0
je 0x488bd1
dec eax
je 0x488bae
dec eax
je 0x488ba4
mov dword [esp + 8], ecx
mov dword [esp + 4], str.Invalid_visLevel__d_sent_to_Sys_ShowConsole_n
jmp 0x4815c0
push 6
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
ret
push 1
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov ecx, dword [0x7fe7a4]
push 0xffff
push 0
push 0xb6
push ecx
call dword [sym.imp.USER32.DLL_SendMessageA]
ret
push 0
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
ret

Function at 0x489d20
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [0x7fec48]
test eax, eax
jne 0x489d65
mov eax, dword [0x7fec4c]
test eax, eax
jne 0x489d65
mov eax, dword [0xcbb62c]
push 0
push eax
push 0x489ae0
push 0xd
call dword [sym.imp.USER32.DLL_SetWindowsHookExA]
test eax, eax
mov dword [0x7fec3c], eax
je 0x489d5b
mov dword [0x7fec48], 1
ret
mov dword [0x7fec4c], 1
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4014e6
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x4014fa
cmp dl, 0xcc
jne 0x401544
inc eax
cmp eax, 0xffffffff
jle 0x4014ed
mov al, byte [ecx]
cmp al, 0x8b
je 0x40150a
cmp al, 0x89
jne 0x401544
cmp byte [ecx + 1], 0xff
jne 0x401544
mov eax, 0x40189c
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x436a10], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [0x42a014]
push eax
call dword [0x42a034]
mov al, 1
ret 0xc
xor al, al
jmp 0x401541
Function at 0x43c15e
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp]
sub eax, 0x22
cmp byte [eax], 0xe8
jne 0x43c23d
add eax, dword [eax + 1]
add eax, 5
cmp word [eax], 0x25ff
jne 0x43c23d
mov eax, dword [eax + 2]
push eax
mov eax, dword [eax + 4]
cmp word [eax], 0xe850
jne 0x43c23d
add eax, dword [eax + 2]
add eax, 6
cmp dword [eax], 0x8bec8b55
jne 0x43c23d
push eax
pushal
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
test eax, eax
je 0x43c1ec
lea esi, [ebx + eax]
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
lea edi, [ebx + edi]
mov ebp, dword [edi + ecx*4 - 4]
add ebp, ebx
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x43c1ae
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x43c19f
cmp edx, 0x7946c61b
je 0x43c1bd
dec ecx
jne 0x43c195
xor eax, eax
jmp 0x43c1ec
mov edx, dword [esi + 0x24]
lea edx, [ebx + edx]
mov edx, dword [edx + ecx*2 - 2]
and edx, 0xffff
mov eax, dword [esi + 0x1c]
lea eax, [ebx + eax]
mov eax, dword [eax + edx*4]
lea eax, [ebx + eax]
cmp eax, esi
jbe 0x43c1ec
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x7c]
add esi, ecx
cmp eax, esi
jae 0x43c1ec
xor eax, eax
mov dword [esp + 0x1c], eax
popal
test eax, eax
je 0x43c23d
mov dword [ebp - 4], eax
push 0
push esp
push 0x40
push 0x40
push dword [esp + 0x18]
call dword [ebp - 4]
test eax, eax
je 0x43c23d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
sub ecx, eax
sub ecx, 6
mov dword [eax + 2], ecx
mov ecx, dword [ebp - 4]
sub ecx, eax
sub ecx, 0x27
mov dword [eax + 0x23], ecx
push esp
push 0x40
push 0x40
push dword [esp + 0x14]
call dword [ebp - 4]
test eax, eax
je 0x43c23d
pop eax
pop ecx
pop eax
pop dword [eax + 4]
leave
ret
mov eax, 0
jmp 0x43c247
mov esp, ebp
pop ebp
ret
Function at 0x409b90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x409bc6
mov dword [0x447570], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x43e8e0
mov dword [ebp - 0x1c], 0x409d70
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43f040], 0
mov dword [ebp - 0x44], 0x447580
je 0x409d50
jl 0x409d90
mov dword [ebp - 0x3c], 1
mov eax, dword [0x447570]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x409e33
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x447b50]
mov eax, 0xffffffff
test edx, edx
je 0x409daa
mov eax, dword [0x43f044]
test eax, eax
je 0x409dea
xor eax, eax
test eax, eax
jne 0x409de0
mov edi, dword [0x43f040]
test edi, edi
js 0x409de0
mov dword [ebp - 0x44], 0x447580
mov ebx, dword [0x43f040]
test ebx, ebx
je 0x409d50
jmp 0x409cfe
xor esi, esi
mov dword [0x43f040], esi
jmp 0x409db8
mov dword [esp], 0x43f048
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x409e71
mov eax, dword [0x43f044]
test eax, eax
jne 0x409da8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43f044]
test eax, eax
je 0x409e0d
jmp 0x409da8
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x409e65
mov dword [esp + 4], eax
mov eax, dword [0x447570]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x409e9a
test edx, edx
je 0x409e85
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43f044], eax
jmp 0x409da8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x409d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x409e61
Function at 0x410c30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x4115a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x4115f0
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408971
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x408ae4
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push str._sConnection
push 0x103
push eax
call fcn.00409bc8
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x408adb
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x408ad2
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.0041ef10
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x408ad2
cmp dword [ebp - 0x70], edi
jne 0x408ac2
mov esi, 0x4429c0
push esi
call fcn.004219d0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00422b70
add esp, 0x10
test eax, eax
jne 0x408a9c
mov dword [ebp - 0x6c], ebx
jmp 0x408ad2
cmp dword [ebp - 0x70], edi
jne 0x408ac2
push esi
call fcn.004219d0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00422b70
add esp, 0x10
test eax, eax
je 0x408ac2
mov dword [ebp - 0x6c], 2
jmp 0x408ad2
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f018
add ebp, 0xa4
leave
ret