joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e3f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e423
push esi
call fcn.004414e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e41c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e4a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e492
mov eax, dword [esi + 8]
test eax, eax
je 0x43e447
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e48e
cmp eax, 2
je 0x43e492
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e43a
cmp eax, 3
je 0x43e46d
cmp eax, 1
jne 0x43e43a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e43a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e43a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e4d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e4b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e4d0
add esp, 4
pop esi
ret

Function at 0x4497a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x449806
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x449806
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4497e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x449b90
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x449bc8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x44a860
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44a8a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44ad20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044a8d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044a950
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044a950
lea ecx, [esi + 0xc]
call fcn.0045e1e8
lea ecx, [esi + 0x10]
call fcn.0045e1e8
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044bee0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044bee0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044bee0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045e25d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045e25d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x460601
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x460639
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045e6b8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045e690
jmp 0x460645
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461cf2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x461d34
call fcn.00467a6c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461d34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461d2b
xor eax, eax
jmp 0x461d3c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461d42
pop edi
pop esi
pop ebx
ret 4

Function at 0x467f9c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x467fca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467fe8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467f02
jmp 0x467fe8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467fe8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467f02
test edi, edi
mov eax, edi
jne 0x467fd2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402037
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x40b588], esi
push edi
jne 0x402071
mov ecx, 0x40b584
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40204d
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x40b984
jl 0x402048
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4020a6
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40b584]
xor eax, esi
inc ecx
dec edx
jne 0x402089
pop edi
pop esi
not eax
ret 0xc
Function at 0x403993
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403a1f
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x403a0a
cmp dword [ebp + 0x10], ebx
jne 0x4039fc
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403993
test eax, eax
jne 0x403a0a
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x4039cf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x403a1f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4045dc
Capabilities:
Identify system language via api

Disassembly:
push ecx
cmp byte [0x436000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov ebp, 0x436000
je 0x4045fc
push ebp
call fcn.00406d0d
jmp 0x404602
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x10], eax
xor edi, edi
mov esi, dword [0x42fc44]
mov eax, esi
dec esi
test eax, eax
je 0x40465e
mov eax, dword [0x42fc08]
mov ecx, dword [eax + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x42fc40]
mov ax, word [esp + 0x10]
mov edi, ecx
xor ax, word [ecx]
and eax, ebx
test ax, ax
je 0x404646
mov eax, esi
dec esi
add ecx, edx
test eax, eax
jne 0x40462a
jmp 0x40465e
mov eax, dword [edi + 2]
mov dword [0x42f3e8], eax
mov eax, dword [edi + 6]
mov dword [0x42fc84], eax
lea eax, [edi + 0xa]
mov dword [0x42f3e4], eax
cmp dword [0x42f3e4], 0
jne 0x404679
cmp bx, 0xffff
jne 0x404675
mov ebx, 0x3ff
jmp 0x404608
xor ebx, ebx
jmp 0x404608
movzx eax, word [edi]
push eax
push ebp
call fcn.00406cf4
push 0xfffffffffffffffe
push 0x42f400
call fcn.00406db5
push eax
push dword [0x42c5f0]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406742
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42de18], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x406766
test al, 0x10
jne 0x406769
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42de18
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406794
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x406823
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00406978
test eax, eax
je 0x406888
test byte [ebp + 0xc], 1
je 0x406870
mov eax, dword [0x42fc04]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 3
call fcn.00406da8
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x406888
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406888
test byte [ebp + 0xc], 2
je 0x406888
push eax
push esi
call fcn.00406ad3
pop esi
leave
ret 8
Function at 0x406978
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42da18
push esi
call fcn.00406d97
push esi
call fcn.00406927
test eax, eax
jne 0x406997
xor eax, eax
jmp 0x4069e0
test byte [0x42fc10], 0x80
je 0x4069ab
mov cl, byte [eax]
test cl, cl
je 0x406993
cmp cl, 0x5c
je 0x406993
mov edi, eax
sub edi, esi
push esi
call fcn.00406da8
cmp eax, edi
push esi
jle 0x4069d0
call fcn.004070ac
test eax, eax
je 0x4069c8
test byte [eax], 0x10
je 0x406993
push esi
call fcn.004068d5
jmp 0x4069af
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406a5b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x406a8a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406acf
mov eax, edi
dec edi
test eax, eax
jne 0x406a95
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x406ac9
Function at 0x406ad3
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406b0b
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406b0b
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406c50
mov eax, dword [0x40a338]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov dword [0x42e7a0], eax
mov edi, 0x400
mov ebp, 0x42e7a0
je 0x406b4f
push 1
push 0
push esi
call fcn.00406a5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406c56
cmp eax, edi
jg 0x406c56
mov esi, 0x42e3a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406c56
cmp eax, edi
jg 0x406c56
push esi
push ebp
push str._s_s_r_n
push 0x42dfa0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406c50
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x406c38
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406c2c
push str._Rename__r_n
push edi
call fcn.004069e5
test eax, eax
jne 0x406c5d
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00406d97
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x42dfa0
push eax
call fcn.00406a31
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42fc70]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a310
push eax
call fcn.004069e5
test eax, eax
je 0x406c13
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x406c86
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x406c79
sub eax, edi
jmp 0x406c15
Function at 0x406c8a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406cee
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406cdd
cmp dword [ebp + 0x14], 1
je 0x406cdf
cmp dword [ebp + 0x14], 2
je 0x406cdf
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4028ec
Capabilities:
Terminate process

Disassembly:
jmp 0x44f862
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x44f873
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040401b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40298c
Capabilities:
Query environment variable

Disassembly:
jmp 0x45c5d0
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45c5e1
pop esi
ret
push ebx
push edi
push esi
call fcn.0045c4b7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402f3b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45c609
push ebx
push esi
push edi
call fcn.00403ea9
add esp, 0xc
push 0
call fcn.00404615
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403f30
Capabilities:
Parse pe header

Disassembly:
jmp 0x4091fd
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40923c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40923c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40923c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40923c
cmp dword [ecx + 0x74], 0xe
jbe 0x40923c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x449eb0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x449eef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x449eef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x449eef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x449eef
cmp dword [ecx + 0x74], 0xe
jbe 0x449eef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x45a5da
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4892b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x45a625
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045aadb
test al, al
jne 0x45a61f
sub edx, 2
cmp edx, edi
jne 0x45a605
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45a647
lea eax, [edi + 2]
cmp edx, eax
je 0x45a647
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045a1d3
add esp, 0x10
jmp 0x45a741
push esi
lea ecx, [ebp - 0x255]
call fcn.0045aadb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45a68a
push dword [ebp - 0x25c]
jmp 0x45a637
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x45a6c7
cmp word [ebp - 0x226], 0
je 0x45a6e8
cmp word [ebp - 0x226], ax
jne 0x45a6c7
cmp word [ebp - 0x224], 0
je 0x45a6e8
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045a1d3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45a734
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45a6a1
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45a71c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45a741
push 0x459ab9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403d7d
add esp, 0x10
jmp 0x45a711
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040252c
leave
ret

Function at 0x460f25
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00403152
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x460f94
cmp esi, dword [ebp - 4]
je 0x460f8f
cmp dword [ebp + 0xc], 0
je 0x460f8f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x460f6c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0046094d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x460f96
xor eax, eax
inc eax
jmp 0x460f96
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x46df0d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x48b330]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46df4d
cmp byte [ebx], 0xa
jne 0x46df4d
or byte [edi + eax + 0x28], 4
jmp 0x46df52
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x46e051
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46e034
inc eax
cmp dl, 0xd
je 0x46df7e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46dfa4
cmp eax, ecx
jae 0x46dfb2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46df66
jmp 0x46e051
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e02f
cmp dword [ebp - 0x10], 0
je 0x46e02f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x48b330]
test byte [eax + edi + 0x28], 0x48
je 0x46e009
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46dff4
mov byte [esi], dl
jmp 0x46e005
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48b330]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46e051
cmp byte [ebp - 1], 0xa
jne 0x46e018
cmp esi, ebx
jne 0x46e018
mov byte [esi], 0xa
jmp 0x46e050
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004015ff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46e051
mov byte [esi], 0xd
jmp 0x46e050
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x48b330]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46e04e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46e051
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret