joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041f0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call ebx
mov ecx, dword [0x47adac]
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x404225
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [0x47adac], eax
test eax, eax
jne 0x40424c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004197d1
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404268
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4042b4
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push dword [0x47adac]
mov edi, 1
call esi
test eax, eax
je 0x4042b4
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x4042b6
cmp eax, 1
je 0x4042b4
call ebx
sub eax, dword [ebp - 0x24]
cmp eax, 0xea60
ja 0x4042f0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push dword [0x47adac]
call esi
test eax, eax
jne 0x404283
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x47adac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov dword [0x47adac], 0
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004197d1
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x41d
call ebx
xor edi, edi
jmp 0x4042bc

Function at 0x404310
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x479fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf01ff
push esi
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x404354
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004197d1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
test edi, edi
je 0x4043b1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x4043ae
nop dword [eax]
cmp dword [ebp - 0x1c], 1
je 0x4043b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
cmp eax, 0xea60
ja 0x4043a3
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x404380
jmp 0x4043ae
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004197d1
mov esp, ebp
pop ebp
ret
Function at 0x404490
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x4481d0
call fcn.00403650
mov edi, dword [ebp + 0xc]
add esp, 4
cmp dword [edi], 0
jne 0x404543
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 0x18
push 0
push 0
push edi
call esi
test eax, eax
jne 0x404543
push 0x447fb8
push 0x448044
call fcn.00403650
add esp, 8
push 8
push 0x18
push 0
push 0
push edi
call esi
test eax, eax
jne 0x404543
push 0x448050
push 0x448044
call fcn.00403650
add esp, 8
push 0x20
push 0x18
push 0
push 0
push edi
call esi
test eax, eax
jne 0x404543
push 0x4480c8
push 0x448044
call fcn.00403650
add esp, 8
push 0x28
push 0x18
push 0
push 0
push edi
call esi
test eax, eax
jne 0x404543
push 0x448158
push 0x448044
call fcn.00403650
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
add ebx, 0x13
push ebx
call fcn.00423a68
push dword [esi]
mov dword [ebp + 0xc], eax
push dword [esi + 8]
push eax
call fcn.0041ad10
mov ecx, dword [esi]
add esp, 0x10
mov esi, dword [ebp + 0xc]
movups xmm0, xmmword [0x4481f8]
movups xmmword [ecx + esi], xmm0
mov ax, word [0x448208]
mov word [ecx + esi + 0x10], ax
mov al, byte [0x44820a]
mov byte [ecx + esi + 0x12], al
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8004
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40453a
push 0
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40453a
push dword [ebp + 0x10]
push 0
push dword [ebp - 4]
push 0x6610
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404710
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi], 0
jne 0x4047b1
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 0x18
push 0
push 0
push esi
call edi
test eax, eax
jne 0x4047b1
push 0x447fb8
push 0x448044
call fcn.00403650
add esp, 8
push 8
push 0x18
push 0
push 0
push esi
call edi
test eax, eax
jne 0x4047b1
push 0x448050
push 0x448044
call fcn.00403650
add esp, 8
push 0x20
push 0x18
push 0
push 0
push esi
call edi
test eax, eax
jne 0x4047b1
push 0x4480c8
push 0x448044
call fcn.00403650
add esp, 8
push 0x28
push 0x18
push 0
push 0
push esi
call edi
test eax, eax
jne 0x4047b1
push 0x448158
push 0x448044
call fcn.00403650
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4047c0
Capabilities:
Encrypt or decrypt via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 4]
push 0
push esi
push 4
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404802
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4481a8
call fcn.00403650
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
push ebx
push edi
jne 0x404819
mov ecx, dword [ebp - 4]
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov edx, edi
mov dword [ebp - 8], eax
jmp 0x404833
push dword [ebp - 4]
call fcn.00423a68
mov ecx, dword [ebp - 4]
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov edx, ecx
test edx, edx
je 0x404881
push 0
push esi
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x40485c
mov eax, dword [ebp - 8]
add eax, dword [esi]
mov dword [ebp - 8], eax
sub edi, dword [esi]
jne 0x404837
mov ecx, dword [ebp - 4]
jmp 0x404884
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4481a8
call fcn.00403650
push dword [ebp - 0xc]
call fcn.0042384e
add esp, 0xc
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [esi], ecx
test eax, eax
je 0x4048e3
mov edi, dword [ebp - 0xc]
push esi
push edi
push 0
push 1
push 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ebx, eax
test ebx, ebx
je 0x4048c6
push dword [esi]
push edi
push dword [ebp + 0x10]
call fcn.0041ad10
add esp, 0xc
push edi
call fcn.0042384e
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4481bc
call fcn.00403650
add esp, 8
push edi
call fcn.0042384e
add esp, 4
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4048f0
Capabilities:
Encrypt or decrypt via wincrypt
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 1
push ebx
test edi, edi
jne 0x40492d
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4049ee
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
jmp 0x40499c
mov eax, dword [ebp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push 1
push 0
push dword [edi]
call esi
push dword [ebp + 8]
call fcn.00423a68
push dword [ebp + 8]
mov ebx, eax
push dword [ebp + 0x10]
push ebx
call fcn.0041ad10
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 4]
add esp, 0x10
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push eax
push ebx
push 0
push 1
push 0
push dword [edi]
call esi
test eax, eax
je 0x4049e5
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4049e5
mov esi, dword [ebp + 8]
mov edi, ebx
test esi, esi
je 0x4049ca
push 0
lea eax, [ebp - 4]
push eax
mov eax, 0xffff
cmp esi, eax
cmovb eax, esi
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x4049e1
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x4049a0
test ebx, ebx
je 0x4049d7
push ebx
call fcn.0042384e
add esp, 4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4049ee
push ebx
call fcn.0042384e
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a00
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x89c
mov eax, dword [0x479fcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x874], ecx
push str.DeviceLanmanRedirector_sipc_
push eax
call fcn.00404410
mov eax, dword [0x47adcc]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x404a60
push 0x448238
push 0x448224
call edi
push eax
call esi
mov dword [0x47adcc], eax
lea ecx, [ebp - 0x804]
push ecx
lea ecx, [ebp - 0x89c]
push ecx
call eax
lea eax, [ebp - 0x89c]
mov dword [ebp - 0x894], 0x18
mov dword [ebp - 0x88c], eax
mov eax, dword [0x47add0]
mov dword [ebp - 0x890], 0
mov dword [ebp - 0x888], 0x40
mov dword [ebp - 0x884], 0
mov dword [ebp - 0x880], 0
test eax, eax
jne 0x404acb
push 0x448250
push 0x448224
call edi
push eax
call esi
mov dword [0x47add0], eax
push 0x90
push 1
lea ecx, [ebp - 0x87c]
push ecx
lea ecx, [ebp - 0x894]
push ecx
push 0x100001
lea ecx, [ebp - 0x870]
push ecx
call eax
mov ebx, eax
test ebx, ebx
jne 0x404be5
mov eax, dword [0x47add4]
mov ebx, dword [ebp - 0x870]
mov dword [ebp - 0x824], 6
mov dword [ebp - 0x820], 2
test eax, eax
jne 0x404b2f
push 0x44825c
push 0x448224
call edi
push eax
call esi
mov dword [0x47add4], eax
push 0x44
lea ecx, [ebp - 0x86c]
push ecx
push 0x24
lea ecx, [ebp - 0x828]
push ecx
push 0x1401a3
lea ecx, [ebp - 0x87c]
push ecx
push 0
push 0
push 0
push ebx
call eax
mov ebx, eax
test ebx, ebx
jne 0x404b6c
mov eax, dword [ebp - 0x874]
movups xmm0, xmmword [ebp - 0x840]
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x874], eax
mov eax, dword [0x47add4]
mov dword [ebp - 0x824], 6
mov dword [ebp - 0x820], 1
test eax, eax
jne 0x404ba9
push 0x44825c
push 0x448224
call edi
push eax
call esi
mov dword [0x47add4], eax
push 0
push 0
push 0x24
lea ecx, [ebp - 0x828]
push ecx
push 0x1401ac
lea ecx, [ebp - 0x87c]
push ecx
push 0
push 0
push 0
push dword [ebp - 0x874]
call eax
cmp eax, 0x103
jne 0x404be5
push 0xffffffffffffffff
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x47adc8]
test eax, eax
jne 0x404c0e
push 0x44820c
push 0x448224
call edi
push eax
call esi
mov dword [0x47adc8], eax
push ebx
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004197d1
mov esp, ebp
pop ebp
ret
Function at 0x410800
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
call fcn.00404710
add esp, 4
test eax, eax
jne 0x410835
call fcn.00403190
push str._rError_initializing_crypto:_n
jmp 0x410930
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41085e
call fcn.00403190
push str._rError_reading_public_key_length_from_PsExec_services:_n
jmp 0x410930
push dword [ebp - 8]
call fcn.00423a68
add esp, 4
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
push 0
push ecx
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410890
call fcn.00403190
push str._rError_reading_public_key_from_PsExec_service:_n
jmp 0x410930
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push dword [edi]
call fcn.004046f0
add esp, 0x14
test eax, eax
jne 0x4108b6
call fcn.00403190
push str._rError_importing_public_key:_n
jmp 0x410930
push dword [ebp - 4]
call fcn.0042384e
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 0x6610
push dword [ebp - 0x10]
push dword [edi]
call fcn.00404610
add esp, 0x1c
test eax, eax
jne 0x4108f2
call fcn.00403190
push str._rError_generation_session_key:_n
jmp 0x410930
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call edi
test eax, eax
je 0x410926
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call edi
test eax, eax
je 0x410926
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00403190
push str._rError_sending_session_key_to_PsExec_service:_n
push 2
call fcn.0041e7a8
add esp, 4
push eax
call fcn.004029e0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403660
mov eax, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x410960
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x410970
push eax
call fcn.0042384e
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a430
Capabilities:
Parse pe header

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

Function at 0x42f96d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e628
push 0x46e620
push 0x46bc9c
push 0x1f
call fcn.0042f7b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42f9a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x4412f0]
call esi
jmp 0x42f9a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42f9eb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e638
push 0x46e630
push 0x46bcc0
push 0x21
call fcn.0042f7b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42fa22
push dword [ebp + 8]
mov ecx, esi
call dword [0x4412f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42fa2a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e640
push 0x46e638
push 0x46bcd4
push 0x22
call fcn.0042f7b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42fa64
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4412f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43266a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00419840
mov eax, dword [0x479fcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042420a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4326ac
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x432808
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043f960
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x49f900]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043bf94
mov ecx, dword [esi*4 + 0x49f900]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x432801
cmp eax, dword [ecx + edi + 0x24]
jne 0x432801
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432801
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043bf94
add esp, 0x14
test edx, edx
jl 0x432801
jg 0x432777
test eax, eax
jb 0x432801
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x432801
jl 0x432791
cmp dword [ebp - 0x1008], eax
ja 0x432801
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4327af
test ebx, ebx
je 0x4327e8
cmp ecx, edi
jae 0x4327e8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4327c9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4327d5
cmp byte [ecx + 1], 0xa
jne 0x4327d5
inc ecx
jmp 0x4327d5
movzx eax, al
movsx eax, byte [eax + 0x47a930]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4327af
cmp edx, ebx
jne 0x4327af
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x432806
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004197d1
leave
ret
Function at 0x436a03
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x479fcc]
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 0x436a4e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00436b9e
test al, al
jne 0x436a48
sub edx, 2
cmp edx, edi
jne 0x436a2e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x436a70
lea eax, [edi + 2]
cmp edx, eax
je 0x436a70
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043694f
add esp, 0x10
jmp 0x436b6a
push esi
lea ecx, [ebp - 0x255]
call fcn.00436b9e
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 0x436ab3
push dword [ebp - 0x25c]
jmp 0x436a60
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 0x436af0
cmp word [ebp - 0x226], 0
je 0x436b11
cmp word [ebp - 0x226], ax
jne 0x436af0
cmp word [ebp - 0x224], 0
je 0x436b11
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043694f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x436b5d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x436aca
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x436b45
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x436b6a
push 0x43677f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043e380
add esp, 0x10
jmp 0x436b3a
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.004197d1
leave
ret

Function at 0x437467
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x437478
pop esi
ret
push ebx
push edi
push esi
call fcn.00437430
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00430049
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4374a0
push ebx
push esi
push edi
call fcn.0041ad10
add esp, 0xc
push 0
call fcn.0042f4d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x437870
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004374b5
Function at 0x439a93
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042f190
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 0x439b02
cmp esi, dword [ebp - 4]
je 0x439afd
cmp dword [ebp + 0xc], 0
je 0x439afd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x439ada
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004395e5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x439b04
xor eax, eax
inc eax
jmp 0x439b04
xor eax, eax
pop edi
pop esi
leave
ret