joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30110942
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3818
call fcn.301374d4
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.MSVCR80.dll_memmove]
push edi
push 6
mov dword [ebp - 0x3814], eax
lea eax, [ebp - 0x3804]
push 0x300070b0
push eax
call esi
add esp, 0xc
lea edi, [ebp - 0x37fe]
jmp 0x30110a4c
push eax
call fcn.30123986
mov dword [ebp - 0x3810], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x301109c7
push 0xc00
lea eax, [ebp - 0x1804]
push eax
push dword [ebx + 8]
call fcn.30114b60
push eax
call fcn.3012a7be
test eax, eax
je 0x30110a9a
lea eax, [ebp - 0x1804]
push eax
mov dword [ebp - 0x380c], eax
call fcn.30123986
test eax, eax
mov dword [ebp - 0x3808], eax
jne 0x301109e3
cmp dword [ebx + 8], 0xffffffff
je 0x30110a49
mov ecx, edi
lea edx, [ebp - 0x3804]
sub ecx, edx
sar ecx, 1
add ecx, eax
mov eax, dword [ebp - 0x3810]
lea ecx, [ecx + eax + 2]
cmp ecx, 0x1000
jg 0x30110a9e
add eax, eax
push eax
push dword [ebx]
mov dword [ebp - 0x3810], eax
push edi
call esi
mov eax, dword [ebp - 0x3808]
add edi, dword [ebp - 0x3810]
add eax, eax
push eax
push dword [ebp - 0x380c]
mov dword [ebp - 0x3808], eax
push edi
call esi
add edi, dword [ebp - 0x3808]
push 4
push 0x30003cf0
push edi
call esi
add esp, 0x24
add edi, 4
add ebx, 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x3011098c
and word [edi], ax
push eax
lea eax, [ebp - 0x3818]
push eax
lea eax, [ebp - 0x3804]
sub edi, eax
sar edi, 1
lea eax, [edi + edi + 2]
push eax
lea eax, [ebp - 0x3804]
push eax
push dword [ebp - 0x3814]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 8
xor eax, eax
jmp 0x30110a89
push 0
push 0x71737278
call fcn.3010aa60
jmp 0x30110a9a

Function at 0x30112117
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x3011217d
mov esi, dword [ebp + 0xc]
cmp esi, 0x104
jb 0x3011217d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x3000e57c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3011217d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
push 0
push 0
push 0x3000e574
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x3011217d
xor eax, eax
inc eax
jmp 0x3011217f
xor eax, eax
pop esi
leave
ret
Function at 0x301138f7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
call fcn.3010aef5
test eax, eax
jne 0x30113914
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x30]
push ebx
push esi
push edi
push eax
push 0x11
call fcn.3010bae9
push dword [ebp - 0x1c]
push 0x12
call fcn.3010bae9
push 0x3000e92c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x30113a16
push 0x3000e90c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30113a16
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x30113a16
push dword [ebp - 4]
call fcn.301089da
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x30113a0e
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x30113a0e
mov eax, dword [ebp - 4]
push 0x18
xor edx, edx
pop ecx
div ecx
xor ebx, ebx
and dword [ebp - 8], ebx
xor esi, esi
test eax, eax
jbe 0x30113a0e
mov edx, edi
mov edi, eax
mov eax, dword [edx + 4]
sub eax, 0
je 0x301139c6
dec eax
dec eax
jne 0x301139d7
push dword [edx]
call fcn.3011321f
cmp ebx, eax
pop ecx
ja 0x301139d7
mov ebx, eax
jmp 0x301139d7
push dword [edx]
inc dword [ebp - 8]
call fcn.3011321f
cmp esi, eax
pop ecx
ja 0x301139d7
mov esi, eax
add edx, 0x18
dec edi
jne 0x301139aa
test esi, esi
je 0x301139ec
push esi
push 0x19e1
call fcn.3010bae9
test ebx, ebx
je 0x301139fb
push ebx
push 0x19e2
call fcn.3010bae9
cmp dword [ebp - 8], 0
je 0x30113a0e
push dword [ebp - 8]
push 0x19e0
call fcn.3010bae9
push dword [ebp - 0xc]
call fcn.30108a37
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x30113a31
push esi
push 0x72766c74
call fcn.3010aa60
cmp dword [ebp - 0x1c], esi
jbe 0x30113ac4
push 0x3000e8f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
jne 0x30113a4a
push esi
push 0x3366646b
jmp 0x30113a62
push 0x3000e8d8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x30113a69
push eax
push 0x3366646c
call fcn.3010aa60
jmp 0x30113ab9
mov eax, dword [ebp - 0x1c]
push 0x18
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.301089da
mov esi, eax
test esi, esi
je 0x30113ab9
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x18
push eax
push esi
push 0
push 0
push 0xb
call edi
test eax, eax
je 0x30113aa8
push 0
push 0x72766c76
call fcn.3010aa60
jmp 0x30113ab2
push dword [esi + 4]
push 0x10
call fcn.3010bae9
push esi
call fcn.300ee73d
pop ecx
test ebx, ebx
je 0x30113ac4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30113b2c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
xor ebx, ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
mov word [ebp - 0x20c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x30113be1
push esi
push 0x33753467
call fcn.3010aa60
mov edi, 0x3a98
push edi
push 0xfa1
call fcn.3010bae9
push edi
push 0xfa2
call fcn.3010bae9
push edi
push 0xfa3
call fcn.3010bae9
push edi
push 0xfa4
call fcn.3010bae9
cmp ebx, esi
je 0x30113bd2
push ebx
call fcn.300ee73d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x30113b96
push edi
call fcn.301089da
mov ebx, eax
cmp ebx, esi
jne 0x30113c0e
push esi
push 0x33753468
jmp 0x30113b91
push ebx
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x30113c2c
push esi
push 0x33753469
jmp 0x30113b91
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x30002304
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x30113c54
push esi
push 0x3375346a
jmp 0x30113b91
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xa]
push eax
push 0xfa1
call fcn.3010bae9
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 8]
push eax
push 0xfa2
call fcn.3010bae9
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xe]
push eax
push 0xfa3
call fcn.3010bae9
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 0xc]
push eax
jmp 0x30113bbd
Function at 0x30115b9e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], ebx
jne 0x30115bd7
push ebx
push 0x386f706a
call fcn.3010aa60
xor eax, eax
jmp 0x30115d3f
cmp dword [0x3027e6b4], ebx
je 0x30115bee
mov eax, dword [0x3022fc30]
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x30115d3f
lea eax, [ebp - 0x50]
push eax
push 0x20008
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x30115c1d
push ebx
push 0x386f706b
call fcn.3010aa60
mov dword [ebp - 0x4c], ebx
jmp 0x30115d18
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x50]
call esi
test eax, eax
je 0x30115c3d
push ebx
push 0x386f706c
jmp 0x30115c4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x30115c5b
push ebx
push 0x386f706d
call fcn.3010aa60
mov dword [ebp - 0x4c], ebx
jmp 0x30115d17
push dword [ebp - 0x54]
call fcn.301089da
mov edi, eax
cmp edi, ebx
jne 0x30115c71
push ebx
push 0x386f706e
jmp 0x30115cbf
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push edi
push 2
push dword [ebp - 0x50]
call esi
test eax, eax
jne 0x30115c8c
push ebx
push 0x386f706f
jmp 0x30115cbf
push 0x43
lea eax, [ebp - 0x47]
push ebx
push eax
mov byte [ebp - 0x48], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0xb
mov dword [ebp - 0x60], 0x44
call sub.ADVAPI32.dll_CreateWellKnownSid
test eax, eax
jne 0x30115cc9
push ebx
push 0x386f7070
call fcn.3010aa60
mov dword [ebp - 0x4c], ebx
jmp 0x30115d09
cmp dword [edi], ebx
mov dword [ebp - 0x58], ebx
jbe 0x30115d09
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x30115cef
push dword [esi]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x30115cfe
inc dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
add esi, 8
cmp eax, dword [edi]
jb 0x30115cd3
jmp 0x30115d09
mov ecx, dword [ebp - 0x5c]
xor eax, eax
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ecx], eax
cmp edi, ebx
je 0x30115d14
push edi
call fcn.300ee73d
pop ecx
mov edi, dword [ebp - 0x5c]
pop esi
cmp dword [ebp - 0x50], ebx
je 0x30115d26
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x30115d3f
mov dword [0x3027e6b4], 1
mov ecx, dword [edi]
mov dword [0x3022fc30], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret
Function at 0x30115eaa
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x30115f4b
cmp dword [ebp - 0x90], 2
mov edx, dword [ebp - 0x98]
mov dword [0x3027acd8], edx
jne 0x30115f3f
mov eax, dword [ebp - 0x9c]
cmp eax, 5
mov cx, word [ebp - 0xc]
mov dword [0x3027acd4], eax
mov word [0x3027acdc], cx
jne 0x30115f29
xor eax, eax
inc eax
cmp edx, eax
jb 0x30115f4b
test cx, cx
mov dword [0x3027ace0], eax
ja 0x30115f1d
cmp edx, eax
jbe 0x30115f22
mov dword [0x3027ace4], eax
cmp cx, ax
jbe 0x30115f4b
jmp 0x30115f38
jbe 0x30115f4b
xor eax, eax
inc eax
mov dword [0x3027ace0], eax
mov dword [0x3027ace4], eax
mov dword [0x3027ace8], eax
jmp 0x30115f4b
push 0
push 0x77617376
call fcn.3010aa60
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
mov dword [0x3022e0f8], eax
call fcn.30136bd1
leave
ret

Function at 0x3011611e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x3027ea60], 0
je 0x30116141
mov eax, dword [0x3027ea5c]
jmp 0x301161c0
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
je 0x3011617d
test byte [ebp - 8], 0x10
je 0x3011617d
xor eax, eax
inc eax
jmp 0x301161b0
mov ecx, dword [0x3027acd4]
xor eax, eax
cmp ecx, 5
mov dword [0x3027ea5c], eax
jg 0x30116199
jne 0x301161b5
cmp dword [0x3027acd8], eax
jbe 0x301161b5
lea eax, [ebp - 0xa0]
push eax
call esi
test eax, eax
je 0x301161ae
test word [ebp - 8], 0x100
jne 0x30116178
xor eax, eax
mov dword [0x3027ea5c], eax
mov dword [0x3027ea60], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30136bd1
leave
ret
Function at 0x30116539
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp dword [0x3022fc40], 0xffffffff
movzx eax, ax
mov dword [ebp - 0x44], eax
jne 0x30116682
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0x30005f5c
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], ebx
mov dword [0x3022fc40], ebx
call fcn.30109a0a
test eax, eax
jne 0x30116682
cmp dword [ebp - 0x34], ebx
je 0x30116682
push 9
pop edi
push 0x12
pop esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
jmp 0x30116663
inc dword [ebp - 0x40]
cmp dword [ebp - 0x48], 1
jne 0x30116679
cmp dword [ebp - 0x3c], 8
jne 0x30116679
cmp dword [ebp - 0x38], esi
jne 0x30116679
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 8], bx
call fcn.30126254
test eax, eax
je 0x3011664c
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x4c], eax
movzx eax, word [ebp - 0x30]
push eax
call fcn.3012b99c
test eax, eax
je 0x3011664c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.30126254
test eax, eax
je 0x3011664c
movzx ebx, word [ebp - 0x30]
push ebx
call fcn.3012b99c
test eax, eax
je 0x3011664a
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x3011664a
mov eax, dword [0x3022fc40]
cmp eax, 0x10
jae 0x3011664a
mov cx, word [ebp - 0x4c]
mov word [eax*2 + 0x3027ea70], cx
inc eax
mov dword [0x3022fc40], eax
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x34]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
call fcn.3010ad3f
test eax, eax
je 0x301165b8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x3022fc40], ebx
jle 0x301166f3
mov ax, word [ebp - 0x44]
cmp ax, word [ebx*2 + 0x3027ea70]
jne 0x301166ea
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x301166ea
lea eax, [ebp - 0x18]
push eax
call fcn.30123986
cmp eax, 8
jne 0x301166ea
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.30126254
test eax, eax
je 0x301166ea
movzx esi, word [ebp - 0x30]
movzx edi, word [ebp - 0x30]
push esi
call fcn.3012b99c
test eax, eax
je 0x301166ea
push 2
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x301166ea
movzx eax, di
mov dword [ebp - 0x44], eax
inc ebx
cmp ebx, dword [0x3022fc40]
jl 0x3011668a
mov ecx, dword [ebp - 4]
mov ax, word [ebp - 0x44]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret
Function at 0x301238f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x30123980
mov eax, dword [ebp + 8]
test eax, 3
je 0x30123933
cmp byte [eax], 0
je 0x30123977
lea eax, [eax + 1]
test eax, 3
je 0x30123933
cmp byte [eax], 0
je 0x30123977
lea eax, [eax + 1]
test eax, 3
je 0x30123933
cmp byte [eax], 0
je 0x30123977
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x30123933
test cl, cl
lea eax, [eax - 4]
je 0x30123977
test ecx, 0xff00
lea eax, [eax + 1]
je 0x30123977
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x30123977
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x30123977
lea eax, [eax + 1]
jmp 0x30123933
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x30123986
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 4], eax
je 0x301239f8
mov eax, dword [ebp + 8]
test eax, 3
je 0x301239b7
cmp word [eax], 0
je 0x301239b0
lea eax, [eax + 2]
test eax, 3
je 0x301239b7
jmp 0x3012399e
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x301239f2
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x301239b7
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x301239f2
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x301239f2
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x301239b7
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x3012b12d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3012b147
test al, 0x10
je 0x3012b147
xor eax, eax
inc eax
jmp 0x3012b149
xor eax, eax
pop ebp
ret 4
Function at 0x3012b235
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
push 0x301f98b0
call fcn.3013765f
mov edx, dword [ebp + 8]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x30], ecx
mov esi, 0x30021980
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [ebx], esi
mov dword [eax], esi
cmp ecx, esi
je 0x3012b275
mov dword [ecx], esi
mov dword [ebx], esi
mov dword [eax], esi
test byte [ebp + 0x24], 8
je 0x3012b2d0
push 0x17
push dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x3012b4b6
mov dword [ebp - 4], esi
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp + 0x24]
xor edx, edx
inc edx
and ecx, edx
mov dword [ebp - 0x2c], ecx
je 0x3012b2dc
cmp eax, dword [ebp + 0x1c]
je 0x3012b2dc
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x3012b4b6
mov dword [eax], edx
jmp 0x3012b4b6
movzx eax, word [ebp + 0x10]
push eax
movzx eax, word [ebp - 0x2c]
push eax
jmp 0x3012b284
cmp eax, 0x200000
ja 0x3012b4b6
mov dword [ebp - 4], edx
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
cmp eax, esi
je 0x3012b4af
push 0xfffffffffffffffe
pop edi
mov dword [ebp - 4], edi
mov dword [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
cmp eax, esi
jne 0x3012b322
mov dword [ebp - 4], edi
jmp 0x3012b4b6
mov dword [ebp - 4], edi
test byte [ebp + 0x24], 2
je 0x3012b3bd
cmp dword [0x3027eab0], esi
jne 0x3012b352
push 0xa
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.3012c3a3
mov dword [0x3027eaac], eax
mov dword [0x3027eab0], 1
mov dword [ebp - 4], 3
mov edi, dword [ebp - 0x40]
push edi
push dword [ebp - 0x34]
push dword [0x3027eaac]
call fcn.3012c3a3
cmp eax, dword [ebp + 0x20]
je 0x3012b386
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x3012b4af
mov dword [eax], 2
jmp 0x3012b4af
mov dword [ebp - 4], 0xfffffffe
jmp 0x3012b3c0
mov edi, dword [ebp - 0x40]
test byte [ebp + 0x24], 4
je 0x3012b43c
mov dword [ebx], esi
mov eax, dword [ebp - 0x38]
mov dword [eax], esi
cmp edi, esi
je 0x3012b446
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx], eax
cmp eax, esi
jne 0x3012b3fe
cmp dword [ebp - 0x2c], esi
je 0x3012b4b6
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x3012b4b6
mov dword [eax], 1
jmp 0x3012b4b6
mov dword [ebp - 4], 4
push edi
push dword [ebp - 0x34]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x3012b441
mov eax, dword [ebp - 0x34]
mov dword [ebx], eax
mov eax, dword [ebp - 0x38]
mov dword [eax], edi
xor eax, eax
inc eax
jmp 0x3012b4b8
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.301376a7
ret
Function at 0x3012c3a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.3012c2bb

Function at 0x3012d071
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call dword [sym.imp.MSVCR80.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30136bd1
leave
ret

Function at 0x301307fe
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
xor ecx, ecx
mov eax, 0x3027f184
inc ecx
lock xadd dword [eax], ecx
inc ecx
cmp ecx, 1
jne 0x3013084f
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x28]
mov dword [0x3027f188], eax
mov ax, word [ebp - 0x30]
mov word [0x3027f18c], ax
mov eax, dword [ebp - 0x18]
mov dword [0x3027f190], eax
mov eax, dword [ebp - 0x40]
mov dword [0x3027f194], eax
mov eax, esi
pop esi
leave
ret