joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435bbe
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.00435710
test eax, eax
je 0x435c4c
test byte [ebp - 4], 7
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
je 0x435c19
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x435c19
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435c0b
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x435c19
push ebx
push 0x519
jmp 0x435c40
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x435c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435c34
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x435c4a
push ebx
push 0x51f
push str.fileutil.cpp
call fcn.0043294e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x435c53
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x435cad
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435c92
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x435cad
push esi
push 0x118
push str.fileutil.cpp
call fcn.0043294e
jmp 0x435d56
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x435ccc
mov esi, 0x8007000e
push esi
push 0x11c
jmp 0x435c9e
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x435cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435ced
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x435cfb
push esi
push 0x120
jmp 0x435d2e
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x450f74
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x435d3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435d22
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x435d3a
push esi
push 0x125
push str.fileutil.cpp
call fcn.0043294e
jmp 0x435d4d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x436371
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00427e30
add esp, 0xc
cmp dword [0x455e7c], 0
jne 0x43647e
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 0xa]
shl eax, 0x10
or eax, ecx
cmp dword [ebp - 0x11c], 4
mov dword [0x455e80], eax
jne 0x4363f0
mov dword [0x455e7c], 1
jmp 0x43647e
cmp dword [ebp - 0x11c], 5
jne 0x43643d
cmp dword [ebp - 0x118], 0
jne 0x43640e
mov dword [0x455e7c], 2
jmp 0x43647e
cmp dword [ebp - 0x118], 1
jne 0x436423
mov dword [0x455e7c], 3
jmp 0x43647e
xor eax, eax
cmp dword [ebp - 0x118], 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
mov dword [0x455e7c], eax
jmp 0x43647e
cmp dword [ebp - 0x11c], 6
jne 0x436474
cmp dword [ebp - 0x118], 0
jne 0x43645d
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x436436
cmp dword [ebp - 0x118], 1
jne 0x436474
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x436436
mov dword [0x455e7c], 9
mov eax, dword [0x455e7c]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [0x455e80]
pop edi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.00427eaa
leave
ret 8

Function at 0x436519
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call fcn.0043649c
cmp dword [ebp - 0x14], ebx
je 0x436555
mov dword [esi], 1
jmp 0x436589
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
cmp eax, ebx
je 0x436589
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x436589
mov dword [esi], ebx
cmp dword [ebp - 0x10], ebx
pop esi
pop ebx
je 0x436598
push dword [ebp - 0x10]
call fcn.004301e8
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00427eaa
leave
ret 4

Function at 0x4365a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4365cc
test al, 0x10
je 0x4365cc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4365c9
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4365d3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43669b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43669b
cmp eax, 3
je 0x436614
push edi
push ebx
call fcn.004365a8
test eax, eax
jne 0x43669b
movzx eax, word [ebx]
push esi
xor esi, esi
mov ecx, ebx
test ax, ax
je 0x436638
cmp ax, 0x5c
jne 0x436629
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x436621
test esi, esi
jne 0x43664c
mov edi, 0x80070003
push edi
push 0x7a
push str.dirutil.cpp
call fcn.0043294e
jmp 0x43669a
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.004365d3
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x43669a
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x436698
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x436686
xor edi, edi
inc edi
jmp 0x43669a
test eax, eax
jle 0x436694
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x43669a
xor edi, edi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4377a6
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4377f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4377e3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jns 0x4377f8
push esi
push 0x20
push str.inetutil.cpp
call fcn.0043294e
jmp 0x437804
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x437a4a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2470
call fcn.0042e8c0
mov eax, dword [0x4540d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x241c], 0
mov dword [ebp - 0x2434], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2430], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x2428], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2424], eax
mov eax, dword [ebp + 0x20]
push 0x3c
mov dword [ebp - 0x242c], eax
mov eax, dword [ebp + 0x24]
pop esi
push esi
mov dword [ebp - 0x2420], eax
lea eax, [ebp - 0x2470]
push 0
push eax
call fcn.00427e30
mov dword [ebp - 0x2470], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x437ade
lea eax, [ebp - 0x410]
mov dword [ebp - 0x2460], eax
mov dword [ebp - 0x245c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x2428], esi
je 0x437afd
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x2454], ecx
mov dword [ebp - 0x2450], eax
cmp dword [ebp - 0x2424], esi
je 0x437b17
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x244c], ecx
mov dword [ebp - 0x2448], eax
mov eax, 0x801
cmp dword [ebp - 0x242c], esi
je 0x437b36
lea ecx, [ebp - 0x1414]
mov dword [ebp - 0x2444], ecx
mov dword [ebp - 0x2440], eax
cmp dword [ebp - 0x2420], esi
je 0x437b50
lea ecx, [ebp - 0x2418]
mov dword [ebp - 0x243c], ecx
mov dword [ebp - 0x2438], eax
lea eax, [ebp - 0x2470]
push eax
push 0x90000000
push esi
push dword [ebp - 0x2434]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x437bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x437b81
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x437b95
mov dword [ebp - 0x241c], 0x80004005
push dword [ebp - 0x241c]
push 0x5e
push str.uriutil.cpp
call fcn.0043294e
jmp 0x437c90
cmp ebx, esi
je 0x437bb8
mov eax, dword [ebp - 0x2464]
mov dword [ebx], eax
cmp edi, esi
je 0x437bdc
push dword [ebp - 0x245c]
push dword [ebp - 0x2460]
push edi
call fcn.00431171
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x437c90
mov eax, dword [ebp - 0x2430]
cmp eax, esi
je 0x437bf0
mov cx, word [ebp - 0x2458]
mov word [eax], cx
cmp dword [ebp - 0x2428], esi
je 0x437c19
push dword [ebp - 0x2450]
push dword [ebp - 0x2454]
push dword [ebp - 0x2428]
call fcn.00431171
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x437c90
cmp dword [ebp - 0x2424], esi
je 0x437c42
push dword [ebp - 0x2448]
push dword [ebp - 0x244c]
push dword [ebp - 0x2424]
call fcn.00431171
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x437c90
cmp dword [ebp - 0x242c], esi
je 0x437c6b
push dword [ebp - 0x2440]
push dword [ebp - 0x2444]
push dword [ebp - 0x242c]
call fcn.00431171
mov dword [ebp - 0x241c], eax
cmp eax, esi
jl 0x437c90
cmp dword [ebp - 0x2420], esi
je 0x437c90
push dword [ebp - 0x2438]
push dword [ebp - 0x243c]
push dword [ebp - 0x2420]
call fcn.00431171
mov dword [ebp - 0x241c], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x241c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427eaa
leave
ret 0x20
Function at 0x404be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42d01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
push 4
lea ecx, [ebp - 8]
call fcn.00404080
mov eax, dword [ebp + 8]
push eax
call fcn.00403340
add esp, 4
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00404e00
add esp, 8
mov dword [ebp - 0x10], 0x404e60
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
push 0
lea ecx, [ebp - 8]
call fcn.00401590
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call fcn.0040bc4f
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
je 0x404c56
lea ecx, [ebp - 8]
call fcn.00404260
jmp 0x404c67
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
push 6
call fcn.00405242
lea ecx, [ebp - 8]
call fcn.00404d50
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040738e
mov esp, ebp
pop ebp
ret 4

Function at 0x406279
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x42d01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x40629e
xor eax, eax
jmp 0x4062fa
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4062cb
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x4062cb
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x406381
cmp dword [edi + 0x4c], 0
je 0x4062f4
mov ecx, edi
call fcn.00405ef7
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x40630a
push dword [edi + 0x4c]
push ebx
call fcn.00405764
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x4062f9
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040738e
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x42015c]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x406354
sub eax, 1
je 0x406354
dec eax
sub eax, 1
jne 0x4062f4
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4062e6
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x406371
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0040d6d4
add esp, 0x10
cmp esi, eax
jne 0x4062f4
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x4062f4
mov ax, bx
jmp 0x4062f9

Function at 0x407e09
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407e48
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407e48
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407e48
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407e48
cmp dword [ecx + 0x74], 0xe
jbe 0x407e48
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x413694
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413345

Function at 0x41369f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004134cf

Function at 0x41e6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e70d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41eb80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42d01c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Zawgbht
push 0x458340
call fcn.00403940
add esp, 8
mov dword [ebp - 0x34], eax
push 0x403c60
mov ecx, dword [ebp - 0x34]
call fcn.00402a80
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x3c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x30], 0
xor edx, edx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x24], 0
jmp 0x41ec14
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x40]
jae 0x41ec91
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402c80
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00403ca0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41ec7b
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x24]
mov dx, word [eax + ecx*2]
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
movzx edx, word [ebp - 0x20]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x1c]
call fcn.00402bf0
jmp 0x41ec91
mov ecx, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x1c]
call fcn.00402bf0
jmp 0x41ec0b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040738e
mov esp, ebp
pop ebp
ret
Function at 0x41ecb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
jmp 0x41ecc8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jae 0x41ed83
mov byte [ebp - 1], 0
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 2]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0x10]
movzx edx, byte [edx + 0x457670]
xor ecx, edx
mov byte [ebp - 1], cl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 3], cl
mov dl, byte [ebp - 3]
mov byte [ebp - 4], dl
push str.ZAw232gg
push 0x458340
call fcn.004035a0
add esp, 8
mov dword [ebp - 0xc], eax
push 0x403c60
mov ecx, dword [ebp - 0xc]
call fcn.00402a80
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
add edx, eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov byte [eax], dl
push str.aAbnx8_2kA
push 0x458340
call fcn.004035a0
add esp, 8
mov dword [ebp - 0x10], eax
push 0x403c60
mov ecx, dword [ebp - 0x10]
call fcn.00402a80
movzx ecx, byte [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
sub eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov byte [ecx], al
jmp 0x41ecbf
mov esp, ebp
pop ebp
ret
Function at 0x44c3b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x44c390
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x44c3ae
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
or bh, bh
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x44c40c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x44c3f3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x44c3fc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x44c406
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x44c3e8
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x44c372
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x44c459
dec eax
je 0x44c450
sub eax, 3
je 0x44c447
mov dword [ebp - 4], 0x40
jmp 0x44c476
mov dword [ebp - 4], 4
jmp 0x44c45c
mov dword [ebp - 4], 0x20
jmp 0x44c45c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x44c4a8
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x44c428
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0044bcb9
xchg dword [esi + 0x5e], esi
fdivr st(7)
jne 0x44c4b3
push 1
push esi
call edi
mov eax, esi
jmp 0x44c4b4
push 0x8000
push ebx
push esi
call dword [ebp - 8]
push ebp
clc
rcr byte [edi + 0x5e], 0x5b
Function at 0x40b230
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6b0]
jne 0x40b23a
repz ret
jmp fcn.00412ffc

Function at 0x41b32c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040fee2
and dword [ebp - 0x14], 0
cmp dword [0x448cf8], 0
mov dword [ebp - 0x18], eax
jne 0x41b3df
push 0x403880
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b487
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403874
push ebx
call edi
test eax, eax
je 0x41b487
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403864
push ebx
mov dword [0x448cf8], eax
call edi
push eax
call esi
push 0x403850
push ebx
mov dword [0x448cfc], eax
call edi
push eax
call esi
push 0x403834
push ebx
mov dword [0x448d00], eax
call edi
push eax
call esi
mov dword [0x448d08], eax
test eax, eax
je 0x41b3df
push 0x40381c
push ebx
call edi
push eax
call esi
mov dword [0x448d04], eax
mov eax, dword [0x448d04]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41b438
cmp dword [0x448d08], ecx
je 0x41b438
push eax
call esi
push dword [0x448d08]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41b438
test ebx, ebx
je 0x41b438
call edi
test eax, eax
je 0x41b42f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41b42f
test byte [ebp - 8], 1
jne 0x41b438
or dword [ebp + 0x10], 0x200000
jmp 0x41b46b
mov eax, dword [0x448cfc]
cmp eax, dword [ebp - 0x18]
je 0x41b46b
push eax
call esi
test eax, eax
je 0x41b46b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b46b
mov eax, dword [0x448d00]
cmp eax, dword [ebp - 0x18]
je 0x41b46b
push eax
call esi
test eax, eax
je 0x41b46b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448cf8]
call esi
test eax, eax
je 0x41b487
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41b489
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b230
leave
ret
Function at 0x422fe0
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1404
call fcn.00422270
cmp dword [0x7e9a80], 0x37
jne 0x42309f
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x4044a8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4044c8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x404500
push 0
lea ecx, [esp + 0xc0c]
push ecx
push 0x404518
push 0x404540
push 0x404578
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ecx, dword [0x7e9a84]
mov eax, dword [0x7e5ef0]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1404
ret
Function at 0xfdd370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xfdd38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x1006074
push ecx
mov edi, eax
call fcn.00ff1198
mov esi, eax
add esp, 8
test esi, esi
jne 0xfdd3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ff102e
push esi
call fcn.00ff0fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret