joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6fa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x56eb30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004d7370
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.004d7370
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 1
call fcn.004d73e0
lea ecx, [esp + 0x10]
call fcn.0045c520
cmp eax, 1
jae 0x4d7048
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x4d70b3
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4d70b3
push esi
push edi
call ebx
push esi
lea ecx, [esp + 0x14]
call fcn.004d73e0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
call fcn.0045c520
cmp eax, 1
jb 0x4d70b3
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.004d6e40
test eax, eax
je 0x4d70b3
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.004d7120
mov edi, dword [esp + 0x44]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.004d7440
push edi
lea ecx, [esp + 0x24]
call fcn.004d7460
push esi
lea ecx, [esp + 0x24]
call fcn.004d7500
push str..tmp
lea ecx, [esp + 0x24]
call fcn.004d7460
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.004d6e20
test eax, eax
je 0x4d70e9
inc esi
cmp esi, 0x7a0a1f00
jb 0x4d706a
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.004d7390
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d7390
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
call fcn.004d7440
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.004d7390
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d7390
mov eax, 1
jmp 0x4d70d4
Function at 0x4d7870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56ebe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.004d7370
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.004d73e0
push 0
mov ecx, esi
call fcn.004d77f0
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x4d79a8
lea ecx, [esp + 0xc]
call fcn.0045c520
cmp eax, 1
jae 0x4d78f7
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d7390
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x4d7944
push 0
lea ecx, [esp + 0x10]
call fcn.00469c40
push eax
push edi
mov ecx, 0xef7a04
call fcn.004d6fa0
test eax, eax
jne 0x4d794c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d7390
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.004d73e0
push edi
mov ecx, 0xef7a04
call fcn.004d6f00
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.0045c510
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4d79a8
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x4d79a8
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x4d79d8
push 1
mov ecx, esi
call fcn.004d77f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d7390
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.004d7390
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x4d8340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.004d73e0
pop edi
add esp, 0x104
ret 4
Function at 0x4d8cd0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4d8d19
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4d9190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56ee40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d8d40
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d8dc0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d8dc0
lea ecx, [esi + 0xc]
call fcn.005582f7
lea ecx, [esi + 0x10]
call fcn.005582f7
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004da350
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004da350
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004da350
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0055836c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0055836c
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4da540
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4da5a6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4da5a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4da587
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4e1320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xf286c8]
xor edx, edx
cmp eax, edx
jne 0x4e1346
xor eax, eax
mov byte [eax + 0xf285c8], al
inc eax
cmp eax, 0x100
jl 0x4e132e
mov dword [0xf286c8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xf285c8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e13d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e13aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e1378
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e13e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e1433
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e141a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7dc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56f26e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004e86e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xe751d4
call fcn.005580ad
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4e7e53
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005580ad
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4e7e4c
push 0
mov ecx, eax
call fcn.004def80
mov dword [esi + 0xc], eax
jmp 0x4e7e55
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4e7e55
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4f5400
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4f5433
push esi
call fcn.004fa250
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4f542c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4f54b9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4f54a2
mov eax, dword [esi + 8]
test eax, eax
je 0x4f5457
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4f549e
cmp eax, 2
je 0x4f54a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4f544a
cmp eax, 3
je 0x4f547d
cmp eax, 1
jne 0x4f544a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4f544a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4f544a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004f54f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4f54d9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004f54f0
add esp, 4
pop esi
ret
Function at 0x525f90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x525f9b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x52609e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0xe76928]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xe76928]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xe76928]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xe76928]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xe76928]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xe76928]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xe76928]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xe76928]
xor eax, edx
inc ecx
dec edi
jne 0x525fb6
pop edi
test esi, esi
je 0x5260c0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xe76928]
xor eax, edx
inc ecx
dec esi
jne 0x5260a2
pop esi
pop ebx
not eax
ret
Function at 0x55a7b5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x55a7ed
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005587c7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0055879f
jmp 0x55a7f9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x55c12f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x55c171
call fcn.005629e6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x55c171
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x55c168
xor eax, eax
jmp 0x55c179
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0055c17f
pop edi
pop esi
pop ebx
ret 4

Function at 0x562f16
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x562f44
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x562f62
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00562e7c
jmp 0x562f62
mov eax, dword [esi + 0x14]
test eax, eax
je 0x562f62
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00562e7c
test edi, edi
mov eax, edi
jne 0x562f4c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x56583e
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x565866
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x565877
push 2
call edi
test ax, ax
jge 0x565877
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00559deb
cmp dword [esi + 0x30], ebx
jne 0x565951
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00559deb
cmp eax, dword [esp + 0x34]
jne 0x565951
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5658ed
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x565932
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x565951
cmp eax, 0x205
je 0x565951
cmp eax, 0x201
je 0x565951
cmp eax, 0x204
je 0x565951
cmp eax, ebx
jne 0x565918
cmp dword [esp + 0x1c], 0x1b
je 0x565951
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0xf3a56c]
jbe 0x565947
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5658aa
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401209
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401220
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401255
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401251
cmp edi, eax
jae 0x401255
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401243
cmp edi, eax
jb 0x401259
xor eax, eax
jmp 0x401263
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x401733
push 0x80004005
call fcn.004010ef
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40173a
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40176a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x401831
xor eax, eax
cmp dword [ebp - 8], esi
je 0x4017b3
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x401831
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x401807
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0040176a
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x401844
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
je 0x4017db
cmp dword [ebp - 8], esi
je 0x401821
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x40183b
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x40184e
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x40183d
Function at 0x401c52
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x439977
call fcn.00434408
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4470f8]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x401caa
call fcn.004012aa
mov esi, eax
jmp 0x401dab
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x401cc7
call fcn.004012aa
jmp 0x401da0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x401cbd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x401d0d
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x401d03
lea eax, [ebp - 0x424]
call fcn.00414c10
mov eax, 0x8007000e
jmp 0x401dc6
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0041b846
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x401d31
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00416f9c
jmp 0x401d3d
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x401d58
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x401d69
mov esi, 0x8007000e
jmp 0x401da2
call dword [0x4470f8]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x401cbd
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.00402612
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x401dc4
lea eax, [ebp - 0x424]
call fcn.00414c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x40378c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00425a80
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4037e5
cmp dword [ebp - 0x110], 5
jae 0x4037e1
cmp dword [ebp - 0x110], 4
jne 0x4037e5
cmp dword [ebp - 0x10c], 0x5a
jb 0x4037e5
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x40cbe4
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x43926e
call fcn.00434408
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
push edi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x20]
mov dword [edi], ebx
call fcn.0040701a
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov byte [ebp - 4], 1
push edi
mov dword [esi], fcn.00413658
mov byte [esi + 0x2c], bl
call fcn.004153e1
fld qword [0x43f078]
or dword [esi + 0x44], 0xffffffff
or dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi], 0x43e9d8
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ecx
mov byte [esi + 0x7c], bl
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov byte [esi + 0x98], bl
mov dword [esi + 0x58], 0x43e9a4
mov dword [esi + 0x88], 0x2710
mov dword [esi + 0x9c], 0x64
lea eax, [esi + 0xa0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
push 0x10
pop edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ecx
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xdc]
mov dword [eax], fcn.004081c8
mov dword [eax + 4], ebx
mov byte [eax + 0xc], bl
mov dword [esi + 0xb8], 0x43e9b8
mov dword [eax], 0x43e9cc
mov dword [esi + 0xec], ebx
fst qword [esi + 0xf8]
mov byte [esi + 0xf0], bl
fstp qword [esi + 0x100]
mov byte [esi + 0xf1], bl
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4