joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
or dword [ebp - 4], 0xffffffff
push esi
push edi
push 0x10
pop ecx
mov esi, 0x1001150
lea edi, [ebp - 0x110]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x110]
mov dword [ebp - 8], 0x104
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001422
mov esi, 0x100114c
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001438
lea eax, [ebp - 4]
push eax
push 0xf003f
mov esi, 0x1001194
push 0
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
push eax
push 0x80000001
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x1001491
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1001140
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp dword [ebp - 4], 0xffffffff
je 0x10014a0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x10014a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
or dword [ebp - 4], 0xffffffff
push esi
push edi
push 0x12
pop ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x110]
push eax
mov esi, 0x10011b0
lea edi, [ebp - 0x110]
push 0x80000002
mov dword [ebp - 8], 0x104
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x1001518
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10010ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp dword [ebp - 4], 0xffffffff
je 0x1001527
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1001b72
Capabilities:
Delete file
Move file

Disassembly:
push 0x5b8
push 0x1001268
call fcn.01001f1c
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.010015ee
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x124]
push eax
call fcn.010014a8
test eax, eax
jne 0x1001be1
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001ba9
mov esi, 0x100114c
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001bbf
mov ebx, 0x100125c
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1001be6
mov ebx, 0x100125c
lea eax, [ebp - 0x228]
push eax
call fcn.01001310
test eax, eax
jne 0x1001c2e
lea edi, [ebp - 0x228]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001bfd
mov esi, 0x100114c
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x228]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001c13
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x32c]
push eax
call fcn.010012a0
test eax, eax
jne 0x1001c76
lea edi, [ebp - 0x32c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001c45
mov esi, 0x100114c
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x32c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001c5b
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 3
push 0x1001258
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1001d42
push 0x104
lea eax, [ebp - 0x430]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1001d42
mov dword [ebp - 0x4c4], 0x94
lea eax, [ebp - 0x4c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1001d42
lea eax, [ebp - 0x430]
cmp dword [ebp - 0x4b4], 2
jne 0x1001ce4
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x1001d42
mov esi, 0x1001250
lea edi, [ebp - 0x5c8]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001cf3
sub eax, edx
lea edi, [ebp - 0x5c8]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001d03
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x1001244
lea eax, [ebp - 0x5c8]
push eax
push 0x100123c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
jmp 0x1001d42
or dword [ebp - 4], 0xffffffff
xor eax, eax
cmp dword [ebp - 0x20], eax
setne al
call fcn.01001f55
ret 0x10
Function at 0x1001d56
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001278
call fcn.01001f1c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001d93
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001d93
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001dab
cmp eax, 0x20b
je 0x1001d98
mov dword [ebp - 0x1c], ebx
jmp 0x1001dbf
cmp dword [ecx + 0x84], 0xe
jbe 0x1001d93
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001db9
cmp dword [ecx + 0x74], 0xe
jbe 0x1001d93
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003014], 0xffffffff
or dword [0x1003018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100300c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100301c], eax
call fcn.01001fe4
cmp dword [section..data], ebx
jne 0x1001e1a
push fcn.01001fe4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001fd2
push 0x10010c4
push 0x10010c0
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010bc
push 0x10010b8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1001eb0
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001e84
cmp al, 0x22
jne 0x1001e76
cmp byte [esi], 0x22
jne 0x1001e8d
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001e97
cmp al, 0x20
jbe 0x1001e89
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x1001ebb
movzx eax, word [ebp - 0x48]
jmp 0x1001ebe
cmp byte [esi], 0x20
jbe 0x1001e8d
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1001eb0
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1001edb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001f10
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001f55
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401600
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401634
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DelSvr::OpenSCManager___Faild__d____n
call fcn.004314df
add esp, 8
xor eax, eax
pop edi
add esp, 0x1c
ret
push esi
push str.DelSvr::OpenSCManager___ok____n
call fcn.004314df
add esp, 4
push 0xf01ff
push 0x4521d8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40167c
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DelSvr::OpenService___Faild__d____n
call fcn.004314df
add esp, 8
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
push ebx
push str.DelSvr::OpenService___ok____n
call fcn.004314df
add esp, 4
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4016b4
call ebx
push eax
push str.DelSvr::ControlService___Faild__d___n
call fcn.004314df
add esp, 8
jmp 0x4016c1
push str.DelSvr::ControlService___ok___n
call fcn.004314df
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4016de
call ebx
push eax
push str.DelSvr:eleteSrevice___Faild__d___n
call fcn.004314df
add esp, 8
jmp 0x4016eb
push str.DelSvr:eleteSrevice___ok___n
call fcn.004314df
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret
Function at 0x403a00
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x449028
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x45e7b0]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push esi
push edi
mov eax, dword [0x45e7b0]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov esi, ecx
push 1
push 0x4523d8
lea ecx, [esp + 0x194]
mov dword [esp + 0x18c], 0
call fcn.00409ec0
mov ecx, dword [esp + 0x18c]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x110
push 4
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0xe4]
push edx
push eax
call fcn.0041cc9a
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0040a770
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_DestroyIcon]
push ecx
call ebx
mov eax, dword [esp + 0x18c]
push 0x111
push 4
lea edx, [esp + 0x1c]
push edx
push 0
push eax
call edi
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0xe4]
push ecx
push esi
call fcn.0041cc9a
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.0040a770
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call ebx
mov dword [esp + 0x184], 0xffffffff
mov eax, dword [esp + 0x18c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.004311a6
add esp, 0x178
ret 4
Function at 0x409780
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, dword [esi + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x74], 0xffffffff
jmp fcn.00401600

Function at 0x409f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449828
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45e7b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1c]
add esi, 8
push eax
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.0040b000
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 4]
call fcn.0040b000
lea edx, [esp + 0x24]
push edx
lea ecx, [esi + 8]
call fcn.0040b000
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0xc]
call fcn.0040b000
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 0x10]
call fcn.0040b000
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
lea edi, [esi + 0x20]
mov ecx, 0x24
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
call fcn.00402da0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xb0

Function at 0x40a9e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a9f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40aa34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40aa30
lea ebx, [ebx]
cmp esi, eax
jae 0x40aa34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40aa20
cmp esi, eax
jb 0x40aa3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40c280
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x449768
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x45e7b0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov eax, dword [0x45e7b0]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov dword [esp + 0x118], 0
mov eax, dword [esp + 0x120]
cmp dword [eax - 0xc], 0
jne 0x40c30b
push 0x452aa2
mov ecx, esi
call fcn.0040a8e0
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 0x120]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40c3d3
push 1
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x128]
call fcn.0040ced0
mov eax, dword [eax]
push 0x4523d8
push eax
call fcn.00432247
add esp, 8
test eax, eax
mov eax, dword [esp + 8]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c36a
push 1
push 0x4523d8
lea ecx, [esp + 0x128]
call fcn.00409ec0
push 0xff
lea ecx, [esp + 0x11]
push 0
push ecx
mov byte [esp + 0x18], 0
call fcn.004335b0
mov eax, dword [esp + 0x12c]
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
push 0x100
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040a8e0
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 0x120]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c3df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004311a6
add esp, 0x114
ret 4

Function at 0x40c6a0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x14
mov eax, dword [0x45e7b0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 4]
push edi
xor ecx, ecx
push ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
push ecx
push edx
push eax
push 0xc
lea eax, [esp + 0x1c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004311a6
add esp, 0x14
ret 4
Function at 0x40cb00
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4496f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x45e7b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov bl, 0x43
mov byte [esp + 8], bl
jmp 0x40cb40
movsx ecx, bl
sub ecx, 0x41
mov edx, 1
shl edx, cl
test eax, edx
je 0x40cb7b
inc bl
cmp bl, 0x5a
jle 0x40cb40
push 0x452aa2
mov ecx, esi
mov byte [esp + 0xc], bl
call fcn.0040a8e0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret
mov byte [esp + 8], bl
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0040ce10
push 0x4527dc
push eax
push esi
mov dword [esp + 0x20], 0
call fcn.00409b40
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cb68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret

Function at 0x40cbe0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x108
mov eax, dword [0x45e7b0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push edi
push eax
push str.__s
lea edx, [esp + 0x10]
call fcn.0040a040
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea ecx, [esp + 8]
push ecx
push 0xc
push esi
push 0
push 0
mov edi, eax
push 0x2d1080
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
mov eax, esi
call fcn.004311a6
add esp, 0x108
ret 4
Function at 0x40cc70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ccbf
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ccb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret 0x18
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
push edx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push eax
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cd34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret 0x18

Function at 0x40cd40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cd8f
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret 0x18
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
push edx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push eax
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ce04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret 0x18
Function at 0x40d3d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4496c8
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x45e7b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [ebx + 8]
push eax
mov esi, ebx
call fcn.0040d640
mov ebp, eax
lea ecx, [esp + 0x20]
lea esi, [ebp + 8]
push ecx
mov ecx, esi
call fcn.0040b000
lea edx, [esp + 0x24]
push edx
lea ecx, [esi + 4]
call fcn.0040b000
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 8]
call fcn.0040b000
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 0xc]
call fcn.0040b000
lea edx, [esp + 0x30]
push edx
lea ecx, [esi + 0x10]
call fcn.0040b000
mov eax, dword [esp + 0x34]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x18], ecx
lea edi, [esi + 0x20]
mov ecx, 0x24
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
test eax, eax
je 0x40d472
mov dword [eax], ebp
jmp 0x40d475
mov dword [ebx + 4], ebp
lea ecx, [esp + 0x20]
mov dword [ebx + 8], ebp
call fcn.00402da0
mov eax, ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0xb0

Function at 0x411db6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x411dfe
call fcn.0041cc9a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x411dfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x411e41
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x411e2a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x411e2a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x411e3e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4130cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4130f3
cmp dword [edi + 0x54], 0
jne 0x4130f3
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041cc9a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00413090
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8