joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df41
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, 0xb1
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.0040e375
jmp 0x40dfd5
call fcn.00430d9d
push 0x24
cdq
pop ecx
idiv ecx
cmp edx, 9
ja 0x40df70
add dl, 0x30
jmp 0x40df73
add dl, 0x57
lea eax, [edx - 0x30]
mov cl, 9
cmp cl, al
sbb al, al
inc al
mov byte [ebp - 5], dl
test esi, esi
jne 0x40df8d
test al, al
jne 0x40dfd5
test esi, esi
je 0x40df9f
cmp dword [edi + 0x14], 0x10
jb 0x40df97
mov ecx, dword [edi]
jmp 0x40df99
mov ecx, edi
cmp byte [ecx + esi - 1], dl
je 0x40dfd5
cmp byte [ebp - 1], 0
jne 0x40dfc9
test al, al
je 0x40dfaf
mov byte [ebp - 1], 1
jmp 0x40dfc9
cmp dword [edi + 0x10], 0xb0
jne 0x40dfc9
call fcn.00430d9d
push 0xa
cdq
pop ecx
idiv ecx
add dl, 0x30
mov byte [ebp - 5], dl
push dword [ebp - 5]
mov ecx, edi
push 1
call fcn.0040e315
mov esi, dword [edi + 0x10]
cmp esi, ebx
jb 0x40df5b
pop esi
mov eax, edi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x40fd89
cmp word [esi], bx
je 0x40fd89
push ebx
push esi
call fcn.00431925
pop ecx
pop ecx
test eax, eax
jne 0x40fd89
cmp word [esi], bx
je 0x40fd8c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fd8c
test al, 0x10
je 0x40fd8c
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x40fdd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x30], 0
push ebx
push esi
push edi
push 9
xor eax, eax
mov ebx, ecx
pop ecx
push dword [ebp + 8]
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push 0x495690
push eax
mov esi, edx
call fcn.004311d6
add esp, 0xc
push ebx
lea eax, [ebp - 0x2c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40fe90
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40fe90
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x40fe90
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x40fe90
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
ja 0x40fe66
or ecx, 0xffffffff
call fcn.00408f87
jmp 0x40fe72
push ebx
mov ebx, eax
sub ebx, ecx
mov edi, esi
call fcn.004103b5
or ecx, 0xffffffff
xor eax, eax
call fcn.00408f87
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edx, esi
call fcn.004091d7
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fdff
leave
ret
Function at 0x40fea2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov esi, ecx
call fcn.00432100
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x210]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40fef4
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x210]
call fcn.00401f58
cmp dword [esi + 0x14], 8
jb 0x40ff18
mov eax, dword [esi]
jmp 0x40ff1a
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042fdff
leave
ret

Function at 0x40ff27
Capabilities:
Get common file path

Disassembly:
push 0x85c
mov eax, 0x4817b8
call fcn.00436485
mov eax, dword [ebp + 8]
mov dword [ebp - 0x868], eax
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor edi, edi
lea eax, [ebp - 0x80e]
push edi
push eax
call fcn.00432100
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea esi, [ebp - 0x848]
call fcn.00402a60
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], edi
mov word [ebp - 0x82c], ax
mov byte [ebp - 4], 1
or eax, 0xffffffff
xor ecx, ecx
lea esi, [ebp - 0x82c]
call fcn.00401c6a
push 0xa
mov eax, esi
pop ebx
call fcn.0040dfe6
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x864]
push eax
mov ebx, esi
call fcn.00410432
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x40ffdc
mov eax, dword [eax]
push 0
push eax
call fcn.00431925
pop ecx
mov ebx, eax
pop ecx
neg ebx
sbb bl, bl
push 1
xor edi, edi
lea esi, [ebp - 0x864]
call fcn.00401000
inc bl
jne 0x40ffa3
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x864]
push eax
lea ebx, [ebp - 0x82c]
call fcn.00410432
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0x868]
mov byte [ebp - 4], 2
call fcn.004029e2
push 1
lea esi, [ebp - 0x864]
call fcn.00401000
mov eax, dword [ebp - 0x868]
cmp dword [eax + 0x14], 8
jb 0x410048
mov ebx, dword [eax]
jmp 0x41004a
mov ebx, eax
push 1
xor edi, edi
lea esi, [ebp - 0x82c]
call fcn.00401000
push 1
lea esi, [ebp - 0x848]
call fcn.00401000
mov eax, ebx
call fcn.00436508
ret
Function at 0x41006e
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
or eax, 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x808], edi
call fcn.00401c6a
lea eax, [ebp - 0x808]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push edi
push eax
call fcn.00432100
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
cmp dword [ebp - 0x808], edi
je 0x410188
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push str.TEMP
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41017c
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41011c
sub eax, edx
push ebx
sar eax, 1
lea ecx, [ebp - 0x804]
call fcn.00401f58
push 0xc
mov edi, 0x49566c
push edi
xor eax, eax
mov ecx, esi
call fcn.00409f3a
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41017b
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41017b
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.00433c7d
pop ecx
push eax
push ebx
push esi
call fcn.0040e733
pop ebx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042fdff
leave
ret
Function at 0x4101fe
Capabilities:
Get common file path

Disassembly:
push 0x87c
mov eax, 0x481729
call fcn.00436485
mov eax, dword [ebp + 8]
mov dword [ebp - 0x884], eax
xor eax, eax
xor ebx, ebx
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
mov dword [ebp - 0x888], ebx
call fcn.00432100
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea esi, [ebp - 0x848]
call fcn.00402a60
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x410274
mov eax, esi
mov ecx, dword [ebp - 0x838]
lea eax, [eax + ecx*2]
cmp word [eax - 2], 0x5c
je 0x410297
xor edi, edi
push 0x495214
inc edi
lea eax, [ebp - 0x848]
call fcn.00402882
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x854], ebx
mov word [ebp - 0x864], cx
mov dword [ebp - 0x818], eax
xor eax, eax
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
push 8
lea eax, [ebp - 0x864]
pop ebx
mov byte [ebp - 4], 2
call fcn.0040dfe6
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x880]
push ecx
mov ebx, eax
call fcn.00410432
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x82c]
mov byte [ebp - 4], 3
call fcn.004029e2
push 1
xor edi, edi
lea esi, [ebp - 0x880]
mov byte [ebp - 4], 2
call fcn.00401000
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x410326
lea eax, [ebp - 0x82c]
push 0
push eax
call fcn.00431925
pop ecx
pop ecx
test eax, eax
jne 0x410357
push 1
xor edi, edi
lea esi, [ebp - 0x82c]
call fcn.00401000
push 1
lea esi, [ebp - 0x864]
call fcn.00401000
xor ebx, ebx
jmp 0x410297
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x41036c
lea eax, [ebp - 0x82c]
push eax
call fcn.004314ed
mov esi, dword [ebp - 0x884]
pop ecx
lea ebx, [ebp - 0x82c]
call fcn.00402868
push 1
xor edi, edi
mov esi, ebx
call fcn.00401000
push 1
lea esi, [ebp - 0x864]
call fcn.00401000
push 1
lea esi, [ebp - 0x848]
call fcn.00401000
mov eax, dword [ebp - 0x884]
call fcn.00436508
ret
Function at 0x412b81
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d14
call fcn.00442670
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x5ec]
push 0x495744
push eax
mov dword [ebp - 0x2d10], ebx
call fcn.004311d6
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x5ec]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0c], eax
cmp eax, 0xffffffff
je 0x412dd9
push edi
push 0xc
lea eax, [ebp - 0x2d08]
push ebx
push eax
mov dword [ebp - 0x2d14], ebx
call fcn.00432100
mov edi, 0x2710
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.00432100
add esp, 0x18
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412d0c
push esi
push 0x3e7
lea eax, [ebp - 0x3eb]
push ebx
push eax
mov byte [ebp - 0x3ec], bl
call fcn.00432100
mov eax, dword [ebp - 0x2cf0]
push ebx
mov esi, 0x4b0c88
lea ecx, [ebp - 0x2cfc]
call fcn.00412a38
mov eax, dword [ebp - 0x2cec]
push ebx
mov esi, 0x4b1088
lea ecx, [ebp - 0x2cfc]
call fcn.00412a38
mov eax, dword [ebp - 0x2ce4]
push 1
lea esi, [ebp - 0x3ec]
lea ecx, [ebp - 0x2cfc]
call fcn.00412a38
push 0x4b1088
push 0x4b0888
call fcn.00433ad0
add esp, 0x20
pop esi
cmp byte [0x4b0488], bl
jne 0x412cf8
movzx eax, byte [ebp - 0x3ec]
push eax
call fcn.00435815
pop ecx
test eax, eax
jne 0x412ce3
movzx eax, byte [ebp - 0x3d9]
push eax
call fcn.00435815
pop ecx
test eax, eax
je 0x412cf8
lea eax, [ebp - 0x3ec]
push eax
push 0x4b0488
call fcn.00433ad0
pop ecx
pop ecx
jmp 0x412d12
cmp byte [0x4b0888], bl
je 0x412d12
mov dword [ebp - 0x2d10], 1
jmp 0x412d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp - 0x2cfc]
push ebx
push eax
call fcn.00432100
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d14]
push eax
push edi
lea eax, [ebp - 0x2cfc]
push eax
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
test eax, eax
je 0x412dc7
xor eax, eax
push 0x3e6
mov word [ebp - 0x3ec], ax
lea eax, [ebp - 0x3ea]
push ebx
push eax
call fcn.00432100
lea eax, [ebp - 0x2cec]
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.00433ad0
add esp, 0x14
cmp byte [0x4b0488], bl
jne 0x412dcd
movsx eax, byte [ebp - 0x3ec]
push eax
call fcn.00435815
pop ecx
test eax, eax
jne 0x412da8
movsx eax, byte [ebp - 0x3d9]
push eax
call fcn.00435815
pop ecx
test eax, eax
je 0x412dcd
lea eax, [ebp - 0x3ec]
push eax
push 0x4b0488
call fcn.00433ad0
pop ecx
pop ecx
mov dword [ebp - 0x2d10], 1
jmp 0x412dcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2d0c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2d10]
xor ecx, ebp
pop ebx
call fcn.0042fdff
leave
ret
Function at 0x413830
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00442670
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00413682
mov dword [ebp - 0x1018], eax
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x1008], ax
xor edi, edi
lea eax, [ebp - 0x1006]
push edi
push eax
call fcn.00432100
xor eax, eax
push esi
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push edi
push eax
mov dword [ebp - 0x100c], edi
mov dword [ebp - 0x1010], edi
mov dword [ebp - 0x1014], edi
call fcn.00432100
add esp, 0x18
mov eax, 0x400
push eax
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x100c]
push ecx
push eax
lea eax, [ebp - 0x1008]
push eax
push 0x4958a0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
call fcn.00413789
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0042fdff
leave
ret

Function at 0x4138f6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.00442670
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1028], eax
call fcn.00413682
mov dword [ebp - 0x101c], eax
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x814], ax
xor ebx, ebx
lea eax, [ebp - 0x812]
push ebx
push eax
call fcn.00432100
xor eax, eax
push esi
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push ebx
push eax
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1020], ebx
call fcn.00432100
add esp, 0x18
mov eax, 0x400
push eax
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1020]
push ecx
lea ecx, [ebp - 0x1024]
push ecx
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x814]
push eax
push 0x4958a0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1018]
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x101c]
lea edx, [ebp - 0x14]
call fcn.00413789
push dword [ebp - 0x1028]
lea eax, [ebp - 0x14]
push eax
call fcn.004126e4
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042fdff
leave
ret
Function at 0x413aa1
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push 0x20
mov eax, 0x47fc2f
call fcn.0043644f
push dword [ebp + 8]
xor esi, esi
push esi
push 0x43a
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x413adf
mov dword [ebp - 0x1c], esi
push 0x49defc
lea eax, [ebp - 0x1c]
push eax
call fcn.004358ef
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 4
push 0x1000
lea edi, [eax + eax + 2]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, esi
jne 0x413b14
mov dword [ebp - 0x20], esi
push 0x49defc
lea eax, [ebp - 0x20]
jmp 0x413ad9
push esi
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x413b34
mov dword [ebp - 0x24], esi
push 0x49defc
lea eax, [ebp - 0x24]
jmp 0x413ad9
push 0x4958ac
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x413b5f
mov dword [ebp - 0x28], esi
push 0x49defc
lea eax, [ebp - 0x28]
jmp 0x413ad9
push esi
push esi
push ebx
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, esi
jne 0x413bb1
mov dword [ebp - 0x2c], esi
push 0x49defc
lea eax, [ebp - 0x2c]
jmp 0x413ad9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.004364f4
ret 8

Function at 0x413c79
Capabilities:
Enumerate gui resources

Disassembly:
push 0x2c
mov eax, 0x48327d
call fcn.00436485
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x38], eax
cmp edi, ecx
je 0x413cb0
mov ebx, ecx
sub ebx, ecx
sar ebx, 2
shl ebx, 2
push ebx
push ecx
push edi
call fcn.004300a0
add esp, 0xc
add ebx, edi
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
and dword [ebp - 4], eax
push str.XLMAIN
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x14], esi
call fcn.00401fd3
lea eax, [ebp - 0x34]
push eax
push 0x413bcc
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [esi + 4]
sub ebx, dword [esi]
push 1
xor edi, edi
lea esi, [ebp - 0x30]
sar ebx, 2
call fcn.00401000
mov eax, ebx
call fcn.00436508
ret
Function at 0x41402b
Capabilities:
Write file on windows

Disassembly:
push 0x460
mov eax, 0x48324d
call fcn.00436485
mov eax, dword [ebp + 8]
mov dword [ebp - 0x468], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], ebx
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x448]
push eax
mov dword [ebp - 4], ebx
call fcn.0040ff27
cmp dword [ebp - 0x434], 8
mov eax, dword [ebp - 0x448]
pop ecx
jae 0x414085
lea eax, [ebp - 0x448]
push 0x49520c
push eax
call fcn.004315dd
pop ecx
pop ecx
mov dword [ebp - 0x46c], eax
cmp eax, ebx
jne 0x414101
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push ebx
push eax
call fcn.00432100
mov eax, dword [ebp - 0x448]
add esp, 0xc
cmp dword [ebp - 0x434], 8
jae 0x4140cf
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x410]
push str.Cannot_open_file___s_
push eax
call fcn.004311d6
add esp, 0xc
lea eax, [ebp - 0x410]
mov dword [ebp - 0x468], eax
push 0x49e0e0
lea eax, [ebp - 0x468]
push eax
call fcn.004358ef
push 0xf
pop edi
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov ebx, dword [esi + 0x10]
jb 0x414125
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x42c]
push eax
call fcn.00413d85
test eax, eax
je 0x414204
mov eax, dword [ebp - 0x468]
xor ecx, ecx
cmp dword [eax + 0x30], ecx
je 0x4141d8
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x454], ecx
mov byte [ebp - 0x464], cl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x418], 0x10
mov ecx, dword [ebp - 0x42c]
jae 0x414176
lea ecx, [ebp - 0x42c]
add eax, 0x20
cmp dword [eax + 0x14], 0x10
jb 0x414181
mov eax, dword [eax]
push dword [ebp - 0x41c]
push ecx
push eax
lea ecx, [ebp - 0x464]
call fcn.004123ca
mov eax, dword [ebp - 0x464]
add esp, 0xc
cmp dword [ebp - 0x450], 0x10
jae 0x4141ac
lea eax, [ebp - 0x464]
push dword [ebp - 0x46c]
push 1
push dword [ebp - 0x454]
push eax
call fcn.0043174b
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x464]
mov byte [ebp - 4], 1
call fcn.00407b2e
jmp 0x414204
cmp dword [ebp - 0x418], 0x10
mov eax, dword [ebp - 0x42c]
jae 0x4141ed
lea eax, [ebp - 0x42c]
push dword [ebp - 0x46c]
push 1
push dword [ebp - 0x41c]
push eax
call fcn.0043174b
add esp, 0x10
push dword [ebp - 0x46c]
call fcn.00431832
pop ecx
mov ecx, dword [ebp - 0x468]
push 0xffffffffffffffff
push 0
add ecx, 4
lea eax, [ebp - 0x448]
call fcn.00401cdb
push 1
xor edi, edi
lea esi, [ebp - 0x42c]
call fcn.00407b2e
push 1
lea esi, [ebp - 0x448]
call fcn.00401000
call fcn.00436508
ret 4
Function at 0x4142d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x4142e5
mov eax, dword [eax]
push ebx
push 0x495688
push eax
call fcn.004315dd
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41436a
push esi
mov esi, ebx
call fcn.0040fd92
mov esi, eax
push esi
call fcn.0042f09c
push esi
push 0
push eax
mov dword [ebp - 4], eax
call fcn.00432100
push ebx
push 1
push esi
push dword [ebp - 4]
call fcn.00434bee
push ebx
call fcn.00431832
add esp, 0x24
cmp dword [edi + 0x30], 0
je 0x41434d
lea eax, [edi + 0x20]
cmp dword [eax + 0x14], 0x10
jb 0x41433b
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push esi
push dword [ebp - 4]
push eax
call fcn.004123ca
add esp, 0xc
jmp 0x41435a
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.004091d7
push dword [ebp - 4]
call fcn.0043053b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
pop ecx
pop esi
pop ebx
leave
ret 4

Function at 0x4161b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4a5214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.00432100
mov edx, dword [edi + 0x18]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
mov eax, dword [edi + 0x1c]
lea edx, [ebp - 0x218]
push edx
push ebx
mov dword [ebp - 0x214], eax
mov eax, dword [edi]
push 0x44b
lea ecx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], 5
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_HideCaret]
mov ecx, dword [esi + 0xb4]
pop ebx
cmp ecx, dword [esi + 0xb8]
je 0x4162c1
mov eax, dword [ecx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042fdff
mov esp, ebp
pop ebp
ret