joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4227cc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x437ebc]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4384e0]
je 0x422801
inc eax
cmp eax, 0x13
jb 0x4227f2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4384e0]
jne 0x422927
mov eax, dword [0x4463d4]
cmp eax, 1
je 0x4228ff
cmp eax, edx
jne 0x422831
cmp dword [0x437ef4], 1
je 0x4228ff
cmp ecx, 0xfc
je 0x422927
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422867
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00424470
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041d510
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42289b
mov eax, edi
push eax
call fcn.0041d510
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x432c64
push edi
call fcn.00424570
add esp, 0x10
push edi
call fcn.0041d510
push dword [esi + 0x4384e4]
mov ebx, eax
call fcn.0041d510
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041c890
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00424470
push edi
push ebx
call fcn.00424480
push 0x432c60
push ebx
call fcn.00424480
push dword [esi + 0x4384e4]
push ebx
call fcn.00424480
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00424373
add esp, 0x2c
jmp 0x422927
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4384e4]
push dword [esi]
call fcn.0041d510
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041b325
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x423fe6
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 0x424014
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 0x42401b
cmp ebx, dword [eax + 4]
jae 0x42401b
xor eax, eax
jmp 0x42420b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42402c
xor eax, eax
inc eax
jmp 0x42420a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x424042
cmp ecx, edx
jae 0x424187
cmp dword [eax + 4], 0
je 0x42404b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x424033
cmp dword [ebp + 8], 0
je 0x42406d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x424187
cmp eax, esi
jae 0x424187
mov eax, dword [0x4466c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x424092
cmp dword [esi*4 + 0x4466d0], edi
je 0x42418b
inc esi
cmp esi, eax
jl 0x424080
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424207
cmp dword [ebp - 8], 0x1000000
jne 0x424207
test byte [ebp - 0xc], 0xcc
je 0x424110
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x424207
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x424207
cmp word [eax + 0x18], 0x10b
jne 0x424207
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x424207
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x424110
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x424110
test byte [ecx + 0x27], 0x80
jne 0x424187
push 1
push 0x446710
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x424024
mov ecx, dword [0x4466c8]
test ecx, ecx
mov edx, ecx
jle 0x424144
lea eax, [ecx*4 + 0x4466cc]
cmp dword [eax], edi
je 0x424144
dec edx
sub eax, 4
test edx, edx
jg 0x424138
test edx, edx
jne 0x424175
push 0xf
pop ebx
cmp ecx, ebx
jg 0x424151
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x424169
lea eax, [edx*4 + 0x4466d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x424157
cmp ecx, 0x10
jge 0x424175
inc ecx
mov dword [0x4466c8], ecx
push 0
push 0x446710
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x424024
xor eax, eax
jmp 0x42420a
test esi, esi
jle 0x424024
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x446710
call ebx
test eax, eax
jne 0x424024
cmp dword [esi*4 + 0x4466d0], edi
je 0x4241e1
mov eax, dword [0x4466c8]
lea esi, [eax - 1]
test esi, esi
jl 0x4241cf
cmp dword [esi*4 + 0x4466d0], edi
je 0x4241cb
dec esi
jns 0x4241bf
test esi, esi
jge 0x4241df
cmp eax, 0x10
jge 0x4241da
inc eax
mov dword [0x4466c8], eax
lea esi, [eax - 1]
jmp 0x4241e1
je 0x4241f9
xor ecx, ecx
test esi, esi
jl 0x4241f9
lea eax, [ecx*4 + 0x4466d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4241e7
push 0
push 0x446710
call ebx
jmp 0x424024
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424373
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4467f0], ebx
push esi
push edi
jne 0x4243f3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42442e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4467f0], eax
je 0x42442e
push str.GetActiveWindow
push edi
call esi
push 0x433600
push edi
mov dword [0x4467f4], eax
call esi
cmp dword [0x4463e0], 2
mov dword [0x4467f8], eax
jne 0x4243f3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x446800], eax
je 0x4243f3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4467fc], eax
mov eax, dword [0x4467fc]
test eax, eax
je 0x424438
call eax
test eax, eax
je 0x42441f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x446800]
test eax, eax
je 0x42441f
test byte [ebp - 8], 1
jne 0x424438
cmp dword [0x4463ec], 4
jb 0x424432
or byte [ebp + 0x12], 0x20
jmp 0x424457
xor eax, eax
jmp 0x424467
or byte [ebp + 0x12], 4
jmp 0x424457
mov eax, dword [0x4467f4]
test eax, eax
je 0x424457
call eax
mov ebx, eax
test ebx, ebx
je 0x424457
mov eax, dword [0x4467f8]
test eax, eax
je 0x424457
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4467f0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4253fc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x437ebc]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x42542d
xor eax, eax
jmp 0x4255b6
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x446b80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x425469
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00427a46
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x425544
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x425582
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4254cd
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4254be
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x42549e
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42550d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x425516
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x42548f
jmp 0x425518
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4255b1
cmp dword [ebp - 0x6c], edi
je 0x425582
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x425577
call fcn.0041da22
mov dword [eax], 9
call fcn.0041da2b
mov dword [eax], esi
jmp 0x4255ac
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42556c
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x425518
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x425518
push dword [ebp - 0x6c]
call fcn.0041da34
pop ecx
jmp 0x4255ac
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42559a
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x42559a
xor eax, eax
jmp 0x4255b4
call fcn.0041da22
mov dword [eax], 0x1c
call fcn.0041da2b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4255b4
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041b325
add ebp, 0x3a0
leave
ret
Function at 0x42690a
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 0x426ade
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x446b80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x426ade
test cl, 0x48
je 0x426975
cmp byte [eax + 5], 0xa
je 0x426975
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 0x4269c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4269af
call fcn.0041da22
mov dword [eax], 9
call fcn.0041da2b
mov dword [eax], esi
jmp 0x4269bf
cmp eax, 0x6d
je 0x426ade
push eax
call fcn.0041da34
pop ecx
or eax, 0xffffffff
jmp 0x426ae0
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x426ad9
test eax, eax
je 0x4269ee
cmp byte [ebx], 0xa
jne 0x4269ee
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4269f7
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 0x426ad3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x426ac3
cmp al, 0xd
je 0x426a29
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x426ab5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x426a43
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x426a3e
add dword [ebp + 0x10], 2
jmp 0x426a97
mov dword [ebp + 0x10], eax
jmp 0x426ab1
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 0x426a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x426ab1
cmp dword [ebp - 0xc], 0
je 0x426ab1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x426a8c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x426a97
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x426ab4
cmp ebx, dword [ebp + 0xc]
jne 0x426a9c
cmp byte [ebp - 1], 0xa
jne 0x426a9c
mov byte [ebx], 0xa
jmp 0x426ab4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00426535
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x426ab5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x426a0d
jmp 0x426ad3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x426ad3
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 0x426ae0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x427ac9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041c890
mov eax, dword [0x437ebc]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00426535
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x427bfc
push 2
push esi
push dword [ebp + 8]
call fcn.00426535
add esp, 0xc
cmp eax, ebx
je 0x427bfc
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x427b9c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0041ce60
push 0x8000
push dword [ebp + 8]
call fcn.00428831
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x427b52
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004253fc
add esp, 0xc
cmp eax, 0xffffffff
je 0x427b72
sub edi, eax
test edi, edi
jg 0x427b4a
jmp 0x427b8a
call fcn.0041da2b
cmp dword [eax], 5
jne 0x427b87
call fcn.0041da22
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00428831
pop ecx
pop ecx
jmp 0x427be4
jge 0x427be4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426535
push dword [ebp + 8]
call fcn.0042517d
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 0x427be4
call fcn.0041da22
mov dword [eax], 0xd
call fcn.0041da2b
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.00426535
add esp, 0xc
mov eax, esi
pop edi
jmp 0x427bfe
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041b325
leave
ret

Function at 0x42d0a1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x437ebc]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x42d0f0
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x42d0f0
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42d0fc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041b325
leave
ret 8

Function at 0x42de00
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42de35
cmp edi, dword [esi + 0xc]
jge 0x42de35
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42de35
cmp edi, dword [eax + 8]
jge 0x42de35
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42de37
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x42dee3
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42df17
jmp fcn.00428cec
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42e081
cmp eax, dword [edi + 0xc]
jge 0x42e081
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42dfd9
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42e06a
cmp dword [ebp + 0xc], ebx
je 0x42e06a
jmp 0x42e003
push 0x10
call fcn.0042dccc
cmp eax, ebx
je 0x42dfef
mov ecx, eax
call fcn.0042deda
mov esi, eax
jmp 0x42dff1
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42e01a
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42e02a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42e03c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00428cec
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0041ce60
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42e07c
cmp ecx, dword [esi + 8]
jge 0x42e07c
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42e082
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10002000
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100092f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1d0], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1d0], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1d0], 2
call fcn.10001000
mov al, 0x6c
mov cl, 0x6e
mov byte [esp + 0x2d], al
mov byte [esp + 0x32], al
mov byte [esp + 0x33], al
mov al, 0x74
mov byte [esp + 0x1c], al
mov byte [esp + 0x22], al
mov byte [esp + 0x2b], cl
mov byte [esp + 0x21], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
mov bl, 0x65
mov dl, 0x72
push eax
push ecx
mov byte [esp + 0x1d8], 3
mov dword [esi], 0x10015130
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], dl
mov byte [esp + 0x34], bl
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3c], 0
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], dl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x76
mov byte [esp + 0x28], bl
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x38]
mov edi, eax
push edx
push 0x202
call dword [fcn.100150d8]
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
push 0x1c
call ebp
add esp, 4
push 0
push 0
push 1
push 0
call edi
push 0x1c
mov dword [esi + 0xac], eax
call ebp
add esp, 4
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
mov byte [esp + 0x10], 0x45
mov byte [esp + 0x11], 0x79
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], 0x73
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0xb0]
mov al, 0x32
pop edi
mov dword [ecx], edx
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1c4]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c4
ret
Function at 0x1000c190
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x1000c1b2
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.1000f250
add esp, 8
test al, al
jne 0x1000c1c6
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x10013304
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], 0x100132f4
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret

Function at 0x1000d0a0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9e50]
mov dword [ebx], 0x10015148
test eax, eax
jbe 0x1000d0e4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x210]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x9e50]
inc edi
add esi, 4
cmp edi, eax
jb 0x1000d0c4
pop esi
pop ebp
mov ecx, ebx
call fcn.1000e0f0
pop edi
pop ebx
ret

Function at 0x1000d460
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
sub esp, 0x128
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 5], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], cl
mov cl, 0x74
mov byte [esp + 1], al
mov byte [esp + 4], al
mov byte [esp + 0x11], al
mov byte [esp + 0x17], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x16], cl
mov byte [esp + 0x1e], cl
lea eax, [esp + 0x10]
lea ecx, [esp]
mov dl, 0x72
push eax
push ecx
mov byte [esp + 8], 0x6b
mov byte [esp + 0xa], dl
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xe], 0x33
mov byte [esp + 0xf], 0x32
mov byte [esp + 0x10], 0x2e
mov byte [esp + 0x11], 0x64
mov byte [esp + 0x14], 0
mov byte [esp + 0x18], 0x47
mov byte [esp + 0x1b], 0x53
mov byte [esp + 0x1c], 0x79
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x20], 0x6d
mov byte [esp + 0x21], 0x44
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], dl
mov byte [esp + 0x25], 0x63
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], 0x79
mov byte [esp + 0x2a], 0x41
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x24]
push 0x104
push edx
call eax
lea eax, [esp + 0x24]
push 0x10013364
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x128
ret