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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100cb8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100969ef
cmp dword [ebp + 0xc], 0x20
jb 0x100969ef
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.1006f1a0
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x100b9e5c
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x100969ef
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10096900
sub ecx, edx
cmp ecx, 0x40
jne 0x100969ef
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x1009693c
mov al, byte [esi + ecx]
test al, al
je 0x1009693c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10096926
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x10096979
mov al, byte [esi + ecx]
test al, al
je 0x10096979
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10096960
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.1006f1a0
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10096a00
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x100969ef
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.10097720
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
Function at 0x100972c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.1002f960
mov eax, dword [0x100cb8d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x1009742d
cmp dword [ebp + 0xc], 0
je 0x1009742d
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.100527d0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10097410
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.1006f1a0
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10097405
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.1006f1a0
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.10097c90
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.10097720
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1009741a
inc esi
cmp esi, 0x10
jl 0x10097300
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
Function at 0x10097440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100cb8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x10097528
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1006f1a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x10097528
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10097497
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x10097528
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100974c0
mov eax, dword [0x100ae188]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x100974d5
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100974f0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
Function at 0x10097540
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x100cb8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.1006f1a0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.10096a00
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100975aa
mov al, byte [edi + ecx]
test al, al
je 0x100975aa
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10097591
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x100975cb
inc eax
sub ecx, 1
jne 0x100975c0
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x10097620
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x10097615
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x10097614
mov bl, byte [edi + ecx]
test bl, bl
je 0x10097614
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x10097600
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.1006f1a0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x100b9e5c
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x100976da
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x100976a4
test cl, cl
je 0x100976a0
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x100976a4
add eax, 2
add esi, 2
test cl, cl
jne 0x10097684
xor eax, eax
jmp 0x100976a9
sbb eax, eax
or eax, 1
test eax, eax
je 0x100976da
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100976b6
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push 0x80000002
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100976e3
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x100b9e5c
push str.SoftwareComMaster
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002f2ae
mov esp, ebp
pop ebp
ret
Function at 0x402768
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402797
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403478
jmp 0x4027b5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004026f0
mov edi, eax
test ebx, ebx
je 0x4027b5
cmp dword [esi], 0
je 0x4027b5
dec ebx
jmp 0x40279e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402838
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x41003c], 0x8088405
inc edx
mov dword [0x41003c], edx
mul edx
mov eax, edx
ret

Function at 0x402954
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4029ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4029cc
xor eax, eax
push ebp
push 0x4029c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402a08
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4029cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404670
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40482c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4046d1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404848
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404743
xor eax, eax
push ebp
push 0x40473c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004044c8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404725
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404868
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404743
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404824
cmp byte [ebp - 0xd], 0
jne 0x404785
cmp byte [ebp - 0x12], 0
je 0x404824
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40479e
dec ebx
cmp byte [ebx], 0x2e
je 0x4047ad
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40479d
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404824
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4047da
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404824
cmp byte [ebp - 0xd], 0
je 0x404824
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404824
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404d10
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404d6c
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x404d5e
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404d53
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404d4e
mov eax, 0x64
jmp 0x404d63
call sub.kernel32.dll_GetLastError
call fcn.0040267c
xor eax, eax
jmp 0x404d4e
mov eax, 0x67
jmp 0x404d63

Function at 0x404d74
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x404dcf
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x404dc1
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404db6
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404db1
mov eax, 0x65
jmp 0x404dc6
call sub.kernel32.dll_GetLastError
call fcn.0040267c
xor eax, eax
jmp 0x404db1
mov eax, 0x67
jmp 0x404dc6

Function at 0x404e58
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404e88
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x404e7e
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.0040268c
or eax, 0xffffffff
jmp 0x404e7c
mov eax, 0x67
call fcn.0040267c
or eax, 0xffffffff
jmp 0x404e7c

Function at 0x40771c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407755
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403478
jmp 0x40775e
mov eax, ebx
mov edx, esi
call fcn.004033e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407768
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407789
mov al, byte [esp]
jmp 0x40778b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c6e4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004037a0
xor eax, eax
push ebp
push 0x40c76b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80
mov eax, dword [ebp - 4]
call fcn.004037b0
push eax
call sub.kernel32.dll_SetFileAttributesA
xor ebx, ebx
mov eax, dword [0x40f3f8]
mov byte [eax], 2
mov edx, dword [ebp - 4]
mov eax, 0x410658
call fcn.00404c6e
mov edx, 0x80
mov eax, 0x410658
call fcn.00404fe9
call fcn.00402698
test eax, eax
jne 0x40c746
mov bl, 1
mov eax, 0x410658
call fcn.00404dd8
call fcn.0040265c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c772
lea eax, [ebp - 4]
call fcn.00403390
ret
Function at 0x40c990
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004037a0
xor eax, eax
push ebp
push 0x40cb69
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [0x41090c], eax
xor eax, eax
mov dword [0x410910], eax
xor eax, eax
push ebp
push 0x40cb49
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x40a4e8]
call fcn.0040bd84
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cb2d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xa]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0040bcc8
cmp word [ebp - 0xa], 0x5a4d
jne 0x40cb23
xor ecx, ecx
mov edx, 0x18
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0040bcc8
cmp word [ebp - 0xc], 0x40
jb 0x40cb23
xor ecx, ecx
mov edx, 0x3c
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0040bcc8
movzx edx, word [ebp - 0xc]
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0xa]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0040bcc8
cmp word [ebp - 0xa], 0x4550
jne 0x40cb23
mov eax, dword [ebp - 4]
call fcn.004037b0
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4108f4], eax
cmp dword [0x4108f4], 0
jne 0x40cab5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cb53
mov ebx, 1
push 3
push ebx
mov eax, dword [0x4108f4]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [0x4108f0], eax
mov eax, dword [0x4108f0]
push eax
mov eax, dword [0x4108f4]
push eax
call sub.kernel32.dll_SizeofResource
cmp eax, dword [0x41090c]
jbe 0x40cb02
mov eax, dword [0x4108f0]
push eax
mov eax, dword [0x4108f4]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [0x41090c], eax
mov dword [0x410910], ebx
inc ebx
cmp ebx, 0x15
jne 0x40caba
mov eax, dword [0x4108f4]
push eax
call sub.kernel32.dll_FreeLibrary_1
cmp dword [0x41090c], 0
jbe 0x40cb23
mov dword [ebp - 8], 0x20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cb3f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cb53
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb70
lea eax, [ebp - 4]
call fcn.00403390
ret
Function at 0x40ce00
Capabilities:
Extract resource via kernel32 functions
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004037a0
mov edi, 0x4108f4
xor eax, eax
push ebp
push 0x40cfbc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80
mov eax, dword [0x4108fc]
call fcn.004037b0
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0x80
push dword [0x4108fc]
push 0x40cfd4
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00406b3c
push dword [ebp - 0x10]
push 0x40cfe0
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004036ac
mov eax, dword [ebp - 0xc]
call fcn.004037b0
push eax
call sub.kernel32.dll_SetFileAttributesA
push dword [0x4108fc]
push 0x40cfd4
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00406b3c
push dword [ebp - 0x14]
push 0x40cfe0
lea eax, [ebp - 8]
mov edx, 4
call fcn.004036ac
xor edx, edx
push ebp
push 0x40cf97
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004037b0
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [edi], eax
cmp dword [edi], 0
jne 0x40ced9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cfa1
push 3
mov eax, dword [0x410910]
push eax
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [0x4108f0], eax
mov eax, dword [0x4108f0]
push eax
mov eax, dword [edi]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
jne 0x40cf0f
pop dword fs:[0]
add esp, 8
jmp 0x40cfa1
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
test esi, esi
jne 0x40cf25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cfa1
push 0
mov eax, dword [ebp - 8]
call fcn.004037b0
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov ebx, eax
test ebx, ebx
jne 0x40cf45
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cfa1
mov eax, dword [0x4108f0]
push eax
mov eax, dword [edi]
push eax
call sub.kernel32.dll_SizeofResource
push eax
push esi
push 0
push 1
push 3
push ebx
call sub.kernel32.dll_UpdateResourceA
test eax, eax
jne 0x40cf6f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cfa1
push 0
push ebx
call sub.kernel32.dll_EndUpdateResourceA
test eax, eax
jne 0x40cf85
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cfa1
mov eax, dword [edi]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40cfa1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfc3
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004033b4
ret
Function at 0x40e540
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb24
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 8], eax
mov ecx, 0x32
lea eax, [ebp - 0xd0]
mov edx, dword [section.CODE]
call fcn.00403974
xor eax, eax
push ebp
push 0x40e698
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40e652
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4d1]
push eax
push 0x401
call sub.kernel32.dll_GetLogicalDriveStringsA
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 1
lea eax, [ebp - 8]
call fcn.00403390
cmp esi, dword [ebp - 4]
jge 0x40e603
mov bl, byte [ebp + esi - 0x4d1]
test bl, bl
je 0x40e5f4
cmp bl, 0x5c
je 0x40e5e2
lea eax, [ebp - 0x4d8]
mov edx, ebx
call fcn.00403538
mov edx, dword [ebp - 0x4d8]
lea eax, [ebp - 8]
call fcn.004035f4
inc esi
lea eax, [ebp + edi*4 - 0xd4]
mov edx, dword [ebp - 8]
call fcn.00403428
jmp 0x40e5fe
inc esi
lea eax, [ebp - 8]
call fcn.00403390
inc edi
cmp esi, dword [ebp - 4]
jl 0x40e5b7
mov esi, 0x32
lea ebx, [ebp - 0xd0]
cmp dword [ebx], 0
je 0x40e642
mov edx, dword [ebx]
lea eax, [ebp - 0x4dc]
mov ecx, 0x40e6b0
call fcn.00403638
mov eax, dword [ebp - 0x4dc]
call fcn.004037b0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x40e642
mov eax, dword [ebx]
call fcn.0040dad0
add ebx, 4
dec esi
jne 0x40e60e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e65c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e69f
lea eax, [ebp - 0x4dc]
mov edx, 2
call fcn.004033b4
lea eax, [ebp - 0xd0]
mov ecx, 0x32
mov edx, dword [section.CODE]
call fcn.00403a40
lea eax, [ebp - 8]
call fcn.00403390
ret
Function at 0x40e6b4
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x40e6bd
mov eax, dword [ebp - 4]
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x8014], edx
mov dword [ebp - 0x8018], edx
mov dword [ebp - 0x801c], edx
mov dword [ebp - 4], eax
mov edi, 0x4108f8
xor eax, eax
push ebp
push 0x40e7da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
mov dword [ebp - 0xc], 0x400
mov dword [ebp - 0x10], 0x8000
jmp 0x40e793
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x40e793
inc esi
lea ebx, [ebp - 0x7ffc]
push dword [edi]
lea eax, [ebp - 0x8014]
push eax
lea eax, [ebp - 0x801c]
mov edx, dword [ebx]
call fcn.00403548
mov eax, dword [ebp - 0x801c]
lea edx, [ebp - 0x8018]
call fcn.00406a50
mov eax, dword [ebp - 0x8018]
mov ecx, 0x104
mov edx, 1
call fcn.004037f4
push dword [ebp - 0x8014]
push 0x40e7f0
mov eax, edi
mov edx, 3
call fcn.004036ac
cmp dword [ebx - 8], 0
jbe 0x40e78d
lea eax, [ebx - 0x14]
call fcn.0040e6b4
add ebx, 0x20
dec esi
jne 0x40e72c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x8010]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
je 0x40e71d
mov eax, dword [ebp - 8]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7e1
lea eax, [ebp - 0x801c]
mov edx, 3
call fcn.004033b4
ret