joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000130d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x618], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x300013fd
push 0x25
pop ebx
push ebx
push edi
call fcn.30009957
pop ecx
test eax, eax
pop ecx
jne 0x30001391
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.30009081
add esp, 0xc
push 1
pop eax
jmp 0x30001439
mov eax, edi
push ebx
push eax
call fcn.30009957
pop ecx
test eax, eax
pop ecx
je 0x300013a6
add eax, 2
inc esi
jmp 0x30001393
mov eax, esi
push 2
cdq
pop ecx
idiv ecx
cmp edx, 1
je 0x300013fd
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.30009081
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.30009957
and word [eax], 0
lea edi, [eax + 2]
push ebx
push edi
call fcn.30009957
add esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x410]
and word [ebx], 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x30001401
xor eax, eax
jmp 0x30001439
add ebx, 2
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push str._s_s_s
push eax
call fcn.300098e8
push dword [ebp + 0x10]
lea eax, [ebp - 0x618]
push dword [ebp + 0xc]
push eax
call fcn.3000130d
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3000146c
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebx, ebx
push esi
cmp word [0x30036604], bx
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
mov edi, 0x103
mov ebp, 0x30036604
jne 0x3000149d
push edi
push ebp
push str.ProgramFiles
call esi
cmp word [0x30036604], bx
je 0x300014c0
test byte [esp + 0x18], 4
je 0x300014c0
push ebp
call fcn.300098cb
push eax
push ebp
push dword [esp + 0x20]
call fcn.30009a37
add esp, 0x10
test eax, eax
je 0x300015c0
cmp word [0x3003680c], bx
mov ebp, 0x3003680c
jne 0x300014e0
push edi
push ebp
push str.ProgramData
call esi
cmp word [0x3003680c], bx
je 0x30001503
test byte [esp + 0x18], 8
je 0x30001503
push ebp
call fcn.300098cb
push eax
push ebp
push dword [esp + 0x20]
call fcn.30009a37
add esp, 0x10
test eax, eax
je 0x300015c0
cmp word [0x30036a14], bx
mov ebp, 0x30036a14
jne 0x30001523
push edi
push ebp
push str.SystemRoot
call esi
cmp word [0x30036a14], bx
je 0x30001542
test byte [esp + 0x18], 1
je 0x30001542
push ebp
call fcn.300098cb
push eax
push ebp
push dword [esp + 0x20]
call fcn.30009a37
add esp, 0x10
test eax, eax
je 0x300015c0
cmp word [0x30036c1c], bx
mov ebp, 0x30036c1c
jne 0x30001562
push edi
push ebp
push str.TEMP
call esi
cmp word [0x30036c1c], bx
je 0x30001581
test byte [esp + 0x18], 2
je 0x30001581
push ebp
call fcn.300098cb
push eax
push ebp
push dword [esp + 0x20]
call fcn.30009a37
add esp, 0x10
test eax, eax
je 0x300015c0
cmp word [0x30036e24], bx
mov ebp, 0x30036e24
jne 0x300015a1
push edi
push ebp
push str.AppData
call esi
cmp word [0x30036e24], bx
je 0x300015c5
test byte [esp + 0x18], 0x10
je 0x300015c5
push ebp
call fcn.300098cb
push eax
push ebp
push dword [esp + 0x20]
call fcn.30009a37
add esp, 0x10
test eax, eax
jne 0x300015c5
push 1
pop eax
jmp 0x300015c7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x3000161b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
push esi
mov dword [ebp - 4], edi
call fcn.300098cb
cmp eax, 3
pop ecx
jb 0x30001669
push 0x3a
push esi
call fcn.30009957
pop ecx
test eax, eax
pop ecx
je 0x3000165c
push 0x3a
push esi
call fcn.30009957
mov ax, word [eax]
pop ecx
cmp ax, word [esi + 2]
pop ecx
jne 0x30001669
cmp word [esi], 0x5c
jne 0x30001670
cmp word [esi + 2], 0x5c
je 0x30001670
mov eax, edi
jmp 0x30001720
and word [ebp - 0x20c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.30009081
lea eax, [ebp - 0x20c]
push 0x3a
push eax
call fcn.30009957
xor esi, esi
add esp, 0x14
cmp eax, esi
je 0x300016b8
mov word [eax + 4], si
jmp 0x300016e3
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.30009957
add eax, 4
push 0x5c
push eax
call fcn.30009957
add eax, 2
push 0x5c
push eax
call fcn.30009957
add esp, 0x18
mov word [eax + 2], si
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop ecx
sub eax, ecx
je 0x30001716
dec eax
je 0x30001711
dec eax
je 0x3000170c
dec eax
je 0x30001716
dec eax
jne 0x3000171d
mov dword [ebp - 4], 3
jmp 0x3000171d
mov dword [ebp - 4], ecx
jmp 0x3000171d
mov dword [ebp - 4], esi
jmp 0x3000171d
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x300023f3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ee850
push 0x30009f3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, al
cmp eax, 6
jae 0x30002440
mov eax, dword [ebp + 8]
mov dword [eax], 0x3000
push 1
pop eax
jmp 0x300024ec
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x44]
push ecx
push 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x30002465
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x300024e0
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push 0x19
push dword [ebp - 0x44]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x3000248c
call ebx
mov dword [ebp - 0x3c], eax
cmp eax, 0x7a
jne 0x300024b3
push dword [ebp - 0x38]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x300024b3
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
push edi
push 0x19
push dword [ebp - 0x44]
call esi
test eax, eax
jne 0x300024b7
call ebx
jmp 0x300024e0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
dec al
movzx eax, al
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.300024fe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x300028f5
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.3000a100
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x30002973
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x120c]
push 0x1000
push eax
push dword [ebp + 0xc]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x30002973
test dword [ebp - 4], 0xfffffffc
jbe 0x30002973
lea esi, [ebp - 0x120c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [esi]
push dword [ebp + 0xc]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x30002965
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.3000a014
pop ecx
test eax, eax
pop ecx
je 0x30002979
mov eax, dword [ebp - 4]
inc edi
shr eax, 2
add esi, 4
cmp edi, eax
jb 0x30002936
xor eax, eax
pop edi
pop esi
leave
ret
push 1
pop eax
jmp 0x30002975
Function at 0x30003350
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push edi
mov esi, 0x104
mov edi, 0x3003a534
push esi
push edi
push str.SystemRoot
call ebp
push esi
push 0x3003b77c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
call edi
mov ebx, 0x3003a73c
push esi
push ebx
push str.USERPROFILE
call ebp
test eax, eax
jbe 0x30003418
push esi
push 0x3003b984
push ebx
call edi
push ebx
push str._sLocal_Settings
push 0x3003a944
call fcn.300098e8
add esp, 0xc
push esi
push 0x3003bb8c
push 0x3003a944
call edi
push ebx
push str._sApplication_Data
push 0x3003ab4c
call fcn.300098e8
add esp, 0xc
push esi
push 0x3003bd94
push 0x3003ab4c
call edi
push ebx
push str._sCookies
push 0x3003ad54
call fcn.300098e8
add esp, 0xc
push esi
push 0x3003bf9c
push 0x3003ad54
call edi
push ebx
mov ebx, 0x3003af5c
push str._sAppData
push ebx
call fcn.300098e8
add esp, 0xc
push esi
push 0x3003c1a4
push ebx
call edi
mov ebx, 0x3003b164
push esi
push ebx
push str.ProgramFiles
call ebp
push esi
push 0x3003c3ac
push ebx
call edi
mov ebx, 0x3003b36c
push esi
push ebx
push str.ProgramData
call ebp
push esi
push 0x3003c5b4
push ebx
call edi
mov ebx, 0x3003b574
push esi
push ebx
push str.TEMP
call ebp
push esi
push 0x3003c7bc
push ebx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x30003c67
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x3003cdd8], 0
push esi
mov esi, dword [esp + 8]
jne 0x30003c7a
call 0xa6003c2e
xor eax, eax
cmp dword [esp + 0x10], eax
jle 0x30003ca7
mov ecx, dword [esp + 0xc]
mov edx, esi
and edx, 0xff
movzx ecx, byte [eax + ecx]
xor ecx, edx
shr esi, 8
mov ecx, dword [ecx*4 + 0x3003c9d8]
xor esi, ecx
inc eax
cmp eax, dword [esp + 0x10]
jl 0x30003c82
mov eax, esi
pop esi
ret

Function at 0x30003cc0
Capabilities:
Delete file

Disassembly:
push esi
push edi
push 0x300352b4
push dword [esp + 0x10]
call fcn.3000aa28
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x30003d07
push 2
push 0
push esi
call fcn.3000a93e
push esi
call fcn.3000a7bb
push esi
mov edi, eax
call fcn.3000a73e
push 0x300352ac
push dword [esp + 0x24]
call fcn.3000aa28
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x30003d0b
xor al, al
jmp 0x30003d5f
push 0
push 0
push esi
call fcn.3000a93e
add esp, 0xc
test edi, edi
jle 0x30003d4c
push ebx
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ
push ebx
call fcn.30009850
cmp edi, eax
pop ecx
jae 0x30003d31
mov eax, edi
jmp 0x30003d38
push ebx
call fcn.30009850
pop ecx
push esi
push eax
push 1
push ebx
call fcn.3000a605
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x30003d22
pop ebx
push esi
call fcn.3000a73e
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop edi
pop esi
ret
Function at 0x30003d8f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
mov word [ebp - 0x410], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x618], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x616]
push 0x25
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push edi
call fcn.30009957
pop ecx
test eax, eax
pop ecx
jne 0x30003e09
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.30009081
add esp, 0xc
push 1
pop eax
jmp 0x30003eb5
xor esi, esi
mov eax, edi
push 0x25
push eax
call fcn.30009957
pop ecx
cmp eax, ebx
pop ecx
je 0x30003e21
add eax, 2
inc esi
jmp 0x30003e0d
mov eax, esi
push 2
cdq
pop ecx
idiv ecx
cmp edx, 1
je 0x30003e79
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.30009081
lea eax, [ebp - 0x208]
push 0x25
push eax
call fcn.30009957
lea edi, [eax + 2]
push 0x25
push edi
mov word [eax], bx
call fcn.30009957
add esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x410]
and word [ebx], 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x30003e7d
xor eax, eax
jmp 0x30003eb5
add ebx, 2
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push str._s_s_s
push eax
call fcn.300098e8
push dword [ebp + 0x10]
lea eax, [ebp - 0x618]
push dword [ebp + 0xc]
push eax
call fcn.30003d8f
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret

Function at 0x30003eba
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.30003d8f
add esp, 0xc
test eax, eax
je 0x30003faa
push 0x5c
push dword [ebp + 8]
call fcn.30009957
pop ecx
test eax, eax
pop ecx
je 0x30003fae
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.30009980
cmp byte [ebp + 0xc], 1
pop ecx
pop ecx
mov ebx, eax
jne 0x30003f2e
and word [ebx], 0
lea eax, [ebp - 0x208]
push eax
call fcn.30003d62
test al, al
pop ecx
jne 0x30003fae
mov word [ebx], 0x5c
lea edi, [ebp - 0x208]
test edi, edi
je 0x30003fae
push 0x5c
push edi
call fcn.30009957
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x30003f9a
cmp byte [ebp + 0xc], al
jne 0x30003fae
xor edi, edi
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x30003f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x30003faa
test esi, esi
je 0x30003f8e
mov word [esi], 0x5c
cmp byte [ebp + 0xc], 1
jne 0x30003f4a
cmp esi, ebx
je 0x30003fae
jmp 0x30003f4a
cmp word [esi - 2], 0x3a
lea edi, [esi + 2]
je 0x30003f4a
and word [esi], 0
jmp 0x30003f65
xor eax, eax
jmp 0x30003fb1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30003fcd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x410]
push 0x300352bc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.30009081
add esp, 0xc
mov al, 1
pop edi
leave
ret

Function at 0x30004151
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
xor esi, esi
mov byte [ebp - 0xf], 0x65
cmp dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x10], 0x25
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x6d
mov byte [ebp - 7], 0x3c
mov byte [ebp - 8], 0x7c
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x59
mov byte [ebp - 3], 0x73
mov byte [ebp - 4], 0x4b
mov byte [ebp - 2], 0x24
mov byte [ebp - 1], 0x5e
je 0x300041bb
push 0x300352b4
push dword [ebp + 8]
call fcn.3000aa28
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x300041c3
or eax, 0xffffffff
jmp 0x30004279
push 2
push esi
push ebx
call fcn.3000a93e
add esp, 0xc
mov esi, 0x2c8
push 1
push 0xfffffd38
push ebx
call fcn.3000a93e
add esp, 0xc
test eax, eax
jne 0x3000426f
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.300090c0
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.3000aa3b
add esp, 0x1c
cmp eax, esi
jne 0x3000426f
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.30004062
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.30004037
lea eax, [ebp - 0x2dc]
push eax
call fcn.3000408f
add esp, 0x1c
test al, al
je 0x3000426f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x30004253
test dword [ebp - 0x2d8], eax
je 0x30004256
inc dword [ebp - 0x14]
mov eax, 0xfffffd38
push 1
sub eax, dword [ebp - 0x18]
push eax
push ebx
call fcn.3000a93e
add esp, 0xc
jmp 0x300041d4
push ebx
call fcn.3000a73e
mov eax, dword [ebp - 0x14]
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x3000427d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
xor esi, esi
push esi
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
call fcn.30004151
pop ecx
cmp eax, esi
pop ecx
jle 0x300042fd
cmp dword [ebp + 0xc], eax
jge 0x300042fd
sub eax, dword [ebp + 0xc]
push 0x300352b4
push dword [ebp + 8]
mov byte [ebp - 0xf], 0x65
dec eax
mov byte [ebp - 0x10], 0x25
mov dword [ebp + 0xc], eax
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x6d
mov byte [ebp - 7], 0x3c
mov byte [ebp - 8], 0x7c
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x59
mov byte [ebp - 3], 0x73
mov byte [ebp - 4], 0x4b
mov byte [ebp - 2], 0x24
mov byte [ebp - 1], 0x5e
call fcn.3000aa28
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x30004304
xor al, al
jmp 0x300043c9
push 2
push esi
push ebx
call fcn.3000a93e
add esp, 0xc
mov esi, 0x2c8
push 1
push 0xfffffd38
push ebx
call fcn.3000a93e
add esp, 0xc
test eax, eax
jne 0x300043bb
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.300090c0
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.3000aa3b
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.30004062
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.30004037
lea eax, [ebp - 0x2dc]
push eax
call fcn.3000408f
add esp, 0x38
test al, al
je 0x300043bb
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x300043a2
inc dword [ebp - 0x14]
mov eax, 0xfffffd38
sub eax, dword [ebp - 0x18]
push 1
push eax
push ebx
call fcn.3000a93e
add esp, 0xc
jmp 0x30004315
lea eax, [ebp - 0x2dc]
push esi
push eax
push dword [ebp + 0x10]
call fcn.30009510
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x300043bf
and byte [ebp + 0xf], 0
push ebx
call fcn.3000a73e
mov al, byte [ebp + 0xf]
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x30004b5a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x30004be2
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.30009510
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x30004ba5
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x30004bc7
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x30004cb2
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.30004cb7
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x30004c2d
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x30004c41
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x30004b66
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x30004cb2
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp ecx, edi
jae 0x30004c81
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x30004c66
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.300090c0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x30004cb2
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x30004cb2
sub edi, ecx
sub eax, ecx
add edi, 0x102
cmp edi, eax
jbe 0x30004c9b
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.300090c0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x3000d61a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x30035ac8
cmp edx, dword [eax]
je 0x3000d63c
add eax, 8
inc ecx
cmp eax, 0x30035b58
jl 0x3000d62d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x30035ac8]
jne 0x3000d76a
mov eax, dword [0x3003ce0c]
cmp eax, 1
je 0x3000d744
test eax, eax
jne 0x3000d66d
cmp dword [0x3003ce10], 1
je 0x3000d744
cmp edx, 0xfc
je 0x3000d76a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x3000d6a4
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.3000ef40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.30009850
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x3000d6e7
lea eax, [ebp - 0x1a4]
push eax
call fcn.30009850
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x30032ccc
push edi
call fcn.3000fdf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.3000ef40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.3000ef50
lea eax, [ebp - 0xa0]
push 0x30032cac
push eax
call fcn.3000ef50
push dword [esi + 0x30035acc]
lea eax, [ebp - 0xa0]
push eax
call fcn.3000ef50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.3001039e
add esp, 0x2c
pop edi
jmp 0x3000d76a
lea eax, [ebp + 8]
lea esi, [esi + 0x30035acc]
push 0
push eax
push dword [esi]
call fcn.30009850
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x30014800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x3003f014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x30014898
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x30014878
xor eax, eax
push ebp
push 0x30014871
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x300148b4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30014878
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x3003f014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x3003f014], ax
mov esp, ebp
pop ebp
ret