joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10087f10
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x18
cmp ecx, 8
jge 0x10087f3a
lea eax, [ecx*4]
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.1008bac0
add esp, 0xc
add esp, 0x18
ret 0xc
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov dword [esp + 0x18], 0
movups xmm0, xmmword [ebp]
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x1c], 0x1c
movups xmmword [ebx], xmm0
mov eax, dword [ebp + 0x10]
mov edx, eax
mov dword [ebx + 0x10], eax
mov esi, dword [ebp + 8]
sub esi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
sub eax, dword [ebx + 0xc]
shl esi, 3
sub esi, dword [ebp + 4]
add esi, dword [ebp]
add esi, dword [ebp + 0x10]
lea eax, [eax + eax*2]
add eax, dword [ebx + 8]
cmp ecx, 5
jle 0x10088044
sub ebx, ebp
lea edi, [ebp + 0x14]
add ecx, 0xfffffffb
mov ebp, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
lea edi, [edi + 4]
mov eax, dword [edi - 4]
imul edx, ecx
sar edx, 8
add edx, eax
xor eax, dword [esp + 0x14]
lea eax, [ecx - 1]
mov dword [esp + 0x14], edx
lea ecx, [ecx + 1]
cmovle ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, esi
imul ecx, dword [esp + 0x10]
sar ecx, 0xb
add ecx, edx
xor edx, esi
mov edx, dword [esp + 0x10]
mov esi, dword [edi - 0xc]
mov dword [edi - 4], ecx
lea eax, [edx - 1]
lea edx, [edx + 1]
cmovle edx, eax
sub esi, dword [edi - 8]
shl esi, 3
sub esi, dword [edi - 0x10]
add esi, dword [edi - 0x14]
add esi, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
mov ecx, ebp
imul ecx, edx
sar ecx, 9
add ecx, dword [edi - 4]
mov dword [ebx + edi - 4], ecx
mov eax, dword [edi - 4]
xor eax, ebp
lea eax, [edx - 1]
lea edx, [edx + 1]
cmovle edx, eax
sub ecx, dword [ebx + edi - 8]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
lea ebp, [ecx + ecx*2]
add ebp, dword [edi + ebx - 0xc]
sub dword [esp + 0x20], 1
jne 0x10087fa3
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov edx, dword [ebx]
mov edi, 0x172
add edx, dword [ebp + 4]
mov eax, 0xf3c
mov dword [ebx + 4], edx
add edx, dword [ebp + 8]
mov dword [ebx + 8], edx
add edx, dword [ebp + 0xc]
mov dword [ebx + 0xc], edx
add edx, dword [ebp + 0x10]
mov dword [ebx + 0x10], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ecx
lea ebx, [ecx + ecx]
sub ebx, dword [ebp + 0xc]
mov ebp, 5
cmp dword [esp + 0x34], ebp
jle 0x100880d5
mov ecx, dword [esp + 0x30]
mov esi, ebx
imul esi, edi
sar esi, 9
add esi, dword [ecx + ebp*4]
mov ecx, dword [ecx + ebp*4]
xor ecx, ebx
lea ecx, [edi - 1]
lea edi, [edi + 1]
cmovle edi, ecx
lea ebx, [esi + esi]
mov ecx, dword [esp + 0x30]
sub ebx, dword [esp + 0x20]
imul edx, eax
mov dword [esp + 0x20], esi
sar edx, 0xc
add edx, esi
mov dword [ecx + ebp*4], edx
mov ecx, esi
xor ecx, dword [esp + 0x2c]
lea ecx, [eax - 1]
mov dword [esp + 0x2c], edx
lea eax, [eax + 1]
cmovle eax, ecx
inc ebp
cmp ebp, dword [esp + 0x34]
jl 0x10088084
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x1009f644
Capabilities:
Set environment variable

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

Function at 0x100a0692
Capabilities:
Read file on windows

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

Function at 0x402000
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x401032], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [0x401036], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [0x40103a], eax
push 0x401022
call dword [sym.imp.USER32.DLL_RegisterClassA]
cmp eax, 0
je 0x4020ab
push 0
push dword [0x401032]
push 0
push 0
push 0xc0
push 0x100
push pe_nt_image_headers32
push pe_nt_image_headers32
push 0x10080000
push 0x40100e
push str.Simple_Window
push 0
call dword [sym.imp.USER32.DLL_CreateWindowExA]
cmp eax, 0
je 0x4020ab
push 0
push 0
push 0
push 0x40104a
call dword [sym.imp.USER32.DLL_GetMessageA]
cmp eax, 0
je 0x4020bc
push 0x40104a
call dword [sym.imp.USER32.DLL_TranslateMessage]
push 0x40104a
call dword [sym.imp.USER32.DLL_DispatchMessageA]
jmp 0x40207d
push 0x10
push 0
push 0x40101b
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
push dword [0x401052]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x40bf1b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bf5a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bf5a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bf5a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bf5a
cmp dword [ecx + 0x74], 0xe
jbe 0x40bf5a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40fb83
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4212f8
push 0x4212f0
push str.FlsAlloc
push 0x1f
call fcn.0040f9ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fbb7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e140]
call esi
jmp 0x40fbbd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40fc01
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421308
push 0x421300
push str.FlsGetValue
push 0x21
call fcn.0040f9ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fc38
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40fc40
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421310
push 0x421308
push str.FlsSetValue
push 0x22
call fcn.0040f9ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fc7a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41156f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405440
mov eax, dword [0x42b014]
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.004101b6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4115b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41170d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c760
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 + 0x42c918]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041256c
mov ecx, dword [esi*4 + 0x42c918]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x411706
cmp eax, dword [ecx + edi + 0x24]
jne 0x411706
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411706
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041256c
add esp, 0x14
test edx, edx
jl 0x411706
jg 0x41167c
test eax, eax
jb 0x411706
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411706
jl 0x411696
cmp dword [ebp - 0x1008], eax
ja 0x411706
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4116b4
test ebx, ebx
je 0x4116ed
cmp ecx, edi
jae 0x4116ed
mov al, byte [ecx]
cmp al, 0xd
jne 0x4116ce
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4116da
cmp byte [ecx + 1], 0xa
jne 0x4116da
inc ecx
jmp 0x4116da
movzx eax, al
movsx eax, byte [eax + 0x42b298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4116b4
cmp edx, ebx
jne 0x4116b4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41170b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004046b8
leave
ret
Function at 0x411a04
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x42c918]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411a44
cmp byte [ebx], 0xa
jne 0x411a44
or byte [edi + eax + 0x28], 4
jmp 0x411a49
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x411b48
mov dl, byte [eax]
cmp dl, 0x1a
je 0x411b2b
inc eax
cmp dl, 0xd
je 0x411a75
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x411a9b
cmp eax, ecx
jae 0x411aa9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x411a5d
jmp 0x411b48
push 0
lea eax, [ebp - 0x10]
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 0x411b26
cmp dword [ebp - 0x10], 0
je 0x411b26
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42c918]
test byte [eax + edi + 0x28], 0x48
je 0x411b00
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411aeb
mov byte [esi], dl
jmp 0x411afc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42c918]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411b48
cmp byte [ebp - 1], 0xa
jne 0x411b0f
cmp esi, ebx
jne 0x411b0f
mov byte [esi], 0xa
jmp 0x411b47
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041258a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411b48
mov byte [esi], 0xd
jmp 0x411b47
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42c918]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411b45
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411b48
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411b51
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x42c918]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411b97
cmp word [ebx], dx
jne 0x411b97
or byte [eax + edi + 0x28], 4
jmp 0x411b9c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x411cff
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x411cdf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x411bdd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411c13
cmp eax, edx
jae 0x411c21
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x411bb8
jmp 0x411cff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411cda
cmp dword [ebp - 0x18], 0
je 0x411cda
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42c918]
test byte [eax + edi + 0x28], 0x48
je 0x411cb0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x411c74
mov word [esi], cx
jmp 0x411cab
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42c918]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x42c918]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42c918]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x411cff
pop eax
cmp word [ebp - 4], ax
jne 0x411cc0
cmp esi, ebx
jne 0x411cc0
mov word [esi], ax
jmp 0x411cfc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041258a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x411cff
push 0xd
pop eax
jmp 0x411cbb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42c918]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x411cf9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x411cff
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416d37
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x416dd4
push ebx
push esi
call fcn.00416d00
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415a31
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416d81
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416dd3
push edi
push eax
call fcn.0041276b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416da1
call fcn.0040e4b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416dd2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415a31
add esp, 0x20
test eax, eax
jne 0x416dc0
push edi
call fcn.0040e4b2
jmp 0x416dc8
push ebx
call fcn.0040e4b2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x419401
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040f401
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419470
cmp esi, dword [ebp - 4]
je 0x41946b
cmp dword [ebp + 0xc], 0
je 0x41946b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x419448
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00418f53
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x419472
xor eax, eax
inc eax
jmp 0x419472
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4194d7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040f401
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040f401
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41954e
cmp word [ecx], dx
je 0x41954e
mov eax, dword [0x421b04]
push edi
dec eax
push eax
push 0x4219f0
call fcn.00419476
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4195c1
cmp word [eax], dx
je 0x4195c1
mov eax, dword [edi]
test eax, eax
je 0x419572
cmp word [eax], dx
je 0x419572
lea eax, [ebp - 0x10]
push eax
call fcn.00418e59
jmp 0x41957b
lea eax, [ebp - 0x10]
push eax
call fcn.00418ef4
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4195eb
mov eax, dword [0x4219ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4216e0
call fcn.00419476
add esp, 0xc
test al, al
je 0x4195eb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4195b6
cmp word [eax], di
je 0x4195b6
lea eax, [ebp - 0x10]
push eax
call fcn.00418e59
pop ecx
jmp 0x4195ed
lea eax, [ebp - 0x10]
push eax
call fcn.00418ef4
jmp 0x4195b3
mov eax, dword [edi]
test eax, eax
je 0x4195d8
cmp word [eax], dx
je 0x4195d8
lea eax, [ebp - 0x10]
push eax
call fcn.00418e0e
pop ecx
jmp 0x4195eb
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4196b6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004192fb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4196b6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4196b6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4196b6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x419643
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040fd80
test ebx, ebx
je 0x4196b1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040fd80
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4196b6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4196b6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041b696
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4196b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004046b8
leave
ret
Function at 0x10001038
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x2c
push 1
mov ebx, 0x1bc
call fcn.10007540
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10001084
push ebx
call fcn.100071e7
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001095
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100010b2
push 6
call fcn.100071f9
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push VariantCopy
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100010d7
mov eax, 0x10017240
push eax
push 3
mov ebx, 0x19c
call fcn.10007670
add esp, 0x28
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ecx, 0x80000101
jne 0x1000110b
and eax, 0xff
jmp 0x10001156
cmp ecx, 0x80000201
jne 0x10001116
cwde
jmp 0x10001156
cmp ecx, 0x80000301
je 0x10001156
cmp ecx, 0x80000401
je 0x10001156
mov dword [ebp - 0x1c], eax
cmp ecx, 0x80000501
je 0x10001146
cmp ecx, 0x80000601
je 0x1000114b
push 2
call fcn.100071f9
add esp, 4
fld dword [ebp - 0x1c]
jmp 0x10001151
mov dword [ebp - 0x18], edx
fld qword [ebp - 0x1c]
call fcn.10001011
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
je 0x10001171
cmp dword [ebp - 8], 9
je 0x10001171
xor eax, eax
jmp 0x10001176
mov eax, 1
jmp 0x1000117b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000118c
push ebx
call fcn.100071e7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x10001191
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x80000004
push 0
push str.C:Windows_shwTask.log
push 1
mov ebx, 0x244
call fcn.10007800
add esp, 0x10
mov eax, str.Runing_......
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
mov eax, str.C:Windows_shwTask.log
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.100013ad
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100011e7
push ebx
call fcn.100071e7
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100011f7
push ebx
call fcn.100071e7
add esp, 4
mov dword [ebp - 4], esp
mov eax, 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1000717e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x1000123b
push 6
call fcn.100071f9
add esp, 4
mov eax, 0
jmp 0x10001245
mov esp, ebp
pop ebp
ret
Function at 0x10007a90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x10007aa3
xor eax, eax
pop esi
add esp, 0x14
ret
push esi
call fcn.1000a2a0
add esp, 4
test eax, eax
jne 0x10007ab5
pop esi
add esp, 0x14
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x10007bb6
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ecx
jle 0x10007c49
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [esp + 0x38]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 8]
mov dword [esp + 0x18], 0
cmp eax, 0x80000004
jne 0x10007b0a
mov esi, dword [edi]
jmp 0x10007b33
push edi
call fcn.1000a2d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10007b2b
push eax
lea eax, [esp + 0x18]
push eax
push 2
push 0x10017c48
push ebx
call ebp
jmp 0x10007b8e
mov dword [esp + 0x18], 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x10007b6d
lea edx, [esp + 0x14]
push eax
push edx
push ecx
push esi
push ebx
call ebp
test eax, eax
je 0x10007b65
lea eax, [esp + 0x14]
push 0
push eax
push 2
push 0x10017c48
push ebx
call ebp
jmp 0x10007b6d
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10007b7e
push esi
call fcn.1000ad37
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007c49
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
jl 0x10007af4
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
cmp eax, 2
jne 0x10007c49
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x10], ecx
jle 0x10007c49
lea edi, [esp + 0x38]
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x10007beb
mov esi, dword [edi]
jmp 0x10007bff
push edi
call fcn.1000a2d0
mov esi, eax
add esp, 4
test esi, esi
je 0x10007c37
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x10007c18
mov edx, dword [ebx]
push ecx
push esi
mov ecx, ebx
call dword [edx + 0x24]
mov eax, dword [ebx]
push 2
push 0x10017c48
mov ecx, ebx
call dword [eax + 0x24]
test ebp, ebp
je 0x10007c33
push esi
call fcn.1000ad37
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add edi, 0xc
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
jne 0x10007bdb
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret