joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x405be3
mov dword [ebx], 0
mov edx, 0x4600bc
call fcn.00405a40
mov esi, eax
test esi, esi
je 0x405d03
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x405cf9
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x405cf9
push esi
call edi
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x405cf9
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x405cf9
mov ecx, edi
call fcn.0040ac10
mov dword [ebp + 8], eax
test eax, eax
je 0x405cf9
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x405ce2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [0x465538]
add esp, 4
test ecx, ecx
je 0x405ccf
movsx edx, word [ecx + 0x5200]
lea eax, [ecx + 0x5204]
mov esi, dword [ecx + 0x3f70]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x405cc5
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x5200], ax
cwde
lea eax, [eax*8 + 0x5204]
add eax, ecx
xor edx, edx
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x51fc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x405cf1
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40a540
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x465040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x465538]
mov ebx, ecx
push edi
cmp byte [esi + 0x4b23], 0
mov edi, dword [esi + 0x4004]
je 0x40a5d8
cmp byte [esi + 0x4b22], 0
jne 0x40a5d8
test ebx, 0x800
jne 0x40a5d8
test dword [esi + 0x49a4], 0x400
je 0x40a593
test ebx, 0x400
je 0x40a7c3
mov eax, dword [esi + 0x4adc]
cmp eax, dword [esi + 0x49a0]
jne 0x40a7c3
test eax, eax
je 0x40a7c3
test ebx, 0x1000
je 0x40a6be
mov edx, dword [esi + 0x3d48]
mov eax, ebx
mov ecx, edx
and ecx, 0xfffe3fff
and eax, 0x1c000
cmove ecx, edx
or ebx, ecx
jmp 0x40a6be
mov eax, dword [esi + 0x49a8]
test al, 1
je 0x40a7c3
test ebx, 0x1000
je 0x40a607
mov edx, dword [esi + 0x3d44]
mov ecx, edx
and ecx, 0xfffe3fff
test ebx, 0x1c000
cmove ecx, edx
or ebx, ecx
cmp dword [esi + 0x4008], edi
je 0x40a61f
test al, al
js 0x40a61f
test ebx, 0x200
je 0x40a7c3
mov ecx, dword [esi + 0x49a0]
test bl, bl
js 0x40a649
mov eax, dword [esi + 0x4060]
test eax, eax
je 0x40a649
cmp eax, ecx
je 0x40a649
cmp byte [esi + 0x406d], 0
jne 0x40a649
cmp eax, dword [edi + 0x7c]
jne 0x40a7c3
mov edx, ebx
mov ecx, edi
call fcn.0040a4d0
test al, al
jne 0x40a666
test dword [esi + 0x49a4], 0x2000
je 0x40a7c3
mov ecx, dword [esi + 0x49a4]
test ecx, 0x400
je 0x40a680
test ebx, 0x400
je 0x40a7c3
mov eax, dword [esi + 0x49a0]
cmp eax, dword [edi + 0x7c]
jne 0x40a698
cmp byte [edi + 0xbc], 0
jne 0x40a7c3
test ecx, 0x4000
je 0x40a6be
test eax, eax
je 0x40a6be
test ebx, 0x100
jne 0x40a6be
mov eax, dword [esi + 0x404c]
cmp eax, dword [esi + 0x49a0]
jne 0x40a7c3
xorps xmm0, xmm0
test ebx, 0x10000
je 0x40a6d3
movss xmm1, dword [esi + 0x3d40]
jmp 0x40a6e8
test ebx, 0x8000
je 0x40a6e5
movss xmm1, dword [esi + 0x3d3c]
jmp 0x40a6e8
xorps xmm1, xmm1
comiss xmm1, xmm0
ja 0x40a708
test ebx, 0x2000
jne 0x40a708
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457551
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x49a0]
test edx, edx
jne 0x40a778
movss xmm0, dword [esi + 0x49ac]
subss xmm0, dword [edi + 0x110]
mov ecx, dword [edi + 0xf4]
mov eax, dword [edi + 0xfc]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [esi + 0x49b0]
mov esi, 8
subss xmm0, dword [edi + 0x114]
mov edx, dword [eax + ecx*4 - 4]
lea edi, [ebp - 0xc]
not edx
movss dword [ebp - 8], xmm0
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x45a660]
sub esi, 1
jne 0x40a756
mov esi, dword [0x465538]
not edx
test ebx, 0x20000
je 0x40a792
cmp dword [esi + 0x4ea8], edx
je 0x40a792
mov dword [esi + 0x4eac], 0
mov dword [esi + 0x4ea4], edx
test ebx, 0x2000
je 0x40a7a8
cmp dword [esi + 0x4eb4], edx
jne 0x40a7c3
comiss xmm1, dword [esi + 0x4eac]
setbe al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457551
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457551
mov esp, ebp
pop ebp
ret
Function at 0x40e4e0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40e51d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40e503
cmp byte [esi], bl
jne 0x40e503
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x45a660]
test bl, bl
jne 0x40e4f4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040e480
Function at 0x414b80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x465040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xf4]
mov ebx, dword [edi + 0xfc]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x45a660]
sub esi, 1
jne 0x414bc0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x4044], ebx
jne 0x414bf7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 0xd]
mov ecx, ebx
call fcn.00420180
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457551
mov esp, ebp
pop ebp
ret 4

Function at 0x414c10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x465040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xf4]
mov ebx, dword [edi + 0xfc]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x45a660]
sub esi, 1
jne 0x414c50
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x4044], ebx
jne 0x414c87
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.00420180
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457551
mov esp, ebp
pop ebp
ret 4

Function at 0x414ca0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x465040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0x110]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x114]
subss xmm0, xmm1
mov ecx, dword [edx + 0xf4]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xfc]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x45a660]
sub edi, 1
jne 0x414d20
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.00457551
mov esp, ebp
pop ebp
ret 4
Function at 0x41e120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5148], 0
lea esi, [edi + 0x514c]
je 0x41e1a2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41e15c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.004212c0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004064a0
mov edx, dword [esi]
mov ecx, 0x465534
push dword [edi + 0x5148]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5154]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004064a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e630
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x465538]
test bl, bl
je 0x41e676
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41e657
cmp byte [esi], bl
jne 0x41e657
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x45a660]
test bl, bl
jne 0x41e648
mov edi, dword [0x465538]
mov ecx, dword [edi + 0x50e4]
not eax
mov edx, dword [edi + 0x50ec]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x41e69d
cmp dword [edx + 4], eax
je 0x41e6a0
add edx, 0x24
cmp edx, ecx
jne 0x41e691
xor eax, eax
ret
mov eax, edx
ret
Function at 0x435bb0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x465040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x465538]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x435d6b
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x435d6b
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x465538]
add esp, 4
mov edi, eax
test esi, esi
je 0x435c54
movsx edx, word [esi + 0x5200]
lea eax, [esi + 0x5204]
mov ecx, dword [esi + 0x3f70]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x435c4a
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x5200], ax
cwde
lea eax, [eax*8 + 0x5204]
add eax, esi
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x51f8]
test edi, edi
je 0x435c67
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x435c69
xor edi, edi
or dword [ebx + 0xc], 6
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x70], str.imgui_impl_win32
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x435ca4
mov esi, dword [esi + 0x78]
jmp 0x435ca6
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x435cc9
mov dword [esi], eax
mov eax, dword [0x465538]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4ad4]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x28], eax
mov byte [edi + 0x29], 1
nop word [eax + eax]
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x435d39
inc esi
cmp esi, 5
jl 0x435d10
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457551
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457551
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457551
mov esp, ebp
pop ebp
ret
Function at 0x44e420
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov edi, edx
je 0x44e492
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x44e468
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x44e44f
cmp byte [esi], cl
jne 0x44e44f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x45a660]
test cl, cl
jne 0x44e440
mov ecx, dword [0x465538]
not eax
cmp dword [ecx + 0x4060], eax
jne 0x44e47e
mov dword [ecx + 0x4064], eax
cmp dword [ecx + 0x4088], eax
jne 0x44e4d8
mov byte [ecx + 0x408c], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x465538]
xor edx, edx
mov esi, dword [eax + 0x4004]
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0xfc]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.004059a0
mov ecx, dword [esi]
mov ebx, eax
add esp, 4
cmp dword [ecx + 0x4044], ebx
jne 0x44e4d6
push ecx
push edi
mov edx, 0xc
mov ecx, ebx
call fcn.00420180
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x458124
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x458163
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x458163
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x458163
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x458163
cmp dword [ecx + 0x74], 0xe
jbe 0x458163
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x401047
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
push esi
jne 0x40104e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor edx, edx
pop esi
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
add esp, 0x10
ret

Function at 0x401070
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov eax, esi
call fcn.00401000
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010b8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x34]
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4010ac
push 0x400000
call fcn.0040435f
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400000
mov esi, eax
push esi
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401140
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x401140
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push esi
add ebx, eax
adc dword [esp + 0x38], 0
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401140
push 0
lea eax, [esp + 0x18]
push eax
push 0x400000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401105
push esi
call fcn.004043c9
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp dword [esp + 0x20], ecx
jl 0x40119e
mov esi, dword [esp + 0x1c]
jg 0x40115d
cmp esi, ebx
jbe 0x40119e
sub esi, ebx
push esi
call fcn.0040435f
add esp, 4
push 0
lea edx, [esp + 0x18]
push edx
push esi
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401195
cmp dword [esp + 0x14], 0
jbe 0x401195
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.004043c9
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebp
call esi
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [esp + 0x34]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8
Function at 0x401210
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, eax
xor eax, eax
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
setne al
mov dword [esp + 8], 0
test eax, eax
je 0x40131b
push ebx
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
xor eax, eax
test ebx, ebx
setne al
mov esi, eax
test esi, esi
je 0x40130c
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
xor ecx, ecx
mov edi, eax
test edi, edi
setne cl
mov esi, ecx
test esi, esi
je 0x401301
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
test esi, esi
je 0x401301
mov eax, dword [esp + 0x14]
cmp ebp, eax
je 0x401301
cmp eax, 2
je 0x401301
cmp eax, 3
je 0x401301
cmp eax, 5
je 0x401301
cmp eax, 6
je 0x401301
cmp eax, 1
jne 0x4012cf
cmp ebp, 0x10
jne 0x4012d9
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
jmp 0x4012ff
cmp eax, 4
je 0x4012d9
cmp eax, 7
jne 0x401301
cmp ebp, 0x20
jne 0x4012e7
lea eax, [esp + 0x10]
push eax
push 1
jmp 0x4012f8
cmp eax, 7
jne 0x401301
cmp ebp, 0x10
jne 0x401301
lea ecx, [esp + 0x10]
push ecx
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, eax
test edi, edi
je 0x40130c
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x401317
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x1c
ret
Function at 0x4013a0
Capabilities:
Create directory
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 0x210], eax
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00408a00
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.004047ec
mov word [eax], 0
lea eax, [esp + 0x10]
add esp, 8
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401400
mov ecx, dword [str.log]
mov edx, dword [0x415d00]
push esi
mov dword [eax], ecx
mov cx, word [0x415d04]
push edi
mov dword [eax + 4], edx
push 0
lea edx, [esp + 0x14]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401440
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x28]
mov ecx, 9
mov esi, str.loaddrivelog.txt
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401540
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00408a00
add esp, 0xc
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4014d8
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x4014e6
cmp dword [esp + 8], 0
je 0x4014e6
mov esi, 1
jmp 0x4014e8
xor esi, esi
call fcn.004021e0
push eax
push esi
push 0
lea eax, [esp + 0x1c]
push str.Is64Exe:_d__IsWOW64:__d__Is64bitOS:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x24]
add esp, 0x14
mov dword [esp + 0xc], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401513
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x10]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.004043ce
add esp, 0x214
ret
Function at 0x401870
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x4197b8]
xor eax, esp
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push 0x2001f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push 0x80000002
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4018b7
xor eax, eax
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004043ce
add esp, 0xc
ret
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 4]
push ecx
push 4
push 0
push str.EnableLinkedConnections
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 8]
neg eax
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.004043ce
add esp, 0xc
ret

Function at 0x4018f0
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push str.SYSTEMCurrentControlSet_services_ambakdrv
push 0x80000002
mov esi, 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40194c
mov ecx, dword [esp + 4]
push str.DeleteFlag
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x401953
cmp eax, 2
je 0x401953
mov eax, 0x415ee8
xor esi, esi
call fcn.00402100
call fcn.00401e20
mov eax, esi
pop esi
add esp, 8
ret
mov eax, dword [esp + 4]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.Start
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, esi
pop esi
add esp, 8
ret