joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001efe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005cddb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x10080440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10082710]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x1001f04e
push 0x138
call fcn.1002c883
add esp, 4
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1001f040
mov ecx, eax
call fcn.1001e840
jmp 0x1001f042
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x10082710], eax
mov ecx, eax
call fcn.1001e960
mov edx, eax
mov dword [ebp - 0x234], 7
xor eax, eax
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [edx], ax
jne 0x1001f07d
xor ecx, ecx
jmp 0x1001f091
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001f082
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.10008730
push 0xc
push str.GDVCDbus.exe
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.1000d6c0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001f23c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10044bd0
push str.1b6545
lea eax, [ebp - 0x218]
push 0x1005fca0
push eax
call fcn.1000db10
add esp, 0x18
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
push eax
push 0x1005f708
call fcn.10008730
push 1
push 0x1005fca8
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.10008730
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.1000d5b0
push 2
push 0x1005fcac
lea ecx, [ebp - 0x230]
call fcn.1000d6c0
cmp word [ebp - 0x218], 0
jne 0x1001f180
xor ecx, ecx
jmp 0x1001f19f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001f190
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.1000d6c0
push 2
push 0x10063188
lea ecx, [ebp - 0x230]
call fcn.1000d6c0
cmp word [esi], 0
jne 0x1001f1ce
xor ecx, ecx
jmp 0x1001f1e2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001f1d3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.1000d6c0
push 1
push 0x1005fca8
lea ecx, [ebp - 0x230]
call fcn.1000d6c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.1001acf0
mov eax, dword [ebp - 0x21c]
add esp, 4
cmp eax, 8
jb 0x1001f23c
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.10008830
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x1001f25a
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.10008830
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c8d2
mov esp, ebp
pop ebp
ret 4
Function at 0x10023560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x8007000e
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10023592
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x100235b6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x100235c4
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
je 0x10023724
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1002371d
push edi
push ebx
push eax
call fcn.10044060
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1002371d
push eax
push dword [ebp + 0x14]
call fcn.10020c40
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10023714
mov eax, dword [ebx + 8]
mov dword [ebx + 8], 0
test eax, eax
jne 0x1002370c
cmp byte [ebp + 0x20], al
je 0x100236d3
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
mov dword [ebp + 0x20], edi
test edi, edi
je 0x10023671
mov ecx, ebx
call fcn.10020e50
push eax
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.1001feb0
mov ecx, eax
jmp 0x10023673
xor ecx, ecx
mov eax, dword [ebp + 0x24]
mov dword [eax], ecx
test ecx, ecx
je 0x1002370c
push ecx
lea ecx, [ebp - 0xc]
call fcn.10020260
mov esi, dword [ebp - 0xc]
push 4
push esi
call sub.gdiplus.dll_GdipSetSmoothingMode
mov edi, dword [ebp - 8]
test eax, eax
push 7
push esi
cmovne edi, eax
call sub.gdiplus.dll_GdipSetInterpolationMode
push dword [ebp + 0x1c]
test eax, eax
lea ecx, [ebp - 0xc]
push dword [ebp + 0x18]
cmovne edi, eax
push 0
push 0
push ebx
mov dword [ebp - 8], edi
call fcn.10020c00
push dword [ebp - 0xc]
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipDeleteGraphics
mov esi, dword [ebp + 0x10]
jmp 0x1002370c
mov ecx, ebx
call fcn.10020e50
push eax
mov ecx, ebx
call fcn.10020e20
push eax
mov ecx, ebx
call fcn.10021040
push eax
push 0
push 0
mov ecx, ebx
call fcn.10020b30
mov ecx, eax
mov edi, 0x8007000e
mov eax, dword [ebp + 0x24]
mov dword [eax], ecx
xor eax, eax
test ecx, ecx
cmovne edi, eax
mov dword [ebp - 4], edi
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10027130
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005db0e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10080440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x60]
mov dword [esi], vtable.CShareVariableManager.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x1002717c
mov eax, dword [ecx]
jmp 0x1002717e
mov eax, ecx
xor edx, edx
mov word [eax], dx
mov dword [esi + 0x8c], 7
mov dword [esi + 0x88], edx
cmp dword [esi + 0x8c], 8
mov dword [ebp - 4], edx
jb 0x100271a4
mov eax, dword [esi + 0x78]
jmp 0x100271a7
lea eax, [esi + 0x78]
xor edx, edx
mov word [eax], dx
lea ebx, [esi + 0x90]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edx
cmp dword [ebx + 0x14], 8
jb 0x100271c6
mov eax, dword [ebx]
jmp 0x100271c8
mov eax, ebx
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0xa8]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], 8
jb 0x100271e5
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0xc0]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], 8
jb 0x10027202
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
lea eax, [esi + 0xd8]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
cmp dword [eax + 0x14], 8
jb 0x1002721f
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
push edx
push 0x1005f708
mov byte [ebp - 4], 5
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 4], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], edx
call fcn.10008730
push 0
push 0x1005f708
lea ecx, [esi + 0x78]
call fcn.10008730
push 0
push 0x1005f708
mov ecx, ebx
call fcn.10008730
push 0
push 0x1005f708
lea ecx, [esi + 0xa8]
call fcn.10008730
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100297b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10080440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x414]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x41c], edi
call fcn.10044bd0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10044bd0
mov eax, dword [edi + 0x28]
add esp, 0x18
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x100299c6
push ebx
nop word [eax + eax]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x418], eax
lea ebx, [eax + 0xc]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10029821
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x1002997a
push ebx
lea eax, [ebp - 0x414]
push str.Is_s
push eax
call fcn.1000db10
add edi, 0x90
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1002985d
mov eax, dword [edi]
jmp 0x1002985f
mov eax, edi
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x10063fe8
lea eax, [ebp - 0x414]
push eax
push str.HotKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x10063fe8
lea eax, [ebp - 0x20c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100298b6
test dx, dx
je 0x100298b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100298b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10029890
xor eax, eax
jmp 0x100298bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x100298d9
lea eax, [ebp - 0x20c]
push eax
call fcn.1004ac39
mov ecx, dword [ebp - 0x418]
add esp, 4
mov ecx, dword [ecx + 4]
mov byte [ecx], al
push ebx
lea eax, [ebp - 0x414]
push str.Use_s
push eax
call fcn.1000db10
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x100298f6
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.nothing
lea eax, [ebp - 0x414]
push eax
push str.HotKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.nothing
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002994b
test dx, dx
je 0x10029947
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002994b
add eax, 4
add ecx, 4
test dx, dx
jne 0x10029925
xor eax, eax
jmp 0x10029950
sbb eax, eax
or eax, 1
test eax, eax
je 0x10029974
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
mov edx, dword [eax + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x10029963
mov edi, dword [ebp - 0x41c]
cmp byte [esi + 0xd], 0
jne 0x100299ba
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1002999f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100299ba
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10029993
jmp 0x100299ba
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100299b8
cmp esi, dword [eax + 8]
jne 0x100299b8
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100299a8
mov esi, eax
mov eax, dword [edi + 0x28]
cmp esi, dword [eax]
jne 0x10029810
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002c8d2
mov esp, ebp
pop ebp
ret
Function at 0x10029cf0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10080440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x418], ebx
cmp dword [ebx + 4], 0
je 0x10029efb
mov eax, dword [ebx + 0x28]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x10029e50
add ebx, 0x90
mov edi, dword [esi + 0x14]
mov eax, dword [edi + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [edi + 4]
cmp byte [eax], 0
lea eax, [ebp - 0x20c]
je 0x10029d54
push 0x10062750
jmp 0x10029d59
push 0x10060170
push 0x10060100
push eax
call fcn.1000db10
add esp, 0xc
lea eax, [ebp - 0x414]
add edi, 0xc
push edi
push str.Is_s
push eax
call fcn.1000db10
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x10029d89
mov eax, dword [ebx]
jmp 0x10029d8b
mov eax, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push str.HotKey
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
lea eax, [ebp - 0x414]
push str.Use_s
push eax
call fcn.1000db10
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push 0x10060100
push eax
call fcn.1000db10
add esp, 0x18
cmp dword [ebx + 0x14], 8
jb 0x10029ddb
mov eax, dword [ebx]
jmp 0x10029ddd
mov eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push str.HotKey
call edi
cmp byte [esi + 0xd], 0
jne 0x10029e39
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10029e1e
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10029e39
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10029e12
jmp 0x10029e39
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10029e37
cmp esi, dword [eax + 8]
jne 0x10029e37
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10029e27
mov esi, eax
mov eax, dword [ebp - 0x418]
mov eax, dword [eax + 0x28]
cmp esi, dword [eax]
jne 0x10029d33
mov ebx, dword [ebp - 0x418]
cmp dword [ebx + 0xd4], 8
lea esi, [ebx + 0xc0]
jb 0x10029e63
mov eax, dword [esi]
jmp 0x10029e65
mov eax, esi
push eax
push 0x10062750
push str.ModifyHotKey
push str.SetModify
call edi
cmp dword [esi + 0x14], 8
jb 0x10029e81
mov eax, dword [esi]
jmp 0x10029e83
mov eax, esi
push eax
push 0x10062750
push str.ModifyHotKey64
push str.SetModify
call edi
cmp dword [esi + 0x14], 8
jb 0x10029e9f
mov eax, dword [esi]
jmp 0x10029ea1
mov eax, esi
push eax
push 0x10062750
push str.TempModifyHotKey
push str.SetModify
call edi
cmp dword [esi + 0x14], 8
jb 0x10029ebb
mov esi, dword [esi]
push esi
push 0x10062750
push str.TempModifyHotKey64
push str.SetModify
call edi
cmp dword [ebx + 0xbc], 8
lea ecx, [ebx + 0xa8]
pop edi
pop esi
jb 0x10029ee0
mov ecx, dword [ecx]
cmp dword [ebx + 0xa4], 8
lea eax, [ebx + 0x90]
jb 0x10029ef1
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002c8d2
mov esp, ebp
pop ebp
ret
Function at 0x1002f963
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1005595d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005561d
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5f4008], 0x8088405
inc edx
mov dword [ebx + 0x5f4008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd18
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd31
add dl, dl
jne 0x41cd54
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cda5
xor eax, eax
add dl, dl
jne 0x41cd61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce42
add dl, dl
jne 0x41cd70
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd86
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd91
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd9b
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd40
mov eax, 1
add dl, dl
jne 0x41cdb3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdbe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdaa
sub eax, ebx
mov ebx, 1
jne 0x41cdf1
mov ecx, 1
add dl, dl
jne 0x41cdd7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cde2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdce
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce08
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce13
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdff
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce63
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd40
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e558
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5dca17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e609
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5dca1e
ret
Function at 0x41ee60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x5dd40f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ee9b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eeb4
lea eax, [ebp - 0x10]
mov edx, dword [0x5f6268]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eec7
lea eax, [ebp - 0x10]
mov edx, dword [0x5f6268]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eed3
adc edx, 0
mov edx, dword [edx*4 + 0x5f50e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41efe1
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41efd4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dd4
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41efd4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41efd4
cmp dx, 0x150
ja 0x41efd4
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41efd4
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eff9
inc ebx
cmp ebx, 0x19
jne 0x41ee8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5dd416
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x402f83
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4030cb
xor ecx, ecx
cmp word [eax], cx
je 0x4030cb
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x402fdc
cmp eax, 3
jne 0x403016
cmp word [esp + 0xa], 0x3a
jne 0x403016
cmp eax, 2
jne 0x402ffa
lea eax, [esp + 8]
push 0x404020
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4030cb
push 0xfffffffffffffffe
pop edi
jmp 0x4030cb
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x40302b
cmp ax, bx
jne 0x403035
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x40301e
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x403074
test byte [esp + 0x21c], 0x10
je 0x40305b
push 0xfffffffffffffffe
pop edi
jmp 0x40306b
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4030c9
cmp word [esp + 0x10], bp
jne 0x403082
cmp word [esp + 0x12], bp
je 0x4030a1
cmp word [esp + 0x10], bx
jne 0x403090
cmp word [esp + 0x12], bx
je 0x4030a1
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4030c9
cmp word [esp + 0x12], ax
jne 0x4030c9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4030b6
test al, 0x10
je 0x4030c9
jmp 0x4030c6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4030c9
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4