joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459220
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov edi, dword [eax]
cmp dword [ecx + 0xfc], edi
jne 0x459255
mov esi, dword [eax + 4]
cmp dword [ecx + 0x100], esi
jne 0x459255
mov eax, dword [ecx + 0xdc]
sub esi, dword [ecx + 0xe4]
cmp esi, eax
jge 0x459268
jmp 0x459286
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebx + 0x100], edx
mov dword [ebx + 0xfc], eax
jmp 0x4592c9
add eax, 0x1d
cmp esi, eax
jg 0x459286
mov ecx, dword [ecx + 0x110]
or esi, 0xffffffff
mov eax, dword [ecx]
call dword [eax + 0xc8]
test eax, eax
jne 0x4592d5
jmp 0x4592f5
mov dword [esp], ebx
lea ecx, [ebp - 0x28]
call fcn.00455502
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
sub eax, 0x1e
push ecx
cmp esi, eax
jl 0x4592c9
mov ecx, dword [ebx + 0x110]
mov eax, dword [ecx]
call dword [eax + 0xc8]
mov esi, dword [ebx + 0xbc]
mov ecx, ebx
mov edi, eax
call fcn.004558dc
sub esi, eax
cmp edi, esi
je 0x4592f5
mov esi, 1
jmp 0x4592d5
mov dword [ebx + 0x104], 0
jmp 0x4592f5
cmp dword [ebx + 0x104], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4592fc
call eax
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x104], eax
xor eax, eax
jmp 0x45937c
call eax
mov edx, eax
sub edx, dword [ebx + 0x104]
cmp edx, 0x12b
jbe 0x4592f5
mov dword [ebx + 0x104], eax
mov eax, dword [ebx + 0x108]
cmp eax, 7
ja 0x459332
cmp eax, 3
ja 0x45932d
cmp eax, 1
jbe 0x459335
add esi, esi
jmp 0x459335
shl esi, 2
jmp 0x459335
shl esi, 3
inc eax
mov dword [esp + 4], 0xffffffff
mov ecx, ebx
mov dword [ebx + 0x108], eax
mov dword [esp], 0xffffffff
call fcn.004583fa
push edx
push edx
test al, al
je 0x45935f
mov ecx, ebx
call method.IWindow.update__
mov dword [esp + 8], 0
mov ecx, ebx
mov dword [esp + 4], esi
mov dword [esp], 0xffffffff
call fcn.00458570
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x464ea2
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
lea eax, [ebp - 0x1c]
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x3c
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp + 8], 0xa
add eax, 4
mov dword [esp], eax
call sub.msvcrt.dll_strtol
imul eax, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov al, byte [eax]
test al, al
jne 0x464ee5
mov eax, dword [ebp - 0x30]
mov cl, 1
mov dword [esi], eax
jmp 0x464f4d
cmp ebx, 1
seta cl
cmp al, 0x2e
sete al
and cl, al
jne 0x464ef8
xor ecx, ecx
jmp 0x464f4d
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x1c], edx
movsx eax, byte [eax + 1]
test al, al
je 0x464f35
cmp ebx, 1
jbe 0x464f35
sub eax, 0x30
cmp eax, 9
ja 0x464ef4
imul edx, dword [ebp - 0x2c], 0xa
add eax, edx
xor edx, edx
mov dword [ebp - 0x2c], eax
mov eax, ebx
mov ebx, 0xa
div ebx
mov ebx, eax
jmp 0x464eff
mov eax, dword [edi]
imul ebx, dword [ebp - 0x2c]
cmp dword [eax], 0
je 0x464f48
cmp byte [eax + 4], 0x2d
jne 0x464f48
neg ebx
add ebx, dword [ebp - 0x30]
mov dword [esi], ebx
add esp, 0x3c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a1bd8
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x4a1bf8
sub eax, 2
cmp eax, 1
jbe 0x4a1c2c
jmp 0x4a1cfe
mov dword [esp], str.receiving_data...
lea esi, [ebp - 0x1c]
mov ecx, esi
call fcn.004c639a
mov ecx, ebx
push edi
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004a1972
mov ecx, esi
push eax
push eax
call fcn.004c616a
mov dword [ebx + 8], 2
cmp dword [ebp + 8], 0
jne 0x4a1c3e
mov eax, dword [ebp + 0xc]
jmp 0x4a1c99
mov dword [ebx + 8], 2
cmp dword [ebx + 8], 2
lea esi, [ebx + 0x4c]
jne 0x4a1cb2
lea edx, [ebx + 0x10]
xor eax, eax
mov ecx, 9
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebx + 0xc]
mov dword [ebx + 0xc], 0x28
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], 0x1000
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call dword [sym.imp.WININET.DLL_InternetReadFileExA]
sub esp, 0x10
test eax, eax
jne 0x4a1cb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4a1ca9
mov dword [esp], eax
mov ecx, ebx
call fcn.004a1b66
push ebx
jmp 0x4a1d29
mov dword [ebx + 8], 3
jmp 0x4a1d29
mov eax, dword [ebx]
mov edx, dword [ebx + 0x24]
mov ecx, ebx
mov dword [esp], esi
mov dword [esp + 4], edx
call dword [eax + 4]
push ecx
push ecx
cmp dword [ebx + 0x24], 0
jne 0x4a1c37
mov dword [esp], 0x52726d
lea esi, [ebp - 0x1c]
mov ecx, esi
call fcn.004c639a
mov ecx, ebx
push eax
mov dword [esp], esi
mov dword [esp + 4], 0
call fcn.004a1972
mov ecx, esi
push edx
push edx
call fcn.004c616a
jmp 0x4a1d29
mov dword [esp + 4], str.onCompletion_in_wrong_state
mov dword [esp], 0x5694e0
call fcn.004c8905
mov edx, dword [ebx + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004c8a58
mov dword [esp], eax
call fcn.004c8cf3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4a1d6a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
test eax, eax
je 0x4a1e0e
mov ecx, dword [ecx + 0x48]
cmp ecx, 0xffffffff
je 0x4a1dee
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x4a1e37
mov dword [esp], str.failed:_couldnt_write_file_to_disk
lea esi, [ebp - 0xc]
mov ecx, esi
call fcn.004c639a
mov ecx, ebx
push eax
mov dword [esp], esi
mov dword [esp + 4], 0xffffffff
call fcn.004a1972
mov ecx, esi
push eax
push eax
call fcn.004c616a
mov ecx, ebx
call fcn.004a1b28
jmp 0x4a1e37
mov dword [esp], edx
lea esi, [ebp - 0xc]
mov dword [esp + 4], eax
mov ecx, esi
call fcn.004c638a
push ecx
push ecx
lea ecx, [ebx + 0x44]
mov dword [esp], esi
call fcn.004c6518
jmp 0x4a1e2f
lea eax, [ecx + 0x44]
lea esi, [ebp - 0xc]
mov dword [esp], eax
mov ecx, esi
call fcn.004c6316
mov ecx, ebx
push edx
call fcn.004a1b28
mov eax, dword [ebx]
mov dword [esp], esi
mov ecx, ebx
call dword [eax]
push eax
mov ecx, esi
call fcn.004c616a
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
Function at 0x4a220e
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x4a2253
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 4
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0x20000005
mov dword [esp], eax
call dword [sym.imp.WININET.DLL_HttpQueryInfoA]
sub esp, 0x14
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x4a2646
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x1020
mov ebp, esp
push esi
push ebx
call fcn.004cb790
sub esp, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x5274d1
mov eax, dword [eax]
add eax, 4
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x4a26cf
lea esi, [ebp - 0x1008]
mov dword [esp + 0xc], eax
mov ebx, eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
mov dword [esp], esi
lea ecx, [ebp - 0x100c]
add eax, esi
mov dword [esp + 4], eax
call fcn.004c63d0
push eax
push eax
lea eax, [ebp - 0x100c]
call fcn.004a25b9
lea ecx, [ebp - 0x100c]
call fcn.004c616a
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov al, 1
jmp 0x4a26ed
mov dword [esp + 4], str.file_does_not_exist
mov dword [esp], 0x5694e0
call fcn.004c8905
mov dword [esp], eax
call fcn.004c8cf3
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4a2ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x20]
push ebx
mov ebx, ecx
mov ecx, esi
sub esp, 0x3c
call fcn.00427ac0
mov eax, dword [ebx]
mov dword [esp], 0x8fe0001
mov ecx, esi
mov dword [esp + 4], eax
call fcn.004288ae
push ecx
push ecx
mov ecx, esi
mov dword [esp], 0x30000003
call fcn.00428776
mov byte [ebp - 0x1c], 0
push edi
mov edi, eax
lea eax, [ebp - 0x1c]
mov ecx, edi
mov dword [esp + 4], eax
mov dword [esp], 0x7da8
call fcn.004c7482
push eax
push eax
lea eax, [ebp - 0x1c]
mov edx, dword [edi]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esp + 4], edx
sub eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18]
shl eax, 4
add eax, dword [ebx + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x4a3088
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x21]
mov ecx, edi
mov byte [ebp - 0x21], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004c7482
mov edx, dword [ebx + 0x24]
mov ecx, esi
push eax
push eax
mov eax, dword [ebp - 0x1c]
add dword [ebx + 0x20], eax
add edx, eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x24], edx
shl eax, 4
add eax, dword [ebx + 0x10]
cmp dword [eax + 8], edx
mov dword [esp], 4
sete al
movzx eax, al
mov dword [esp + 4], eax
call fcn.00428884
push edx
push edx
call sym.winbox.exe_getGlobalHandler__
mov edx, dword [ebx + 0xc]
mov ecx, eax
mov eax, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x527734
mov dword [esp], 2
call dword [eax + 0x5c]
mov ecx, esi
sub esp, 0x14
call fcn.0042851a
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a3d54
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov eax, 0x403c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004cb790
xor esi, esi
sub esp, eax
mov ebx, ecx
call fcn.004a3cae
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
sub eax, edx
sar eax, 2
imul eax, eax, 0xaaaaaaab
cmp esi, eax
jae 0x4a3df7
imul ecx, esi, 0xc
mov eax, dword [edx + ecx + 4]
mov dword [ebp - 0x402c], ecx
add eax, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x4020]
mov ecx, dword [ebp - 0x402c]
push edi
lea edi, [ebp - 0x4019]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4000
mov eax, dword [eax + ecx + 4]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
sub esp, 0x10
test eax, eax
je 0x4a3df1
mov eax, dword [ebp - 0x4020]
test eax, eax
je 0x4a3de7
mov byte [eax], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ecx
inc esi
jmp 0x4a3d6f
mov dword [esp], 0x4ce624
lea ecx, [ebx + 0x20]
call fcn.004c8088
lea eax, [ebx + 0x18]
mov edi, dword [ebx + 0x18]
push edx
mov dword [ebp - 0x402c], eax
mov eax, dword [ebx + 0x1c]
mov esi, edi
cmp eax, esi
je 0x4a3e3c
lea ecx, [esi + 4]
mov dword [ebp - 0x4030], eax
call fcn.004c616a
mov ecx, esi
add esi, 0xc
call fcn.004c616a
mov eax, dword [ebp - 0x4030]
jmp 0x4a3e18
sub eax, edi
mov dword [esp], edi
mov ecx, dword [ebp - 0x402c]
shr eax, 2
imul eax, eax, 0x2aaaaaab
and eax, 0x3fffffff
imul eax, eax, 0xc
add eax, edi
mov dword [esp + 4], eax
call fcn.004c7160
mov ecx, dword [ebp - 0x402c]
push eax
push eax
call fcn.004c707a
lea ecx, [ebx + 0x10]
call fcn.004a2e0c
lea ecx, [ebx + 0xc]
call fcn.004a2e1e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a7c26
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x8038
call fcn.004cb790
sub esp, eax
lea ebx, [ebp - 0x8018]
mov eax, dword [esp + eax]
mov dword [esp + 0xc], ebx
mov esi, eax
lea eax, [ebp - 0x8020]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10
mov dword [esp], 2
mov dword [ebp - 0x8020], 0x8000
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
sub esp, 0x14
test eax, eax
jne 0x4a7cd0
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x4a7cc9
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
xor eax, eax
mov edi, dword [edx + 4]
xor edx, edx
cmp edx, ecx
je 0x4a7ca4
shr eax, 1
inc edx
or eax, 0x80000000
jmp 0x4a7c96
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, esi
push edx
not eax
or eax, edi
mov dword [ebp - 0x801c], eax
lea eax, [ebp - 0x801c]
mov dword [esp], eax
call fcn.0050c704
push ecx
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4a7c7f
mov eax, dword [esi + 4]
cmp dword [esi], eax
jne 0x4a7cf2
lea eax, [ebp - 0x801c]
mov ecx, esi
mov dword [ebp - 0x801c], 0xffffffff
mov dword [esp], eax
call fcn.0050c704
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a7e9e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x454]
push ebx
mov ebx, ecx
sub esp, 0x4ac
mov dword [ecx + 0x54], 0xffffffff
mov ecx, esi
mov dword [esp], 6
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x454], 0
call fcn.004a75f6
mov eax, dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x480], 2
push ecx
mov dword [ebp - 0x48c], eax
mov dword [esp], 0x162e
call eax
mov dword [ebp - 0x47c], 0xffffffff
push edi
mov word [ebp - 0x47e], ax
lea eax, [ebp - 0x480]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0x14], 0x10
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
sub esp, 0x18
test eax, eax
jg 0x4a7f4c
mov dword [esp], str.sendto_old
call sub.msvcrt.dll_perror
mov eax, dword [ebx + 0x48]
mov edi, dword [ebx + 0x44]
mov dword [ebp - 0x490], eax
cmp dword [ebp - 0x490], edi
je 0x4a7f94
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
test eax, eax
jg 0x4a7f8f
mov eax, str.sendto
call fcn.004a74fc
add edi, 4
jmp 0x4a7f58
cmp dword [ebx + 0x40], 0xffffffff
je 0x4a8029
mov word [ebp - 0x470], 0x17
mov eax, dword [ebp - 0x48c]
lea edi, [ebp - 0x468]
mov dword [esp], 0x162e
call eax
mov ecx, 0xf
mov byte [ebp - 0x459], 1
push edx
lea edx, [ebp - 0x470]
mov word [ebp - 0x46e], ax
xor eax, eax
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x54]
mov word [ebp - 0x468], 0x2ff
mov dword [ebp - 0x458], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x14], 0x1c
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
sub esp, 0x18
test eax, eax
jg 0x4a8029
mov eax, str.sendto6
call fcn.004a74fc
inc dword [ebx + 0x60]
jne 0x4a8069
mov dword [esp + 4], 0x5149b4
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.004cdd1c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x64
call sym.winbox.exe_addTimer_unsigned_int__EventListener__void__bool_
mov dword [ebx + 0x54], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4a8627
Capabilities:
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x440
mov dword [esp + 0x10], 0x568ea0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 0x14
test eax, eax
jns 0x4a86f9
mov dword [esp + 4], 0x104
mov dword [esp], 0x568ea0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push eax
push eax
mov dword [esp + 4], str.AppData
mov dword [esp], 0x568ea0
call sub.msvcrt.dll_strcat
mov dword [esp], 0x568ea0
call esi
inc eax
push edx
jne 0x4a86f9
mov dword [esp + 4], 0
mov dword [esp], 0x568ea0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push ebx
test eax, eax
jne 0x4a86f9
mov dword [esp + 4], str.couldnt_make_directory
mov dword [esp], 0x5694e0
call fcn.004c8905
mov dword [esp + 4], 0x568ea0
mov dword [esp], eax
call fcn.004c8905
mov dword [esp], eax
call fcn.004c8cf3
mov ecx, dword [ebp + 8]
call fcn.004c62d0
jmp 0x4a8775
lea ebx, [ebp - 0x426]
mov dword [esp + 8], 0x568ea0
mov dword [esp + 4], str._sMikrotik
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call esi
inc eax
push edx
jne 0x4a8733
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
push ecx
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x21c]
mov dword [esp + 4], str._sWinbox
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call esi
inc eax
push edx
jne 0x4a8769
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push esi
mov dword [esp], ebx
mov ecx, dword [ebp + 8]
call fcn.004c639a
push ecx
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4a877f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea ecx, [ebp - 0x160]
push ebx
sub esp, 0x17c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004c6316
lea ecx, [ebp - 0x160]
push eax
mov dword [esp], 0x527a0c
call fcn.004c6550
push eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
push edx
xor eax, eax
push edx
cmp esi, 0xffffffff
je 0x4a88af
lea edi, [ebp - 0x12c]
mov dword [esp + 4], 0x527a0f
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4a8886
mov dword [esp + 4], 0x527a11
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4a8886
mov dword [esp], edi
lea ecx, [ebp - 0x15c]
call fcn.004c639a
push eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [esp], edx
sub eax, edx
sar eax, 2
mov edi, eax
call fcn.004c99c3
shr eax, 2
cmp edi, eax
jne 0x4a8863
mov dword [esp + 4], 4
mov eax, dword [ebx + 4]
mov edx, 1
mov ecx, ebx
sub eax, dword [ebx]
sar eax, 2
add eax, eax
cmove eax, edx
shl eax, 2
mov dword [esp], eax
call fcn.004c70ac
push edi
push edi
lea eax, [ebp - 0x15c]
mov ecx, dword [ebx + 4]
mov dword [esp], eax
call fcn.004c633e
lea eax, [ebp - 0x15c]
push ecx
mov ecx, eax
add dword [ebx + 4], 4
call fcn.004c616a
lea eax, [ebp - 0x158]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edx
push edx
test eax, eax
jne 0x4a87de
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push eax
mov al, 1
lea ecx, [ebp - 0x160]
mov byte [ebp - 0x169], al
call fcn.004c616a
mov al, byte [ebp - 0x169]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4a88ce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x210]
sub esp, 0x220
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edx
push edx
test eax, eax
jne 0x4a8900
mov ecx, dword [ebp + 8]
call fcn.004c62d0
jmp 0x4a8936
lea ebx, [ebp - 0x10c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x527a14
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x4a88f6
mov dword [esp], ebx
mov ecx, dword [ebp + 8]
call fcn.004c639a
push eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4b07db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], 0x569240
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebx + 8]
mov ecx, 0x14
push eax
mov edi, edx
push eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], esi
mov dword [ebx], 0x58
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x20], 0x104
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x2c], 0x569240
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x34], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4b08c2
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x35c
mov dword [esp + 8], eax
mov dword [esp + 4], str._s
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x358]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ecx
push ecx
test eax, eax
je 0x4b0970
mov esi, eax
cmp byte [ebp - 0x32c], 0x2e
je 0x4b094d
lea eax, [ebp - 0x32c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
test al, 0x10
je 0x4b0943
mov eax, ebx
call fcn.004b08c2
jmp 0x4b094d
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea eax, [ebp - 0x358]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edx
push edx
test eax, eax
jne 0x4b0905
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b1554
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x83c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], str.loading
mov dword [esp], 0x5694e0
call fcn.004c8905
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.005207c0
mov dword [esp], eax
call fcn.004c8cf3
mov dword [esp + 4], 0x528db4
mov eax, dword [ebx]
add eax, 4
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
jne 0x4b15d1
mov dword [esp + 4], str.could_not_open
mov dword [esp], 0x5694a0
call fcn.004c8905
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.005207c0
mov dword [esp], eax
call fcn.004c8cf3
jmp 0x4b1728
mov dword [esp], 0x2c
mov edi, eax
call sub.msvcrt.dll_malloc
mov ebx, eax
mov ecx, eax
call fcn.0047791e
mov dword [ebx + 0x28], 2
mov dword [esp], edi
call sub.msvcrt.dll_feof
mov esi, eax
test eax, eax
jne 0x4b172c
lea eax, [ebp - 0x818]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x82c], eax
test eax, eax
je 0x4b172c
cmp esi, dword [ebp - 0x82c]
jge 0x4b15ef
mov eax, dword [ebp - 0x82c]
mov ecx, ebx
sub eax, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x818]
add eax, esi
mov dword [esp], eax
call fcn.00477998
push ecx
push ecx
test eax, eax
jle 0x4b1676
mov ecx, ebx
add esi, eax
call fcn.00477a7a
test eax, eax
jne 0x4b16a6
cmp dword [ebp - 0x82c], esi
je 0x4b15ef
mov dword [esp + 4], str.parse_error
mov dword [esp], 0x5694a0
call fcn.004c8905
mov dword [esp], eax
call fcn.004c8cf3
mov ecx, ebx
call fcn.004b0c1c
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x4b1728
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4b172c
mov eax, dword [eax + 8]
sub eax, 2
cmp eax, 1
ja 0x4b16e0
cmp dword [edx + 8], 2
jne 0x4b16d9
mov dword [esp], edx
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x830], edx
call method.CService.CService_JSNode_
push edx
mov edx, dword [ebp - 0x830]
mov edx, dword [edx + 4]
test edx, edx
jne 0x4b16b8
mov ecx, ebx
call fcn.004b0c1c
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], 0x2c
call sub.msvcrt.dll_malloc
mov ecx, eax
mov ebx, eax
call fcn.0047791e
mov dword [esp + 4], 3
mov ecx, ebx
mov dword [esp], 0x528f0b
call fcn.00477998
push eax
push eax
mov dword [ebx + 0x28], 2
jmp 0x4b1631
xor eax, eax
jmp 0x4b1745
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov ecx, ebx
call fcn.004b0c1c
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov al, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret