joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c460
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46690d
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x479044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1d4]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], eax
call fcn.0040e9b0
cmp byte [edi], 0
mov dword [ebp - 4], 0
je 0x43c508
push dword [edi + 0xc]
lea eax, [ebp - 0x1b0]
push dword [edi + 8]
push eax
call fcn.0043c310
push eax
push 0xdb0
lea eax, [ebp - 0x1e0]
mov byte [ebp - 4], 1
push eax
call fcn.0043c3f0
push eax
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 2
call fcn.0040ece0
push dword [ebp - 0x1e0]
call fcn.00455e16
push dword [ebp - 0x1b0]
mov byte [ebp - 4], 0
call fcn.00455e16
add esp, 8
lea eax, [edi + 0x18]
mov ecx, eax
mov dword [ebp - 0x1a0], eax
call fcn.0040f140
mov esi, eax
lea eax, [ebp - 0x1c8]
lea ecx, [esi + 1]
push ecx
push eax
lea ecx, [edi + 0x18]
call fcn.00425d80
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x1bc]
add eax, 2
mov byte [ebp - 4], 3
lea eax, [eax + esi*2]
push eax
call fcn.0040eb50
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.0043c7e0
lea eax, [ebp - 0x1bc]
mov ecx, ebx
push eax
call fcn.0043c7e0
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040ebb0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 5
call fcn.0040ef20
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040efd0
lea ecx, [ebp - 0x19c]
call fcn.0040ef20
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040efd0
lea ecx, [ebp - 0x19c]
call fcn.0040ef20
cmp byte [edi + 1], 0
je 0x43c628
push 0x3f4
lea eax, [ebp - 0x1b0]
push eax
call fcn.00418e80
push eax
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 6
call fcn.0040efd0
push dword [ebp - 0x1b0]
mov byte [ebp - 4], 5
call fcn.00455e16
add esp, 4
lea ecx, [ebp - 0x19c]
push 0x4699b8
call fcn.0040f010
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004188a0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040f010
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call edi
push dword [ebp - 0x19c]
push eax
call fcn.0041a1b0
push dword [ebp - 0x1a0]
lea eax, [ebp - 0x1b0]
push eax
call fcn.00412850
push 0x110
push 0x160
lea ecx, [ebp - 0x190]
push ecx
push 0x80
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x1b0]
mov esi, eax
call fcn.00455e16
add esp, 4
test esi, esi
je 0x43c6a5
push dword [ebp - 0x1a4]
push dword [ebx + 4]
call edi
push 0
push dword [ebp - 0x190]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x19c]
call fcn.00455e16
push dword [ebp - 0x1bc]
call fcn.00455e16
push dword [ebp - 0x1c8]
call fcn.00455e16
push dword [ebp - 0x1d4]
call fcn.00455e16
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455c00
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43c9f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466984
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x479044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x38]
mov dword [edi], 0x10000
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0xffffffff
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0xffffffff
call fcn.0040e9b0
lea ecx, [edi + 0x44]
mov dword [ebp - 4], 0
call fcn.0040e9b0
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 1
call fcn.0040e9b0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
lea esi, [edi + 0x68]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0040e9b0
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 4
call fcn.0040e9b0
add esi, 0x18
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0040e9b0
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 6
call fcn.0040e9b0
lea eax, [edi + 0x98]
push eax
call fcn.0040bef0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43e7d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov eax, dword [edx]
cmp eax, dword [edi + 0xb4]
jne 0x43e800
cmp dword [edx + 8], 0xffffff65
jne 0x43e800
movzx eax, word [edx + 0xc]
sub eax, 0x2d
je 0x43e82a
sub eax, 0x14
je 0x43e808
sub eax, 2
je 0x43e82a
pop edi
xor al, al
pop esi
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x43e800
lea ecx, [edi + 0xb4]
call fcn.004403a0
pop edi
mov al, 1
pop esi
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x43e800
mov ecx, edi
call fcn.0043e850
pop edi
mov al, 1
pop esi
pop ebp
ret 8
Function at 0x440670
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x479044]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x47cc58], 0
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x4406f0
push esi
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.0040fac0
push 0x4010
push 0x160
mov ecx, dword [eax]
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x80
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x2c4]
mov esi, eax
call fcn.00455e16
mov ecx, dword [ebp - 0x160]
add esp, 4
mov eax, esi
mov dword [edi], ecx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455c00
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x47cc50]
test eax, eax
je 0x440717
push 0x4010
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push edx
call eax
mov ecx, dword [ebp - 0x2b4]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00455c00
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4407d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x479044]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov edx, 0x4011
test al, al
mov ecx, 0x4110
lea eax, [ebp - 0x164]
cmovne ecx, edx
push ecx
push 0x160
push eax
push 0x90
push 0x4687b2
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455c00
mov esp, ebp
pop ebp
ret 4

Function at 0x440b80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466ece
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x479044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xd66
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
lea ecx, [ebp - 0x18]
sete al
mov byte [esi + 0x30], al
call fcn.0040e9b0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 8]
call fcn.0041a520
lea ecx, [ebp - 0x18]
call fcn.0040f1f0
lea ecx, [ebp - 0x18]
call fcn.0040f1a0
lea eax, [ebp - 0x18]
push eax
call fcn.00416ea0
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0xc]
call fcn.0040ece0
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
push dword [ebp - 0x18]
call fcn.00455e16
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4410e0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466f93
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x479044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi], vtable.CExtractDialog.0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
call fcn.0040e9b0
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.0040e9b0
mov word [esi + 0x24], 0
mov eax, esi
mov word [esi + 0x30], 0
mov byte [esi + 0x30], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x441550
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x479044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x44168f
nop word [eax + eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x44168a
inc eax
cmp eax, 0x40
jb 0x441666
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455c00
mov esp, ebp
pop ebp
ret 4
inc edx
cmp edx, esi
jl 0x441660
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00455c00
mov esp, ebp
pop ebp
ret 4
Function at 0x454f00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x479044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00457690
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x454f96
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x454fa8
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, edi
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
mov dword [ebp - 0x218], 0
call fcn.00455e0d
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455c00
mov esp, ebp
pop ebp
ret 8
Function at 0x10021e34
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437e9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x441480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x43c384
call fcn.1003e9b9
push 4
mov dword [ebp - 4], 0
call fcn.1004098d
mov edi, eax
add esp, 4
test edi, edi
je 0x10021eb0
call fcn.1003e7b4
mov dword [edi], eax
call fcn.1003e573
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1003e97a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10021ea6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.1003e9a2
jmp 0x10021eb2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x10024314
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, 0x43d734
mov dword [ebp - 8], 0
mov eax, dword [ebx]
inc eax
push eax
call fcn.1003e1bb
mov edi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 4], edi
cmp dword [ebx], eax
jbe 0x10024356
lea esp, [esp]
mov ecx, dword [ebx + 4]
mov dl, byte [ecx + eax]
xor dl, byte [ebx - 4]
inc eax
mov byte [eax + edi - 1], dl
cmp eax, dword [ebx]
jb 0x10024344
mov byte [eax + edi], 0
mov ecx, dword [0x444b40]
mov edx, dword [0x444b3c]
lea eax, [ebp - 4]
cmp eax, ecx
jae 0x100243dd
cmp edx, eax
ja 0x100243dd
mov esi, dword [0x444b44]
mov edi, eax
sub edi, edx
sar edi, 2
cmp ecx, esi
jne 0x100243d2
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x10024460
sub esi, edx
inc eax
sar esi, 2
cmp eax, esi
jbe 0x100243d2
mov ecx, esi
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x100243b3
xor ecx, ecx
jmp 0x100243b5
add ecx, edx
cmp ecx, eax
jae 0x100243bb
mov ecx, eax
push ecx
mov esi, 0x444b3c
call fcn.100244a4
mov ecx, dword [0x444b40]
mov edx, dword [0x444b3c]
test ecx, ecx
je 0x10024439
mov edx, dword [edx + edi*4]
mov dword [ecx], edx
jmp 0x10024433
mov esi, dword [0x444b44]
cmp ecx, esi
jne 0x1002442d
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x10024460
sub esi, edx
mov edx, esi
inc eax
sar edx, 2
cmp eax, edx
jbe 0x1002442d
mov ecx, edx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x10024414
xor ecx, ecx
jmp 0x10024416
add ecx, edx
cmp ecx, eax
jae 0x1002441c
mov ecx, eax
push ecx
mov esi, 0x444b3c
call fcn.100244a4
mov ecx, dword [0x444b40]
test ecx, ecx
je 0x10024439
mov dword [ecx], edi
mov ecx, dword [0x444b40]
mov eax, dword [ebp - 8]
add eax, 0xc
add ecx, 4
add ebx, 0xc
mov dword [0x444b40], ecx
mov dword [ebp - 8], eax
cmp eax, 0x1e0
jb 0x10024329
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x43d910
call fcn.1003e865
int3
Function at 0x40168a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x40f0d4], 0
jne 0x401698
call fcn.00401660
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4016c5
test cl, 7
je 0x4016c5
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
dec esi
inc ecx
jmp 0x4016a6
cmp esi, 8
jb 0x401749
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x40f0d0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
dec edi
jne 0x4016cf
xor edx, edx
test esi, esi
jbe 0x401769
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x40f0d0]
inc edx
cmp edx, esi
jb 0x401750
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x403005
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x40301f
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x403032
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x403045
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.004069f0
test eax, eax
je 0x40307e
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40307e
cmp word [eax], bx
je 0x40307e
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x403092
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4030ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4030ae
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x403110
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x4030dc
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040c95d
jmp 0x4030e5
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x4030f8
push dword [ebp + 8]
push eax
call fcn.00408e13
jmp 0x403106
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040c7aa
push dword [esi + 4]
mov ecx, esi
call fcn.00402e88
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4031db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x403201
cmp dword [ebp + 0xc], esi
jbe 0x4031f6
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403251
mov ecx, edi
call fcn.00402fbf
test al, al
je 0x403237
cmp dword [ebp + 0xc], esi
jbe 0x403237
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004031db
jmp 0x403254
cmp dword [edi + 0xc], 1
jne 0x40324c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40324c
xor eax, eax
jmp 0x403254
or eax, 0xffffffff
jmp 0x403254
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x403525
Capabilities:
Get file attributes

Disassembly:
call fcn.004069f0
test eax, eax
je 0x403545
mov eax, dword [esp + 8]
test eax, eax
je 0x403545
cmp word [eax], 0
je 0x403545
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x40354f
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8
Function at 0x4035aa
Capabilities:
Get file attributes

Disassembly:
call fcn.004069f0
test eax, eax
je 0x4035ca
mov eax, dword [esp + 8]
test eax, eax
je 0x4035ca
cmp word [eax], 0
je 0x4035ca
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4035d4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x4035d7
Capabilities:
Set file attributes

Disassembly:
call fcn.004069f0
test eax, eax
je 0x4035fb
mov eax, dword [esp + 8]
test eax, eax
je 0x4035fb
cmp word [eax], 0
je 0x4035fb
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x403609
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc

Function at 0x403738
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004069f0
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x40375d
test esi, esi
je 0x40375d
cmp word [esi], 0
je 0x40375d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x403768
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x403782
cmp byte [ebp + 0x10], 0
je 0x40377e
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004035d7
xor eax, eax
jmp 0x40379a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403797
cmp eax, 3
je 0x403797
xor eax, eax
inc eax
jmp 0x40379a
push 2
pop eax
pop esi
pop ebp
ret 0x10
Function at 0x404d66
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x404d98
cmp dword [ebp - 8], ebx
jne 0x404dd9
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x404dd9
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x404d85
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x404d85
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x404e19
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x40d92c
push eax
call dword [ecx]
test eax, eax
jl 0x404e19
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x404e10
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8