joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001238f
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 0x1001242c
push ebx
push esi
call fcn.10012358
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.100122ec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100123d9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001242b
push edi
push eax
call fcn.1001334a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100123f9
call fcn.10010e34
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001242a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100122ec
add esp, 0x20
test eax, eax
jne 0x10012418
push edi
call fcn.10010e34
jmp 0x10012420
push ebx
call fcn.10010e34
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 0x10012699
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a888
push 0x1001a880
push str.FlsAlloc
push 0x1f
call fcn.100125b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100126cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
jmp 0x100126d3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10012717
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a898
push 0x1001a890
push str.FlsGetValue
push 0x21
call fcn.100125b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001274e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012756
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a8a0
push 0x1001a898
push str.FlsSetValue
push 0x22
call fcn.100125b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012790
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017e10
Capabilities:
Parse pe header

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

Function at 0x4a4540
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8b000]
push edi
or ebp, 0xffffffff
jmp 0x4a4562
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a4569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a4558
mov eax, 1
add ebx, ebx
jne 0x4a457b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a458c
jne 0x4a459c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a459c
dec eax
add ebx, ebx
jne 0x4a4598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a4570
xor ecx, ecx
sub eax, 3
jb 0x4a45b4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a4626
sar eax, 1
mov ebp, eax
jmp 0x4a45bf
add ebx, ebx
jne 0x4a45bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4a45cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4a45f0
inc ecx
add ebx, ebx
jne 0x4a45dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a45d1
jne 0x4a45ed
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a45d1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a4610
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a4601
jmp 0x4a455e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a4610
add edi, ecx
jmp 0x4a455e
pop esi
mov edi, esi
mov ecx, 0x38a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a462e
cmp byte [edi], 5
jne 0x4a462e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4a4633
lea edi, [esi + 0xa2000]
mov eax, dword [edi]
or eax, eax
je 0x4a46a2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa4c88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa4d28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a4660
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa4d2c]
or eax, eax
je 0x4a469c
mov dword [ebx], eax
add ebx, 4
jmp 0x4a467d
call dword [esi + 0xa4d30]
popal
jmp 0x401b98
Function at 0x40644e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40645d
pop dword [ebp - 0x28]
mov eax, 0x2de3e2a5
sub eax, 0x2da37e48
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xc5efd94e
add dword [ebp - 0x38], 0x88626bfd
mov dword [ebp - 0x34], 0x95644e9
sub dword [ebp - 0x34], 0xd722f8a4
mov dword [ebp - 0x30], 0x58c2d472
sub dword [ebp - 0x30], 0xc769044
mov dword [ebp - 0x2c], 0x1399564d
sub dword [ebp - 0x2c], 0x1399564d
lea eax, [ebp - 0x38]
push eax
mov eax, 0x121b553e
add eax, 0xee252b3a
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x7699b5f7
sub dword [ebp - 0x38], 0x2274ca1
mov dword [ebp - 0x34], 0x4a769264
add dword [ebp - 0x34], 0xf6f5cf11
mov dword [ebp - 0x30], 0xe4dbfe47
sub dword [ebp - 0x30], 0x816c91db
mov dword [ebp - 0x2c], 0x6e48f6b4
sub dword [ebp - 0x2c], 0x6e48f6b4
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x4e4a085a
add eax, 0xb1f67822
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x38dd7
push 0
call eax
mov ecx, 0x4f40
xor edx, edx
add edx, eax
mov edi, 0x451400
add edi, dword [ebp - 0x28]
mov esi, 0x9d33438a
sub esi, 0x2d37d4c2
add dword [ebp - 8], ecx
mov ebx, dword [edi]
xor dword [ebp - 0x24], 0x78512fe
xor ebx, esi
mov dword [ebp - 0x10], 0x24a24cca
mov dword [edx], ebx
mov dword [ebp - 8], 0x58718fc6
add edx, 0x440ee5b3
add edx, 0xbbf11a51
add edi, 0x32584ff1
sub edi, 0x32584fed
loop 0x406575
add eax, 0x62f9b881
add eax, 0x9d077752
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4d6f73c8
add ecx, 0xb2d08c38
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x4052d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x4052df
pop dword [ebp - 0x4c]
mov eax, 0x75c35314
sub eax, 0x75830035
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x388af251
sub dword [ebp - 0x5c], 0xea38ad06
mov dword [ebp - 0x58], 0x5aa77c71
sub dword [ebp - 0x58], 0x2874302c
mov dword [ebp - 0x54], 0xaac0e001
sub dword [ebp - 0x54], 0x5e749bd3
mov dword [ebp - 0x50], 0xdda68674
add dword [ebp - 0x50], 0x2259798c
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x6df0f240
sub dword [ebp - 0x5c], 0xf97e88ea
mov dword [ebp - 0x58], 0x7760d29
sub dword [ebp - 0x58], 0xc609abb4
mov dword [ebp - 0x54], 0x7dfc09a9
add dword [ebp - 0x54], 0xe57362c3
mov dword [ebp - 0x50], 0x163c17cb
sub dword [ebp - 0x50], 0x163c17cb
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x49d0806e
sub eax, 0x498f4032
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x38f7b
push 0
call eax
mov ecx, 0x9665aeb0
sub ecx, 0x96656dec
mov esi, eax
mov edx, 0x61e069b0
add edx, 0x9e615650
add edx, dword [ebp - 0x4c]
mov ebx, 0x5103c770
add ebx, 0x7aa0ba3
xor dword [ebp - 0x40], 0x35ed3e2d
mov edi, dword [edx]
mov dword [ebp - 0x1c], 0xf4f6e3cc
add edi, ebx
sub dword [ebp - 0x24], esi
mov dword [esi], edi
sub dword [ebp - 0x2c], edx
add esi, 4
add edx, 0x4b01a12c
sub edx, 0x4b01a128
loop 0x4053fc
add eax, 0xac57a754
add eax, 0x53a94e8f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc7f5b904
add ecx, 0x384a46fc
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10002cdc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10002ceb
pop dword [ebp - 0x1c]
mov eax, 0x10002ceb
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x74e90ae7
sub dword [ebp - 0x2c], 0x2696c59c
mov dword [ebp - 0x28], 0xfc1e5ceb
sub dword [ebp - 0x28], 0xc9eb10a6
mov dword [ebp - 0x24], 0xc38643c5
sub dword [ebp - 0x24], 0x7739ff97
mov dword [ebp - 0x20], 0xfeb8230d
add dword [ebp - 0x20], 0x147dcf3
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x29d68fb9
sub dword [ebp - 0x2c], 0xb5642663
mov dword [ebp - 0x28], 0xef428085
sub dword [ebp - 0x28], 0xadd61f10
mov dword [ebp - 0x24], 0x8830b0c3
add dword [ebp - 0x24], 0xdb3ebba9
mov dword [ebp - 0x20], 0x7e4f0e3d
sub dword [ebp - 0x20], 0x7e4f0e3d
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x39187
push 0
call eax
mov ecx, 0x5bcb7f30
sub ecx, 0x5bcb346c
xor edx, edx
add edx, eax
mov esi, 0x649aa27c
add esi, 0xab683384
add esi, dword [ebp - 0x1c]
mov ebx, 0x386060f8
add ebx, 0xa1935df3
mov edi, dword [esi]
add edi, ebx
xor dword [ebp - 4], 0xebe736d1
mov dword [edx], edi
mov dword [ebp - 4], 0xc2edd5ab
add edx, 4
add esi, 0xbee01cc1
add esi, 0x411fe343
loop 0x10002e00
add eax, 0x11de3
mov ebx, eax
add eax, 0x78ce98af
add eax, 0x87316756
mov ecx, 0x138274a5
add ecx, 0xfc7d8b5b
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426004]
jne 0x40100a
repz ret
jmp fcn.004019eb

Function at 0x406948
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040256b
and dword [ebp - 4], 0
cmp dword [0x428264], 0
mov ebx, eax
jne 0x4069f9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406aaa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406aaa
push eax
call fcn.004024f9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428264], eax
call esi
push eax
call fcn.004024f9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428268], eax
call esi
push eax
call fcn.004024f9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42826c], eax
call esi
push eax
call fcn.004024f9
pop ecx
mov dword [0x428274], eax
test eax, eax
je 0x4069f9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024f9
pop ecx
mov dword [0x428270], eax
mov eax, dword [0x428270]
cmp eax, ebx
je 0x406a51
cmp dword [0x428274], ebx
je 0x406a51
push eax
call fcn.00402574
push dword [0x428274]
mov esi, eax
call fcn.00402574
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406a51
test edi, edi
je 0x406a51
call esi
test eax, eax
je 0x406a48
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406a48
test byte [ebp - 0xc], 1
jne 0x406a51
or dword [ebp + 0x10], 0x200000
jmp 0x406a8a
mov eax, dword [0x428268]
cmp eax, ebx
je 0x406a8a
push eax
call fcn.00402574
pop ecx
test eax, eax
je 0x406a8a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406a8a
mov eax, dword [0x42826c]
cmp eax, ebx
je 0x406a8a
push eax
call fcn.00402574
pop ecx
test eax, eax
je 0x406a8a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428264]
call fcn.00402574
pop ecx
test eax, eax
je 0x406aaa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406aac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4092c2
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x426004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test ebx, ebx
jle 0x40931f
and dword [ebp - 0x808], 0
lea ecx, [ebp - 0x808]
call fcn.004092ba
mov al, byte [ebp - 0x808]
xor byte [edi + esi], al
cmp ebx, 0xf
jne 0x40931a
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp esi, ebx
jl 0x4092dc
pop esi
cmp ebx, 0x2d
jne 0x409336
or dword [0x233fa9c], 0xffffffff
mov dword [0x233fa98], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x10004350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002302b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x4bc], 0
jne 0x1000452a
call fcn.100059b0
test eax, eax
je 0x100044a5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1000ebd0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x100043ba
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002470
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1000ebd0
mov edi, dword [ebp + 0xc]
add esp, 0x14
cmp dword [edi + 0x14], 8
jb 0x100043ea
mov eax, dword [edi]
jmp 0x100043ec
mov eax, edi
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10002470
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x10004415
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10004550
jmp 0x1000452a
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
push 0x10024370
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], eax
call fcn.100042b0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.10004300
push 0x10024374
lea ecx, [ebp - 0x438]
call fcn.10004300
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.10004300
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov ecx, esi
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.10004550
lea ecx, [ebp - 0x438]
call fcn.10001140
jmp 0x1000452a
push 0x104
lea edi, [esi + 0xa8]
mov byte [esi + 0x4bc], 1
push 0
push edi
call fcn.1000ebd0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x100044cd
mov eax, dword [eax]
push eax
push edi
call fcn.10002470
push 0x104
lea edi, [esi + 0x2b0]
push 0
push edi
call fcn.1000ebd0
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x100044f5
mov eax, dword [eax]
push eax
push edi
call fcn.10002470
mov eax, dword [ebp + 0x10]
add esp, 8
mov eax, dword [eax]
mov dword [esi + 0x4b8], eax
lea eax, [ebp - 0x43c]
push eax
push 0
push esi
push 0x100045b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000be6b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10004550
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.1000ebd0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
movups xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100045a9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4
Function at 0x100049d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023100
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x270], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x10004b6b
push eax
lea ecx, [ebp - 0x40]
call fcn.100010e0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.10005a40
push 0x22c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.1000ebd0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10004b52
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10004b4b
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
je 0x10004ab5
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004aa6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.100018b0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.10005a40
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
cmp esi, 8
mov ebx, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
cmovae eax, ebx
push eax
call fcn.100033d0
add esp, 0x10
test eax, eax
je 0x10004b34
mov byte [ebp - 4], 0
cmp esi, 8
jb 0x10004b18
lea eax, [esi + 1]
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.10001a00
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x10004b4b
mov ebx, dword [ebp - 0x270]
jmp 0x10004a80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.10001140
jmp 0x10004b54
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x10004b69
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.10001a00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000be6b
mov esp, ebp
pop ebp
ret 4
Function at 0x100059b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.1000ebd0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x10005a22
cmp dword [ebp - 0x118], 2
jg 0x10005a22
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000be6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1000be6b
mov esp, ebp
pop ebp
ret
Function at 0x10008c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023506
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10008cdc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10008cdc
call fcn.10006f40
mov esi, eax
jmp 0x10008dcc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10008cff
call fcn.10006f40
jmp 0x10008dbf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x10008d1d
call fcn.10006f40
jmp 0x10008dbf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10008d3e
mov esi, 0x8007000e
jmp 0x10008dc1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10006d70
jmp 0x10008d68
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x10008d7f
mov esi, 0x8007000e
jmp 0x10008dc1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10008d9f
call fcn.10006f40
jmp 0x10008dbf
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.10008ad0
mov esi, eax
test edi, edi
je 0x10008dcc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10008df0
lea ecx, [ebp - 0x418]
call fcn.100076f0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000be6b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10009620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x10009639
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10009645
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10009640
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10009680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10009695
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100096a0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1001cd3e
Capabilities:
Set environment variable

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