joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421791
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00419b8c
and dword [ebp - 0x14], 0
cmp dword [0x433bb0], 0
mov dword [ebp - 0x18], eax
jne 0x421844
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4218ec
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4218ec
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x433bb0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x433bb4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x433bb8], eax
call edi
push eax
call esi
mov dword [0x433bc0], eax
test eax, eax
je 0x421844
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x433bbc], eax
mov eax, dword [0x433bbc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42189d
cmp dword [0x433bc0], ecx
je 0x42189d
push eax
call esi
push dword [0x433bc0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42189d
test ebx, ebx
je 0x42189d
call edi
test eax, eax
je 0x421894
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x421894
test byte [ebp - 8], 1
jne 0x42189d
or dword [ebp + 0x10], 0x200000
jmp 0x4218d0
mov eax, dword [0x433bb4]
cmp eax, dword [ebp - 0x18]
je 0x4218d0
push eax
call esi
test eax, eax
je 0x4218d0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4218d0
mov eax, dword [0x433bb8]
cmp eax, dword [ebp - 0x18]
je 0x4218d0
push eax
call esi
test eax, eax
je 0x4218d0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x433bb0]
call esi
test eax, eax
je 0x4218ec
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4218ee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413635
leave
ret
Function at 0x401260
Capabilities:
Hide graphical window

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x403100], eax
push esp
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [esp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4030f4], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x40128d
push esp
mov dword [ebp - 0x24], 0x401330
mov eax, dword [0x4030f4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.wookernof
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4030f4]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.tofkol
push str.wookernof
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403104], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40132c
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40130d
pop ebp
ret 0x10

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4097f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x409812
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409819
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409808
mov eax, 1
add ebx, ebx
jne 0x40982b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409820
jne 0x40983c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409820
xor ecx, ecx
sub eax, 3
jb 0x409850
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4098c2
mov ebp, eax
add ebx, ebx
jne 0x40985b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409868
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40988c
inc ecx
add ebx, ebx
jne 0x409878
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40986d
jne 0x409889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40986d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4098ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40989d
jmp 0x40980e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4098ac
add edi, ecx
jmp 0x40980e
pop esi
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40990b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9228]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4098c9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9230]
or eax, eax
je 0x409905
mov dword [ebx], eax
add ebx, 4
jmp 0x4098e6
call dword [esi + 0x922c]
mov ebp, dword [esi + 0x9234]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40993f
sub esp, 0xffffff80
jmp 0x401053
Function at 0x3440475d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x344047e6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jl 0x3440478e
cmp dword [ebp - 0x10], 5
jle 0x3440477d
jmp 0x3440478e
mov eax, dword [ebp + 8]
mov ax, word [eax*2 + str..___Ee]
mov word [ebp - 4], ax
jmp 0x3440480d
cmp dword [ebp + 8], 0
jl 0x344047da
cmp dword [ebp + 8], 6
jae 0x344047da
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x34416f28]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 2
jne 0x344047da
push 2
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 8]
push eax
push 4
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ax, word [ebp - 0xc]
mov word [ebp - 4], ax
jmp 0x3440480d
mov ax, word [str..___Ee]
mov word [ebp - 4], ax
jmp 0x3440480d
cmp dword [ebp + 8], 0
jl 0x34404803
cmp dword [ebp + 8], 7
jae 0x34404803
mov eax, dword [ebp + 8]
mov ax, word [eax*2 + str..___Ee]
mov word [ebp - 4], ax
jmp 0x3440480d
mov ax, word [str..___Ee]
mov word [ebp - 4], ax
mov ax, word [ebp - 4]
leave
ret 8

Function at 0x344049f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0xf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x34404a2f
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.34412eca
test eax, eax
jl 0x34404a2f
mov eax, dword [ebp + 0xc]
mov cx, word [ebp - 8]
mov word [eax], cx
push 2
lea eax, [ebp - 4]
push eax
push 0xe
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x34404a65
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.34412eca
test eax, eax
jl 0x34404a65
mov eax, dword [ebp + 8]
mov cx, word [ebp - 8]
mov word [eax], cx
leave
ret 8

Function at 0x3440596d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
movsb byte es:[edi], byte [esi]
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.34405580
push eax
push esi
push dword [ebp + 8]
call fcn.34405535
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
Function at 0x34405a45
Capabilities:
Encrypt data using rc4 prga
Inspect section memory permissions

Disassembly:
push ecx
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
invalid
jae 0x34405a0e
inc ebp
invalid
push edi
mov byte [ebp - 0x70], 0x16
call fcn.34405570
xlatb
dec ecx
pop ebx
lea eax, [ebp - 0x84]
push eax
call fcn.34405580
push eax
push esi
push dword [ebp + 8]
call fcn.34405535
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x34405d69
jae 0x34405a0e
inc ebp
invalid
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.344054e1
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x34405ae0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x34405ac7
Capabilities:
Encrypt data using rc4 prga
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.344054e1
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x34405aad
call fcn.34405570
add ah, byte [edi + edi*4]
ror dword [ebx - 0x1fcc382], 1
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x34405d5f
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x34405b15
cmp dword [eax + 0xc], ebx
je 0x34405bb8
mov edi, dword [eax + 0xc]
add edi, esi
push edi
invalid
xchg ebp, eax
inc eax
invalid
invalid

Function at 0x34405b62
Capabilities:
Inspect section memory permissions

Disassembly:
popfd
dec ecx
pushfd
aas
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x34405ba6
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x34405b81
and eax, 0xffff
push eax
jmp 0x34405b85
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.34405535
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x34405d5f
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x34405b66
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x34405b07
dec edi
invalid
invalid
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]

Function at 0x34405dff
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x3a]
test dword [esi + 0x25fffffc], edi
lea eax, [ebp - 0x354]
push eax
call fcn.34405580
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.34405535
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
invalid
movsd dword es:[edi], dword [esi]
int3
Function at 0x3440627c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
invalid
invalid
push esp

Function at 0x34406435
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40

Function at 0x3440644e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
invalid
invalid
std
cli

Function at 0x34413a83
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x343f2b30
push 0x343f2b14
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x34413ab8
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x343f2b10
push ebx
call edi
test esi, esi
mov dword [0x343f2b10], esi
jne 0x34413b1c
mov dword [0x343f2b10], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x3441855c], 0x44bf19b1
pop ebx
leave
ret
Function at 0x34413b37
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x343f2b10]
jne 0x34413fa1
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x34418c70], eax
mov dword [0x34418c6c], ecx
mov dword [0x34418c68], edx
mov dword [0x34418c64], ebx
mov dword [0x34418c60], esi
mov dword [0x34418c5c], edi
mov word [0x34418c88], ss
mov word [0x34418c7c], cs
mov word [0x34418c58], ds
mov word [0x34418c54], es
mov word [0x34418c50], fs
mov word [0x34418c4c], gs
pushfd
pop dword [0x34418c80]
mov eax, dword [ebp]
mov dword [0x34418c74], eax
mov eax, dword [ebp + 4]
mov dword [0x34418c78], eax
lea eax, [ebp + 8]
mov dword [0x34418c84], eax
mov eax, dword [ebp - 0x320]
mov dword [0x34418bc0], 0x10001
mov eax, dword [0x34418c78]
mov dword [0x34418b74], eax
mov dword [0x34418b68], 0xc0000409
mov dword [0x34418b6c], 1
mov eax, dword [0x343f2b10]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3441855c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x34418bb8], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x343f2b50
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x34418bb8], 0
jne 0x34414091
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x10178a6
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
rdtsc
sub esp, 0x2c
mov dword [0x108d0c4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
cmp dword [0x108e230], 0
mov dword [0x108d014], eax
jne 0x10178ea
push 0x108d0a0
call fcn.010320d6
test eax, eax
jl 0x1017a8d
mov dword [0x108e230], 1
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, 0x1000000
mov eax, dword [0x100003c]
mov ecx, dword [eax + 0x1000050]
add ecx, edx
mov eax, dword [ebp - 0x24]
lea esi, [eax - 0x80000000]
cmp ecx, esi
jb 0x101791a
lea eax, [ecx - 0x80000000]
add eax, 0xffff
and eax, 0xffff0000
mov ecx, dword [ebp - 0x20]
lea esi, [ecx - 0x80000000]
cmp esi, edx
mov dword [0x108e540], eax
pop esi
jb 0x101793c
mov ecx, 0x81000000
mov dword [0x108e3b8], ecx
xor ecx, ecx
mov word [0x108e3b8], cx
mov ecx, dword [0x108e3b8]
sub ecx, eax
shr ecx, 0x10
mov dword [0x108d0b8], ecx
xor eax, eax
test eax, eax
jl 0x1017a8d
mov ecx, dword [0x108d430]
jmp 0x101798e
imul ecx, ecx, 0x18
add ecx, 0x108e408
push ecx
call fcn.010320d6
test eax, eax
jl 0x1017993
mov ecx, dword [0x108d430]
inc ecx
mov dword [0x108d430], ecx
cmp ecx, 4
jb 0x101796e
mov dword [ebp - 4], eax
test eax, eax
jl 0x1017a8d
mov eax, dword [0x107beec]
test eax, eax
je 0x1017a2d
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x107beec]
mov eax, dword [0x1007840]
imul eax, ecx
push 0x40
push eax
push 0x1084008
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10179ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10179e0
mov eax, 0x54f
test eax, eax
jle 0x1017a2f
and eax, 0xffff
or eax, 0x80070000
jmp 0x1017a2f
xor edx, edx
mov eax, dword [0x107beec]
test eax, eax
jbe 0x1017a2d
mov ecx, dword [0x1007840]
mov eax, dword [0x1007840]
imul eax, edx
test ecx, ecx
lea eax, [eax + 0x1084008]
je 0x1017a18
mov byte [eax], 0
inc eax
dec ecx
jne 0x1017a11
mov eax, dword [0x107beec]
mov dword [edx*4 + 0x108e3bc], 0xc4a6
inc edx
cmp edx, eax
jb 0x10179f9
xor eax, eax
test eax, eax
jl 0x1017a8d
mov ecx, dword [0x108e478]
test ecx, ecx
je 0x1017a76
mov eax, dword [0x108e470]
lea edx, [eax + 0x108e4a0]
add eax, dword [0x108e474]
mov dword [0x108e488], edx
lea edx, [eax + 0x108e4a0]
mov dword [0x108e480], 0x108e4a0
mov dword [0x108e490], edx
lea eax, [eax + ecx + 0x108e4a0]
mov dword [0x108e498], eax
and dword [ebp - 4], 0
push edi
lea edi, [ebp - 4]
mov eax, 0x25aee2aa
mov eax, dword [ebp - 4]
test eax, eax
pop edi
jl 0x1017a8d
xor eax, eax
leave
ret
Function at 0x1023dc6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x108e3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x74]
push eax
mov ebx, ecx
call fcn.01025966
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01026325
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
cmp word [esi], 0
je 0x1023e38
push edi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1023e12
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call fcn.01026325
add esi, edi
cmp word [esi], 0
jne 0x1023e0d
pop edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01026425
push 0x14
pop eax
jmp 0x1023e84
test eax, eax
jne 0x1023e76
lea eax, [ebp - 0x74]
push eax
call fcn.01025966
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01026325
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.01026425
push 0x14
pop eax
lea ecx, [ebp - 4]
sub ecx, eax
mov cl, byte [ecx]
mov byte [ebx], cl
inc ebx
dec dword [ebp + 8]
dec eax
cmp dword [ebp + 8], 0
jne 0x1023e4a
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0106d4c3
leave
ret 4

Function at 0x1025966
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x108d420], 0
push ebx
jne 0x10259e3
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x10259d7
cmp dword [ebp - 8], 0x660
jae 0x10259d7
xor eax, eax
mov eax, dword [eax*4 + 0x108d00c]
mov dword [0x108d420], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10334f1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001b38
push 0x80000001
mov dword [ebp - 0x2d8], edi
mov dword [ebp - 0x2c4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10336fc
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x2c0]
push eax
push ebx
push 0x1001c04
push dword [ebp - 0x2c4]
xor esi, esi
inc esi
mov dword [ebp - 0x2c0], esi
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2d0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
invalid
invalid

Function at 0x1033774
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x1001b38
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10337c2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1001c04
push dword [ebp - 4]
call esi
push 0x1001bdc
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret