joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1026273
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10458ac
mov eax, dword fs:[0]
push eax
mov eax, 0x109c
call fcn.01038600
mov eax, dword [0x104e830]
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 eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x107c], edx
mov dword [ebp - 0x1074], esi
mov dword [ebp - 0x1088], ebx
mov dword [ebp - 0x1084], ebx
mov dword [ebp - 0x1080], ebx
lea esi, [ebp - 0x108c]
push esi
push edx
push eax
mov dword [ebp - 4], ebx
call fcn.010261a9
mov ecx, esi
call fcn.010205cb
cmp eax, ebx
jbe 0x1026463
mov ecx, dword [ebp - 0x1088]
add ecx, 4
mov dword [ebp - 0x1068], ecx
mov dword [ebp - 0x1070], eax
jmp 0x1026313
mov ecx, dword [ebp - 0x1068]
cmp dword [ecx + 0x14], 8
jb 0x102631b
mov ecx, dword [ecx]
push dword [ebp - 0x1078]
lea eax, [ebp - 0x1010]
push 0x800
push eax
push ebx
push ecx
push dword [ebp - 0x107c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1064]
call fcn.0100a764
lea ecx, [ebp - 0x1048]
call fcn.0100a369
lea ecx, [ebp - 0x102c]
call fcn.0100a369
push 0x1002fc4
lea ecx, [ebp - 0x10a8]
mov byte [ebp - 4], 3
call fcn.0100a764
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1048]
push eax
lea eax, [ebp - 0x10a8]
push eax
lea eax, [ebp - 0x1064]
push eax
mov byte [ebp - 4], 4
call fcn.010232ce
push ebx
push 1
lea ecx, [ebp - 0x10a8]
mov byte [ebp - 4], 3
call fcn.0100a063
push 0x10
call fcn.01035de2
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10263c6
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x10263c8
xor esi, esi
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
cmp dword [ebp - 0x1030], 8
mov eax, dword [ebp - 0x1044]
mov dword [ebp - 0x106c], esi
jae 0x10263e8
lea eax, [ebp - 0x1044]
mov edi, dword [sym.imp.msvcrt.dll__wcsdup]
push eax
call edi
mov dword [esi + 4], eax
cmp dword [ebp - 0x1014], 8
mov eax, dword [ebp - 0x1028]
pop ecx
jae 0x102640a
lea eax, [ebp - 0x1028]
push eax
call edi
pop ecx
mov ecx, dword [ebp - 0x1074]
mov dword [esi + 8], eax
lea eax, [ebp - 0x106c]
push eax
call fcn.01006399
push ebx
push 1
lea ecx, [ebp - 0x102c]
call fcn.0100a063
push ebx
push 1
lea ecx, [ebp - 0x1048]
call fcn.0100a063
push ebx
push 1
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], bl
call fcn.0100a063
add dword [ebp - 0x1068], 0x1c
dec dword [ebp - 0x1070]
jne 0x102630d
lea ecx, [ebp - 0x108c]
call fcn.010255d3
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.01038325
leave
ret 0x10
Function at 0x1028c9e
Capabilities:
Get geographical location
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x104e830]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x10033ac
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003398
push eax
mov dword [esi + 0x1c], eax
call edi
push 0x1003378
push dword [esi + 0x1c]
mov dword [esi], eax
call edi
push 0x1003358
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call edi
push 0x1003340
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call edi
push 0x1003328
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call edi
push 0x100330c
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call edi
push 0x10032f4
push dword [esi + 0x1c]
mov dword [esi + 0x14], eax
call edi
push 8
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x2c]
push eax
push 0x1009
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01038325
leave
ret

Function at 0x102a7e6
Capabilities:
Hash data using murmur3

Disassembly:
add eax, 0x1050841
in al, dx
in al, dx
xor eax, 0x370ba0f
add byte [eax], al
add ebx, edx
xor edx, esp
inc esi
or dword [0x105097d], 0x24879fba
sub esi, eax
xchg eax, eax
sub ecx, dword [0x1050b76]
xor eax, edx
xor edi, 0x363d9400
inc esi
neg eax
neg eax
dec esi
xor edi, 0x363d9400
xor eax, edx
xchg eax, eax
add esi, eax
sub dword [0x1050812], 0x5917e99
dec esi
xor edx, esp
sub ebx, edx
call fcn.0102a83b

Function at 0x102a93a
Capabilities:
Hash data using murmur3

Disassembly:
add eax, ebp
mov dword [0x1050536], edx
rol edi, 0x16
neg edx
sub ecx, dword [0x1050bc0]
dec ecx
xor esi, eax
neg edx
xchg esi, edx
neg esi
xor esi, 0xc008b80
dec ebx
sub eax, esi
sub ecx, dword [0x1050e84]
rol esi, 0xf
or dword [0x1050608], edi
add ebx, ecx
xor dword [0x10507c4], 0x1a0e35b
rol esi, 2
ror esi, 2
or dword [0x10505c8], 0x5c07798
sub ebx, ecx
sub dword [0x105053a], edi
ror esi, 0xf
add eax, esi
inc ebx
invalid
invalid
invalid
Function at 0x10323ca
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0x43c
mov eax, 0x104601c
call fcn.010383ac
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x428], ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 4], ebx
mov edi, ecx
mov dword [ebp - 0x42c], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x10018f8
mov ecx, esi
call fcn.0100a764
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1032517
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0100a6fa
push 0x1003844
mov ecx, esi
call fcn.01022dd8
lea eax, [edi + 0x1c]
push eax
mov ecx, esi
mov dword [ebp - 0x424], eax
call fcn.01022afa
push 0x1003840
mov ecx, esi
call fcn.01022dd8
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x1032483
mov eax, dword [edi]
jmp 0x1032485
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10324a9
cmp dword [esi + 0x18], 8
jb 0x103249b
mov eax, dword [edi]
jmp 0x103249d
mov eax, edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, ebx
jne 0x10324f1
mov eax, dword [ebp - 0x424]
cmp dword [eax + 0x18], 8
jb 0x10324ba
mov eax, dword [eax + 4]
jmp 0x10324bd
add eax, 4
cmp dword [esi + 0x18], 8
jb 0x10324c5
mov edi, dword [edi]
lea ecx, [ebp - 0x420]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x10018f8
mov ecx, esi
call fcn.0100a6fa
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.01022dd8
jmp 0x1032517
lea ecx, [ebp - 0x448]
call fcn.0100a369
xor edi, edi
inc edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.010228f2
push ebx
push edi
lea ecx, [ebp - 0x448]
call fcn.0100a063
mov eax, esi
call fcn.0103843e
ret 4
Function at 0x1034587
Capabilities:
Delete file

Disassembly:
push 0x60
mov eax, 0x10463a2
call fcn.010383ac
mov esi, ecx
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x6c]
push 0x10038b8
push eax
call fcn.01031502
push 0x100389c
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0103237e
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.0100a063
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.01032526
push 0x10018f8
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.01021133
mov ebx, eax
neg ebx
push edi
sbb bl, bl
push 1
lea ecx, [ebp - 0x4c]
inc bl
mov byte [ebp - 4], 2
call fcn.0100a063
test bl, bl
je 0x1034618
xor esi, esi
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0100a063
mov eax, esi
call fcn.0103843e
ret
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.01021c6c
mov ebx, 0x10037c4
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0100a764
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
lea edi, [esi + 0x48]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.010320ee
mov eax, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
call fcn.0100a063
mov eax, dword [esi + 0x4c]
cmp dword [ebp - 0x30], eax
je 0x103469e
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0100a764
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.01033b6e
cmp dword [eax + 0x18], 8
jb 0x1034688
mov eax, dword [eax + 4]
jmp 0x103468b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0100a063
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10346aa
lea eax, [ebp - 0x28]
push eax
push 0x80000001
mov ecx, esi
call fcn.01031b12
mov esi, eax
xor edi, edi
jmp 0x1034605
Function at 0x10347c4
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x46c
mov eax, 0x1046431
call fcn.010383ac
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x418], ax
xor esi, esi
lea eax, [ebp - 0x416]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x440], ebx
call sub.msvcrt.dll_memset
push 0x60
mov dword [ebp - 0x428], 0x104
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x43c], esi
call fcn.01035de2
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x420], ecx
mov dword [ebp - 4], esi
cmp ecx, esi
je 0x1034859
add edi, 0x1c
push edi
call fcn.01033cd4
mov dword [ebp - 0x41c], eax
jmp 0x103485f
mov dword [ebp - 0x41c], esi
lea eax, [ebp - 0x45c]
push eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x418]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
jne 0x10349f0
cmp dword [ebp - 0x424], esi
je 0x10349ed
lea ecx, [ebp - 0x454]
call fcn.01032000
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], esi
jbe 0x10349a6
lea eax, [ebp - 0x45c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x440]
mov dword [ebp - 0x448], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x1034999
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x478]
call fcn.0100a764
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x478]
push eax
mov byte [ebp - 4], 2
call fcn.010340b4
push esi
push 1
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 1
call fcn.0100a063
mov ecx, dword [ebp - 0x41c]
call fcn.010346c5
test eax, eax
je 0x1034972
mov ecx, dword [ebp - 0x41c]
call fcn.01031aac
test eax, eax
je 0x1034999
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], edi
push eax
lea ecx, [ebp - 0x454]
inc edi
call fcn.01033c5d
lea ecx, [ebp - 0x210]
push ecx
mov ecx, eax
call fcn.0100a6fa
inc ebx
cmp ebx, dword [ebp - 0x424]
jb 0x10348e7
cmp edi, esi
jbe 0x10349de
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x420], esi
call fcn.01033c5d
mov ecx, dword [ebp - 0x41c]
push eax
call fcn.010340b4
mov ecx, dword [ebp - 0x41c]
call fcn.01034587
inc esi
cmp esi, edi
jb 0x10349aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x454]
call fcn.0103356e
xor esi, esi
inc esi
mov eax, esi
call fcn.0103843e
ret 4
Function at 0x1035afd
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x104e830]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01035a3e
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1035b70
cmp dword [ebp - 0x94], 5
jb 0x1035b91
jmp 0x1035b8d
cmp dword [ebp - 0x88], 1
jne 0x1035b91
cmp dword [ebp - 0x94], 4
ja 0x1035b8d
jne 0x1035b91
cmp dword [ebp - 0x90], 0
jbe 0x1035b91
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1003b18
call fcn.010358d5
test eax, eax
jge 0x1035bb2
mov byte [0x104ef78], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01038325
leave
ret
Function at 0xfde424
Capabilities:
Encode data using xor

Disassembly:
xor ah, byte [ebx + 0x5b]
sar esi, 0xa6
leave
sbb al, 0x8f
mov ecx, ebp
add byte [ebx + 0x1a34c187], al
sar dword [edx + 0x9a4da9], 0
add bl, ch
jmp 0xfde42e
add byte [esp + eax], bh
add byte [eax], al
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
jmp 0xfde42e
pushal
call 0xfde434
pop ebp
sub ebp, 0x10
sub ebp, 0xbde424
jmp 0xfde44a
mov eax, 0xbde424
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a6
mov edx, 0xdd35ca8b
xor byte [eax], dl
inc eax
dec ecx
jne 0xfde461
jmp 0xfde474
add byte [esi], al
add dh, byte [edi + 0xa8b8b8b]
dec edx
jae 0xfde40b
mov ecx, dword [ebx - 0x70ccb978]
mov ecx, dword [ebx - 0x745cce75]
mov ecx, dword [ebx + 0x4388697c]
add byte [edx], cl
xchg dword [ebx + 0x4e888b8b], ecx
inc esi
xor ecx, dword [edi + 0x318b8b8b]
mov dword [0x7c8b8b8b], eax
imul ecx, dword [eax - 0x78f5ffbd], 0x888b8b8b
dec esi
fcmovnu st(0), st(3)
jecxz 0xfde441
add al, 0xab
mov esp, ebx
jb 0xfde483
push ss
mov ecx, dword [edx + 0x30e3afa7]
pushfd
jo 0xfde4bf
arpl word [esi + 0x628b8b8b], cx
mov eax, dword [0xde8b8b8b]
push es
out 0xaf, eax
mov eax, dword [eax]
push cs
or dword [ebx + 0x1e008b8b], 0xffffff87
mov ecx, dword [ebx - 0x64f9ff75]
mov ecx, dword [ebx - 0x769db575]
mov edx, 0x8f490889
ret 0xe84
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
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 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
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 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x3080194f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x308249ec]
jne 0x30801959
repz ret
jmp fcn.3081a014

Function at 0x30807ed2
Capabilities:
Get file attributes

Disassembly:
push 0x58
mov eax, 0x3081ac18
call fcn.3081997e
mov eax, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 4], esi
xor ebx, ebx
call fcn.30807c9a
pop ecx
pop ecx
test eax, eax
je 0x30807f69
push str.__
lea ecx, [ebp - 0x64]
call fcn.30815701
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.30815701
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.30815701
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.30815701
push esi
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.30815701
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x30807f60
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x2c]
and bl, 1
call fcn.30815701
mov al, bl
call fcn.308199b4
ret
Function at 0x30807f83
Capabilities:
Create directory

Disassembly:
push 0x88
mov eax, 0x3081ac6d
call fcn.3081997e
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x10]
push str.__
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x8c], eax
call fcn.30815701
push esi
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.30815701
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.30815701
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x30807fe2
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push 0x5c
pop esi
cmp word [eax + ecx*2 - 2], si
je 0x30807ffa
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.30815701
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x94], esi
or edi, 0xffffffff
mov ecx, dword [ebp - 0x90]
push 1
push dword [ebp - 0x88]
lea eax, [ebp - 0x94]
push eax
call fcn.30815701
mov ecx, dword [ebp - 0x90]
mov esi, eax
cmp esi, edi
je 0x30808078
sub eax, dword [ebp - 0x88]
push eax
push dword [ebp - 0x88]
lea eax, [ebp - 0x48]
push eax
call fcn.30815701
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.30815701
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.30815701
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.30815701
inc esi
mov dword [ebp - 0x88], esi
jmp 0x308080ac
push edi
push dword [ebp - 0x88]
lea eax, [ebp - 0x48]
push eax
call fcn.30815701
push edi
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.30815701
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.30815701
mov dword [ebp - 0x88], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x308080b8
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp - 0x81]
cmp byte [ebp - 0x81], bl
je 0x308080f5
push edi
push 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.30815701
mov ecx, dword [ebp - 0x8c]
push eax
mov byte [ebp - 4], 5
call fcn.30815701
lea ecx, [ebp - 0x48]
jmp 0x30808153
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x30808106
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x88], edi
jne 0x30808009
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
sete byte [ebp - 0x81]
cmp byte [ebp - 0x81], bl
je 0x3080816b
push edi
push 4
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.30815701
mov ecx, dword [ebp - 0x8c]
push eax
mov byte [ebp - 4], 6
call fcn.30815701
lea ecx, [ebp - 0x64]
push ebx
push 1
mov byte [ebp - 4], 2
call fcn.30815701
cmp dword [ebp - 0x88], edi
jne 0x30808009
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.30815701
mov al, byte [ebp - 0x81]
call fcn.308199b4
ret
Function at 0x30808ae4
Capabilities:
Enumerate process modules

Disassembly:
push 0x20
mov eax, 0x3081ae31
call fcn.30801ee1
push dword [ebp + 8]
xor edi, edi
push edi
push 0x410
mov dword [ebp - 0x14], edi
call dword [sym.imp.kernel32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x30808b87
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call sub.psapi.dll_EnumProcessModules
test eax, eax
je 0x30808b87
push 0x20
pop esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.30815701
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push ebx
call sub.psapi.dll_GetModuleBaseNameA
cmp eax, esi
jb 0x30808b62
push edi
add esi, esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.30815701
cmp esi, 0x208
jbe 0x30808b3d
push dword [ebp - 0x2c]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll__mbsstr]
pop ecx
pop ecx
test eax, eax
je 0x30808b7b
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.30806a0c
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
call fcn.30801fc6
ret

Function at 0x30808c2f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x138
mov eax, 0x3081ae8b
call fcn.3081997e
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x138], edi
cmp ebx, edi
je 0x30808d1c
lea eax, [ebp - 0x134]
push eax
call fcn.30808b97
pop ecx
cmp dword [ebp - 0x120], 0x10
mov eax, dword [ebp - 0x134]
mov dword [ebp - 4], edi
jae 0x30808c76
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x13c]
push ecx
push 1
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x30808d0a
mov esi, 0x105
push esi
lea eax, [ebp - 0x118]
push edi
push eax
mov dword [ebp - 0x140], 0x104
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x144]
push eax
push edi
push ebx
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x30808cfe
mov eax, dword [0x30825cd8]
push esi
call dword [eax + 4]
pop ecx
mov dword [ebp - 0x138], eax
cmp eax, edi
je 0x30808cfe
push esi
lea ecx, [ebp - 0x118]
push ecx
push esi
push eax
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x134]
call fcn.30815701
mov eax, dword [ebp - 0x138]
call fcn.308199b4
ret