joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5edb40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x668e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
fld dword [esp + 0x3c]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
lea eax, [esi + 0x4c]
fadd dword [edi + 0x10]
fstp dword [edi + 0x10]
fld dword [esp + 0x48]
fadd dword [edi + 0x14]
fstp dword [edi + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], edx
call fcn.004aacf0
mov ecx, dword [esi + 0x40]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x3c]
fld dword [0x670244]
fld dword [esp + 0x14]
add eax, 0x68
mov dword [esp + 8], 0
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
fcomp dword [esp + 0x24]
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
fnstsw ax
mov dword [esp + 0x30], edx
test ah, 1
je 0x5edbef
fld dword [esp + 0x24]
fsub dword [esp + 0x14]
fstp dword [esp + 8]
fld dword [esp + 0x18]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x5edc0a
fld dword [esp + 0x28]
fsub dword [esp + 0x18]
fstp dword [esp + 8]
fld dword [esp + 0x20]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x5edc23
fstp st(0)
fld dword [esp + 0x30]
fsub dword [esp + 0x20]
fld dword [esp + 0x1c]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x5edc3c
fstp st(0)
fld dword [esp + 0x2c]
fsub dword [esp + 0x1c]
fld dword [esp + 8]
fadd dword [edi + 0x10]
fstp dword [edi + 0x10]
fadd dword [edi + 0x14]
fstp dword [edi + 0x14]
fld dword [esi + 0x38]
fld dword [esi + 0x34]
mov eax, dword [esi + 0x3c]
fst dword [esi + 0x14]
fld st(1)
test eax, eax
fstp dword [esi + 0x18]
fstp dword [esp + 8]
fstp dword [esp + 0xc]
je 0x5edd14
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.005e3af0
fld dword [esi + 0xc]
fadd dword [esi + 8]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x44]
push ecx
push edx
push ecx
mov ecx, edi
fchs
fstp dword [esp]
push 0
mov dword [esp + 0x4c], 0
call fcn.004aab90
fld dword [esi + 0x34]
fld dword [esp + 0x44]
fsub st(1)
mov eax, dword [esi + 0x3c]
fstp dword [esp + 0x44]
fstp st(0)
fld dword [esi + 0x38]
fld dword [esp + 0x48]
fsub st(1)
fstp dword [esp + 0x48]
mov edi, dword [eax + 0x14]
test edi, edi
fstp st(0)
je 0x5edcfc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, edi
mov edi, dword [edi]
push ecx
push edx
mov eax, dword [eax + 8]
mov ecx, eax
call fcn.004adcd0
fld dword [esp + 8]
fadd dword [esp + 0x44]
test edi, edi
fstp dword [esp + 8]
fld dword [esp + 0xc]
fadd dword [esp + 0x48]
fstp dword [esp + 0xc]
jne 0x5edcc8
mov ecx, esi
call fcn.005edd30
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00498970
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x607050
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x66a1cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x6e3700]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x18]
mov dword [edi], eax
mov edx, dword [0x6e3700]
lea ebx, [esi + 0x1c]
xor ecx, ecx
mov dword [esp + 0x120], ecx
mov dword [ebx], edx
mov eax, 1
mov dword [esi + 0x10], ecx
mov byte [esp + 0x120], al
mov dword [esi + 8], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esi + 0x20], 0x96
mov dword [esi + 0x24], 0x4b
mov dword [esi], 0x6b1c30
mov dword [esi + 0x14], 0x3ff00000
mov dword [esi + 0xc], 0xffff
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.00623b5c
push 0x72ac48
mov ecx, ebx
call fcn.00623b5c
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x614440
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00466cb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x61450b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x61450b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x6144be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x6144c9
or bh, 8
and edi, 0x8000000
je 0x6144e4
mov eax, dword [0x755b3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x61450b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6148e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x61490b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x61492f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x61494a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6175e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046a102
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x617603
test byte [esp + 8], 2
je 0x617603
call fcn.0046a175
mov dword [eax], 0xd
call fcn.0046a17e
mov dword [eax], 5
jmp 0x6175dc
xor eax, eax
ret
Function at 0x6208f1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x620929
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00623e7a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00623e52
jmp 0x620935
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x620939
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x73f900
mov ecx, edi
call fcn.00623b5c
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x62098c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x62099f
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00623e7a
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00623e52
jmp 0x62099f
mov ecx, esi
call fcn.00622e36
test eax, eax
je 0x62099f
push edi
mov ecx, eax
call fcn.006208f1
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x6225c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x622606
call fcn.0063df58
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x622606
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6225fd
xor eax, eax
jmp 0x62260e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00622614
pop edi
pop esi
pop ebx
ret 4

Function at 0x625a53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0063df58
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x625a84
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00625a97
pop edi
pop esi
pop ebx
ret 8

Function at 0x62bb0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x657558
call fcn.00468404
push ecx
push ecx
push esi
push 0x10
call fcn.0061f973
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x62bb59
mov ecx, esi
call fcn.00624c03
mov eax, dword [0x6e3700]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.00623b5c
jmp 0x62bb5b
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x6c4b68
push eax
mov dword [ebp - 0x10], esi
call fcn.00468488
pop esi
Function at 0x63c3be
Capabilities:
Create http request

Disassembly:
mov eax, 0x65586c
call fcn.00468404
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x63c3f6
call fcn.0063df58
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x63c41b
push eax
push dword [esi + 4]
call fcn.0063d629
jmp 0x63c427
push esi
push eax
mov ecx, 0x73f908
call fcn.0063c438
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x63c77c
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x6558f3
call fcn.00468404
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00626e55
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x6e3700]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.00623b5c
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00623b5c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x63c818
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x65591b
call fcn.00468404
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00626e55
mov eax, dword [0x6e3700]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x73f908
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.0063c438
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.00623b5c
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0045c6a7
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00623b0c
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.006239d3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x63ecbc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0063df58
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x63ecf9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x63ecf9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x63ecfd
xor eax, eax
jmp 0x63ed7b
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0061f973
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x63ed35
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x63ed1f
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0063ee6c
push ebx
mov edi, eax
call fcn.0061f99c
test edi, edi
pop ecx
je 0x63ed77
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0063ec35
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0063ed80
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x100010e3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 4], eax
or eax, eax
je 0x10001115
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x10001115
push dword [ebp - 4]
call fcn.100010c6
push 0
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x10001134
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.1000111c
push 0x10
lea eax, [ebp - 0x54]
push eax
call fcn.1000111c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.kernel32.dll_CreateProcessA
lea edi, [ebp - 0x54]
push dword [edi]
push dword [edi + 4]
call sub.kernel32.dll_CloseHandle
call sub.kernel32.dll_CloseHandle
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x9102e4
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea eax, reloc.MSVCRT.dll___dllonexit
cpuid
jmp 0x9102ed
mov ebp, dword [esp + 0x30]
mov bl, byte [esp]
jmp 0x9102cd
lea esi, [esp + 4]
xchg al, cl
adc edx, 0xcc5b4cb8
jmp 0x910333
mov ax, 0x5aed
jmp 0x91031d
sub esp, 0xbc
jmp 0x91033b
jbe 0x9102ff
mov ax, 0x5aed
jmp 0x91031d
mov edi, esp
lea eax, [ebp - 0xe7]
mov cx, word [esp]
mov ecx, edi
sub esp, 0x19
jmp 0x910399
je 0x9103d0
lea esp, [esp + 1]
jmp fcn.009103d4
lea esp, [esp + 1]

Function at 0x9d83ae
Capabilities:
Parse pe header

Disassembly:
mov dword [esp], edx
jmp 0x9d83e7
lea esp, [esp + 0x18]
Function at 0x4010d7
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 4]
ret

Function at 0x4010ea
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
mov ebx, eax
jle 0x401112
lea eax, [ebx + esi - 1]
cmp byte [eax], 0x5c
jne 0x401112
mov edi, 1
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
dec eax
cmp eax, 1
sbb eax, eax
inc eax
test edi, edi
je 0x401129
mov byte [ebx + esi - 1], 0x5c
pop edi
pop esi
pop ebx
ret

Function at 0x401452
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
lea ecx, [ebp - 0x28]
push eax
push eax
push eax
lea edx, [ebp - 8]
push eax
push eax
push 0x20
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x401486
mov ax, pe_overlay
jmp 0x4014f2
push 7
lea eax, [ebp - 0x28]
push str.PKBACK
push eax
call fcn.00401028
add esp, 0xc
test eax, eax
je 0x4014a3
mov ax, pe_overlay
jmp 0x4014f2
cmp byte [ebp - 0x28], 0
lea edx, [ebp - 0x28]
je 0x4014bc
mov al, byte [edx]
cmp al, 0x2e
je 0x4014bc
cmp al, 0x20
je 0x4014bc
inc edx
cmp byte [edx], 0
jne 0x4014ac
cmp byte [edx], 0
jne 0x4014c7
mov ax, pe_overlay
jmp 0x4014f2
mov al, byte [edx]
cmp al, 0x30
jb 0x4014d1
cmp al, 0x39
jbe 0x4014d4
inc edx
jmp 0x4014c7
xor eax, eax
cmp byte [edx], al
je 0x4014f2
imul eax, eax, 0xa
movzx ecx, byte [edx]
sub ecx, 0x30
js 0x4014f2
cmp ecx, 9
jg 0x4014f2
add eax, ecx
inc edx
cmp byte [edx], 0
jne 0x4014da
mov esp, ebp
pop ebp
ret 4

Function at 0x401687
Capabilities:
Encode data using xor

Disassembly:
push esi
mov ecx, dword [0x408420]
mov esi, dword [esp + 0xc]
mov eax, esi
dec esi
test eax, eax
je 0x4016ba
mov edx, dword [esp + 8]
mov al, byte [edx]
inc edx
xor al, cl
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x408020]
xor eax, ecx
mov ecx, eax
mov eax, esi
dec esi
test eax, eax
jne 0x40169d
pop esi
mov dword [0x408420], ecx
ret

Function at 0x401784
Capabilities:
Get disk information

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 4
mov al, byte [eax]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, 1
mov esp, ebp
cmp ecx, eax
mov eax, ecx
adc eax, 0xffffffff
pop ebp
ret 4
Function at 0x405e00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0xc
xor edx, edx
mov eax, edx
mov ecx, edx
and eax, 1
shr ecx, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, 0xedb88320
xor ecx, eax
mov eax, ecx
and ecx, 1
neg ecx
shr eax, 1
and ecx, 0xedb88320
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, 0xedb88320
xor ecx, eax
mov eax, ecx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor eax, ecx
mov ecx, eax
and eax, 1
neg eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x451640], eax
add edx, 1
cmp edx, 0x100
jne 0x405e05
nop
mov eax, dword [edx*4 + 0x451240]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x451640]
mov dword [edx*4 + 0x451640], eax
add edx, 1
cmp edx, 0x800
jne 0x405ea0
mov dword [0x453644], 0x405f00
mov dword [0x453648], 0x405f00
mov dword [0x453640], 0x405ff0
call fcn.0040a570
test eax, eax
jne 0x405ef7
mov dword [0x453648], 0x405ff0
add esp, 0xc
ret