joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a11c
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x43a182
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.dll_SetEnvironmentVariableA
dec eax
je 0x43a182
call fcn.0043a834
jmp 0x43a1bd
push edi
call sub.KERNEL32.dll_SetCurrentDirectoryA
dec eax
je 0x43a192
call fcn.0043a834
jmp 0x43a1bd
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x43a1b8
push edi
call sub.KERNEL32.dll_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x43a1b6
cmp ebx, 1
je 0x43a1b6
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x43a1a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43a1c4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0043e908
pop ecx
mov ebx, eax
test eax, eax
jne 0x43a1e8
xor eax, eax
jmp 0x43a291
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x43a209
cmp esi, 0x104
jb 0x43a214
push ebx
call fcn.0043e7f4
pop ecx
xor eax, eax
jmp 0x43a291
cmp byte [ebx + 1], 0x3a
jne 0x43a244
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
jae 0x43a244
push ebx
call fcn.0043e7f4
pop ecx
xor eax, eax
jmp 0x43a291
inc esi
test edi, edi
je 0x43a287
cmp esi, dword [ebp + 0x10]
jbe 0x43a259
push ebx
call fcn.0043e7f4
pop ecx
xor eax, eax
jmp 0x43a291
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0043e7f4
pop ecx
mov eax, edi
jmp 0x43a291
push esi
push ebx
call fcn.0043edd4
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x43a298
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x43a2de
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
je 0x43a2cc
cmp eax, dword [ebp + 0x10]
jle 0x43a367
call fcn.0043f034
mov dword [eax], 8
xor eax, eax
jmp 0x43a3d4
cmp dword [0x1046c48], 1
jne 0x43a323
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x43a367
xor eax, eax
jmp 0x43a3d4
call sub.KERNEL32.dll_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x43a363
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
jmp 0x43a367
xor eax, eax
jmp 0x43a3d4
lea edx, [ebp - 0x10c]
push edx
call fcn.00435ad0
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x43a388
call fcn.0043f034
mov dword [eax], 0x22
xor eax, eax
jmp 0x43a3d4
test edi, edi
jne 0x43a3ab
mov edx, dword [ebp + 0x10]
push edx
call fcn.0043e908
pop ecx
mov edi, eax
test eax, eax
jne 0x43a3ab
call fcn.0043f034
mov dword [eax], 8
xor eax, eax
jmp 0x43a3d4
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43aeb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0043a408
test byte [ebp + 0xd], 0xc0
jne 0x43aed4
mov eax, dword [0xb0e268]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x43aee1
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x43af0e
je 0x43af20
sub ecx, 0x100
je 0x43af2e
sub ecx, 0x100
je 0x43af35
sub ecx, 0x100
je 0x43af27
jmp 0x43af3c
sub ecx, 0x600
je 0x43af35
sub ecx, 0x100
je 0x43af20
jmp 0x43af3c
mov edi, 1
jmp 0x43af41
mov edi, 2
jmp 0x43af41
mov edi, 4
jmp 0x43af41
mov edi, 5
jmp 0x43af41
mov edi, 3
test byte [ebp + 0xd], 1
je 0x43af68
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0xb0e7bc]
test al, 0x80
je 0x43af61
mov ebx, 0x80
jmp 0x43af7a
mov ebx, 1
jmp 0x43af7a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x43af7a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x43af8c
je 0x43af95
dec eax
je 0x43af9e
jmp 0x43afa7
mov dword [ebp - 4], 0x80000000
jmp 0x43afb6
mov dword [ebp - 4], 0x40000000
jmp 0x43afb6
mov dword [ebp - 4], 0xc0000000
jmp 0x43afb6
push 1
call fcn.0043a7c8
pop ecx
mov ebx, eax
jmp 0x43b0a2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x43afd2
sub eax, 0x10
je 0x43afd9
sub eax, 0x10
je 0x43afe2
sub eax, 0x10
je 0x43afeb
jmp 0x43afeb
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x43aff2
mov dword [ebp - 8], 1
jmp 0x43aff2
mov dword [ebp - 8], 2
jmp 0x43aff2
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x43b05b
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x43b050
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x43b050
add ebx, 0xffffffb2
push ebx
call fcn.0043a7c8
pop ecx
mov ebx, eax
jmp 0x43b0a2
mov edi, esi
push edi
call fcn.0043ae14
pop ecx
test eax, eax
je 0x43b06f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x43b07b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0043a508
add esp, 8
mov ebx, eax
inc eax
jne 0x43b0a2
push 4
call fcn.0043a7c8
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.0043a43c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43ec08
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x43f09c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0xb0f0f0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x43f154
cmp byte [0x442062], 0
je 0x43f10e
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0043e0f8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x43f0f7
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0043e0f8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x43f0f7
lea ebx, [ebp - 0x54]
jmp 0x43f0f8
inc ebx
call fcn.0043f054
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x43f175
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0xb0f0f4
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00435ad0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0xb0f0f7
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x43f175
cmp dword [0xb0f0f0], 0xffffffff
je 0x43f175
mov eax, dword [0xb0f0f0]
test eax, eax
je 0x43f175
cmp byte [eax], 0
je 0x43f175
push esi
push eax
call fcn.0043f204
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ff54
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push esi
call fcn.00435ad0
pop ecx
inc eax
push eax
call fcn.0043e908
pop ecx
mov ebx, eax
test eax, eax
jne 0x43ff82
call fcn.0043f034
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x43fffb
xor eax, eax
push esi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0x3d
push ebx
call fcn.0043de3c
add esp, 8
mov esi, eax
test eax, eax
jne 0x43ffcd
call fcn.0043f034
mov dword [eax], 0x13
push ebx
call fcn.0043e7f4
pop ecx
or eax, 0xffffffff
jmp 0x43fffb
mov byte [esi], 0
cmp byte [esi + 1], 0
jne 0x43ffda
xor edx, edx
jmp 0x43ffdd
lea edx, [esi + 1]
push edx
push ebx
call sub.KERNEL32.dll_SetEnvironmentVariableA
dec eax
je 0x43fff0
call fcn.0043a834
mov esi, eax
jmp 0x43fff2
xor esi, esi
push ebx
call fcn.0043e7f4
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x440054
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x1046cd8], 0
jne 0x4400d5
cmp dword [0x1046cf4], 0
jne 0x440084
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x1046cf4], eax
test eax, eax
jne 0x440084
push 0xb0f250
call fcn.0043f18c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x1046cf4]
jmp 0x440098
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00435ad0
pop ecx
mov edi, eax
test eax, eax
jne 0x440090
lea edi, [ebp + 1]
push edi
call fcn.0043e908
pop ecx
mov ebx, eax
mov dword [0x1046cdc], ebx
test ebx, ebx
jne 0x4400c2
xor eax, eax
jmp 0x440198
push edi
mov edx, dword [0x1046cf4]
push edx
push ebx
call fcn.00435904
add esp, 0xc
jmp 0x4400f5
xor esi, esi
mov ebx, dword [0x1046cd8]
jmp 0x4400ef
push eax
call fcn.00435ad0
pop ecx
test eax, eax
jne 0x4400eb
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4400df
lea ebx, [esi + 4]
push 4
mov dword [0x1046ce0], ebx
inc ebx
push ebx
call fcn.0043e16c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x440118
xor eax, eax
jmp 0x440198
cmp dword [0x1046cd8], 0
jne 0x440149
xor esi, esi
mov ebx, dword [0x1046cdc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x44013a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00435ad0
pop ecx
mov edi, eax
test eax, eax
jne 0x440130
jmp 0x44017a
xor esi, esi
mov ebx, dword [0x1046cd8]
mov eax, dword [esp]
mov edi, eax
jmp 0x440174
push eax
call fcn.00435ad0
pop ecx
test eax, eax
je 0x440169
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x44016d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x440158
mov eax, dword [0x1046cd8]
test eax, eax
je 0x44018a
push eax
call fcn.0043e7f4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x1046cd8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408975
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
and edi, ebx
and ebx, edi
call fcn.004089a6
mov ebx, edi
sub edi, 0x82ac9e6
xor dword [esi], edx
inc esi
add edi, 0x7766728e
add ebx, 0x628cc2a4
cmp esi, eax
jne fcn.00408975
inc edi
push 0x755ee69e
pop ebx
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x433e53
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x433e88
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x433e85
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x433e91
add edx, 0x28
cmp edx, esi
jne 0x433e73
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x433e8e

Function at 0x434791
Capabilities:
Parse pe header

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

Function at 0x44036a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4512b8
push 0x4512b0
push str.FlsAlloc
push 0x1f
call fcn.004401f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44039e
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d15c]
call esi
jmp 0x4403a4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4403e8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4512c8
push 0x4512c0
push str.FlsGetValue
push 0x21
call fcn.004401f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44041f
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x440427
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4512d0
push 0x4512c8
push str.FlsSetValue
push 0x22
call fcn.004401f4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x440461
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44d15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x441e28
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00433d50
mov eax, dword [0x45a440]
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.0043ee3e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x441e6a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x441fc6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044c460
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 + 0x45bb48]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004419b1
mov ecx, dword [esi*4 + 0x45bb48]
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 0x441fbf
cmp eax, dword [ecx + edi + 0x24]
jne 0x441fbf
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 0x441fbf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004419b1
add esp, 0x14
test edx, edx
jl 0x441fbf
jg 0x441f35
test eax, eax
jb 0x441fbf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x441fbf
jl 0x441f4f
cmp dword [ebp - 0x1008], eax
ja 0x441fbf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x441f6d
test ebx, ebx
je 0x441fa6
cmp ecx, edi
jae 0x441fa6
mov al, byte [ecx]
cmp al, 0xd
jne 0x441f87
lea eax, [edi - 1]
cmp ecx, eax
jae 0x441f93
cmp byte [ecx + 1], 0xa
jne 0x441f93
inc ecx
jmp 0x441f93
movzx eax, al
movsx eax, byte [eax + 0x45adf0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x441f6d
cmp edx, ebx
jne 0x441f6d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x441fc4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00434a52
leave
ret
Function at 0x442743
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45a440]
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 0x44278e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004428de
test al, al
jne 0x442788
sub edx, 2
cmp edx, edi
jne 0x44276e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4427b0
lea eax, [edi + 2]
cmp edx, eax
je 0x4427b0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044268f
add esp, 0x10
jmp 0x4428aa
push esi
lea ecx, [ebp - 0x255]
call fcn.004428de
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 0x4427f3
push dword [ebp - 0x25c]
jmp 0x4427a0
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 0x442830
cmp word [ebp - 0x226], 0
je 0x442851
cmp word [ebp - 0x226], ax
jne 0x442830
cmp word [ebp - 0x224], 0
je 0x442851
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044268f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44289d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44280a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x442885
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4428aa
push 0x4424bf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00449360
add esp, 0x10
jmp 0x44287a
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.00434a52
leave
ret

Function at 0x44344a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44345b
pop esi
ret
push ebx
push edi
push esi
call fcn.00443413
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00443c88
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x443483
push ebx
push esi
push edi
call fcn.00435a30
add esp, 0xc
push 0
call fcn.0043f427
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x443853
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00443498
Function at 0x446318
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043f7fc
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 0x446387
cmp esi, dword [ebp - 4]
je 0x446382
cmp dword [ebp + 0xc], 0
je 0x446382
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44635f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00445e6a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x446389
xor eax, eax
inc eax
jmp 0x446389
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4463ee
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45a440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0043f7fc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043f7fc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x446465
cmp word [ecx], dx
je 0x446465
mov eax, dword [0x451734]
push edi
dec eax
push eax
push 0x451620
call fcn.0044638d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4464d8
cmp word [eax], dx
je 0x4464d8
mov eax, dword [edi]
test eax, eax
je 0x446489
cmp word [eax], dx
je 0x446489
lea eax, [ebp - 0x10]
push eax
call fcn.00445d70
jmp 0x446492
lea eax, [ebp - 0x10]
push eax
call fcn.00445e0b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x446502
mov eax, dword [0x45161c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x451310
call fcn.0044638d
add esp, 0xc
test al, al
je 0x446502
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4464cd
cmp word [eax], di
je 0x4464cd
lea eax, [ebp - 0x10]
push eax
call fcn.00445d70
pop ecx
jmp 0x446504
lea eax, [ebp - 0x10]
push eax
call fcn.00445e0b
jmp 0x4464ca
mov eax, dword [edi]
test eax, eax
je 0x4464ef
cmp word [eax], dx
je 0x4464ef
lea eax, [ebp - 0x10]
push eax
call fcn.00445d25
pop ecx
jmp 0x446502
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4465cd
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00446212
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4465cd
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4465cd
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4465cd
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44655a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00440567
test ebx, ebx
je 0x4465c8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00440567
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4465cd
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4465cd
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00449bed
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4465cf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434a52
leave
ret