joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cd20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x454010
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
cmp byte [esi + 0x28], 0
jne 0x44cde9
mov byte [esi + 0x28], 1
cmp byte [esi + 0x29], 0
je 0x44cda1
mov edi, dword [esi + 0x24]
test edi, edi
je 0x44ce1a
call sub.KERNEL32.dll_GetCurrentThreadId
cmp edi, eax
je 0x44ce21
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.004af0d1
add esp, 0xc
test eax, eax
jne 0x44ce28
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov byte [esi + 0x29], 1
push 8
call fcn.004a880e
add esp, 4
mov edi, eax
mov dword [eax], esi
mov dword [eax + 4], 0x44ce50
lea eax, [ebp - 0x24]
push eax
push 0
push edi
push 0x44cf50
push 0
push 0
call fcn.004c9a5c
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x44cdfa
cmp dword [esi + 0x24], 0
jne 0x44ce15
movsd xmm0, qword [ebp - 0x28]
movsd qword [esi + 0x20], xmm0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
push 6
call fcn.004ac661
add esp, 4
call fcn.004d286b
push 1
call fcn.004ac661
push 5
call fcn.004ac661
push 2
call fcn.004ac661
nop
push ebp
sub esp, 0x18
add ebp, 0xc
push dword [ebp - 0x20]
call fcn.004a883e
add esp, 0x1c
pop ebp
ret
Function at 0x4585c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x24]
cmp eax, 0x10000001
jae 0x458721
mov edi, ecx
add eax, 0xffffffff
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov esi, 1
shl esi, cl
lea ecx, [edi + 0xc]
mov ebp, dword [edi + 4]
lea eax, [esi + esi]
mov dword [esp + 0xc], ecx
push ebp
push eax
call fcn.00458020
lea edx, [esi - 1]
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], esi
mov eax, dword [edi + 4]
mov ecx, dword [eax]
cmp ecx, ebp
je 0x458717
mov dword [esp], edi
mov dword [esp + 4], ebp
jmp 0x458636
mov dword [edx + ebx*4], ecx
mov dword [edx + esi*4], ecx
mov ecx, dword [esp]
cmp eax, ebp
je 0x458717
mov edx, dword [ecx + 0x18]
mov ecx, eax
mov eax, dword [ecx]
movzx esi, byte [ecx + 8]
xor esi, 0x811c9dc5
imul esi, esi, 0x1000193
movzx edi, byte [ecx + 9]
xor edi, esi
imul esi, edi, 0x1000193
movzx edi, byte [ecx + 0xa]
xor edi, esi
imul esi, edi, 0x1000193
movzx edi, byte [ecx + 0xb]
xor edi, esi
imul edi, edi, 0x1000193
and edi, edx
mov edx, dword [esp + 0xc]
mov edx, dword [edx]
lea ebx, [edi + edi]
lea esi, [edi + edi]
add esi, 1
mov edi, dword [edx + edi*8]
cmp edi, ebp
je 0x458620
mov dword [esp + 8], ebx
mov ebx, dword [edx + esi*4]
mov ebp, dword [ecx + 8]
cmp ebp, dword [ebx + 8]
jne 0x4586c0
mov edi, dword [ebx]
cmp edi, ecx
je 0x458705
mov ebx, dword [ecx + 4]
mov dword [esp + 8], ebx
mov dword [ebx], eax
mov ebp, dword [eax + 4]
mov dword [ebp], edi
mov ebx, dword [edi + 4]
mov dword [ebx], ecx
mov dword [edi + 4], ebp
mov edi, dword [esp + 8]
mov dword [eax + 4], edi
mov dword [ecx + 4], ebx
jmp 0x458705
cmp edi, ebx
je 0x4586e8
mov ebx, dword [ebx + 4]
cmp ebp, dword [ebx + 8]
jne 0x4586c0
mov edx, dword [ebx]
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], edx
mov ebx, dword [edx + 4]
mov dword [ebx], ecx
mov dword [edx + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
jmp 0x458708
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov ebx, dword [eax + 4]
mov dword [ebx], edi
mov ebp, dword [edi + 4]
mov dword [ebp], ecx
mov dword [edi + 4], ebx
mov dword [eax + 4], esi
mov dword [ecx + 4], ebp
mov esi, dword [esp + 8]
mov dword [edx + esi*4], ecx
mov ecx, dword [esp]
mov ebp, dword [esp + 4]
cmp eax, ebp
jne 0x458631
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.004ac71e
int3
Function at 0x458730
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0x458a40
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xc
call fcn.004a880e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x24], eax
mov dword [esi + 4], eax
movaps xmm0, xmmword [0x4e94d0]
movups xmmword [esi + 0xc], xmm0
mov dword [esi + 0x1c], 8
mov dword [ebp - 0x20], esi
mov dword [esi], 0x3f800000
mov dword [ebp - 0x10], 0
push 0x40
call fcn.004a880e
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
mov ecx, eax
add ecx, 0x40
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
movd xmm0, dword [ebp - 0x24]
pshufd xmm0, xmm0, 0
movdqu xmmword [eax], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x30], xmm0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x45b120
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x45e0e0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [edi + 0x30]
mov dword [ebp - 0x20], eax
push 0x7c
call fcn.004a880e
add esp, 4
mov esi, eax
mov dword [eax], vtable.std::_Associated_state_int_.0
mov dword [eax + 4], 1
add eax, 0xc
push eax
call fcn.004ac97c
add esp, 4
lea eax, [esi + 0x14]
push 2
push eax
call fcn.004aed7b
add esp, 8
lea eax, [esi + 0x44]
push eax
call fcn.004ae5fd
add esp, 4
mov byte [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x73], 0
mov dword [esi + 0x78], 0
mov dword [edi + 0x30], esi
mov byte [edi + 0x34], 0
mov dword [ebp - 0x24], edi
mov byte [edi + 0x38], 0
mov dword [ebp - 0x10], 0
push 0x7c
call fcn.004a880e
add esp, 4
mov esi, eax
mov dword [eax], vtable.std::_Associated_state_bool_.0
mov dword [eax + 4], 1
add eax, 0xc
push eax
call fcn.004ac97c
add esp, 4
lea eax, [esi + 0x14]
push 2
push eax
call fcn.004aed7b
add esp, 8
mov eax, esi
add eax, 0x44
push eax
call fcn.004ae5fd
add esp, 4
mov byte [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x73], 0
mov dword [esi + 0x78], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x3c], esi
mov byte [eax + 0x40], 0
mov byte [eax + 0x44], 0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45baa0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov edi, ecx
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
lea eax, [esi + 0x38]
mov dword [esi + 0x3c], 0x45e0f0
mov ecx, dword fs:[0]
mov dword [esi + 0x38], ecx
mov dword fs:[0], eax
lea eax, [edi + 0x14]
mov dword [esi + 8], eax
push eax
call fcn.004aeddc
add esp, 4
test eax, eax
jne 0x45bc63
mov byte [esi + 0xc], 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov ebx, 2
test al, al
jne 0x45bc43
mov dword [esi + 0x10], edi
mov dword [esi + 0x24], edi
call fcn.004af2f4
mov edi, eax
mov ebx, edx
call fcn.004af2dd
mov ecx, eax
mov dword [esi], edi
mov eax, edi
xor eax, 0x989680
or eax, ebx
jne 0x45bb3d
mov ebx, 0x64
mov eax, ecx
mov edi, edx
mul ebx
mov dword [esi], eax
imul ebx, edi, 0x64
add ebx, edx
jmp 0x45bbae
mov edi, ebx
mov dword [esi + 4], ebx
push ebx
push dword [esi]
push edx
mov dword [esi + 0x14], ecx
push ecx
mov dword [esi + 0x18], edx
call fcn.004af410
mov edi, eax
mov ebx, edx
mov ecx, 0x3b9aca00
mul ecx
mov dword [esi + 0x20], eax
imul eax, ebx, 0x3b9aca00
add eax, edx
mov dword [esi + 0x1c], eax
mov ecx, edi
mov eax, edi
mov edi, dword [esi]
mul edi
imul ecx, dword [esi + 4]
add edx, ecx
imul ebx, edi
add ebx, edx
mov edx, dword [esi + 0x14]
sub edx, eax
mov eax, dword [esi + 0x18]
sbb eax, ebx
imul ecx, eax, 0x3b9aca00
mov eax, edx
mov edx, 0x3b9aca00
mul edx
add edx, ecx
push dword [esi + 4]
push edi
push edx
push eax
call fcn.004af410
mov ebx, edx
add eax, dword [esi + 0x20]
mov dword [esi], eax
adc ebx, dword [esi + 0x1c]
add dword [esi + 0x10], 0x44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
cmp ecx, 1
mov eax, edi
sbb eax, 0
jl 0x45bc09
mov edx, 0xc4653600
mov eax, ecx
mul edx
sub edx, ecx
mov dword [esi + 4], edi
imul edi, edi, 0xc4653600
add edi, edx
add eax, 0xffffffff
adc edi, 0x7fffffff
mov edx, dword [esi]
cmp edx, eax
mov eax, ebx
sbb eax, edi
jge 0x45bc0d
mov edi, edx
mov edx, 0x3b9aca00
mov eax, ecx
mul edx
imul ecx, dword [esi + 4], 0x3b9aca00
add ecx, edx
add edi, eax
adc ebx, ecx
mov eax, edi
jmp 0x45bc17
mov eax, dword [esi]
jmp 0x45bc17
mov ebx, 0x7fffffff
mov eax, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], 0
lea eax, [esi + 0x24]
lea edx, [esi + 0x28]
lea edi, [esi + 8]
mov ecx, dword [esi + 0x10]
push eax
push edx
push edi
call fcn.0045bc90
xor al, 1
movzx ebx, al
cmp byte [esi + 0xc], 0
je 0x45bc4e
push dword [esi + 8]
call fcn.004aeded
add esp, 4
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push eax
call fcn.004ac634
nop dword [eax]
push ebp
sub esp, 0x10
lea esi, [ebp - 0x44]
mov ebp, dword [esi + 0x30]
cmp byte [esi + 0xc], 0
je 0x45bc8b
push dword [esi + 8]
call fcn.004aeded
add esp, 4
add esp, 0x10
pop ebp
ret
Function at 0x4a8510
Capabilities:
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
not edx
mov eax, ebx
or eax, ecx
je 0x4a85be
xor esi, esi
jmp 0x4a855f
and ebp, edx
xor edi, ebp
mov edx, edi
mov ecx, dword [esp + 4]
mov ebx, dword [esp]
shrd ebx, ecx, 1
shr ecx, 1
add esi, 1
and esi, 0x1f
mov eax, ebx
or eax, ecx
je 0x4a85be
test bl, 1
je 0x4a854d
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, dword [esi*4 + 0x4ee240]
xor ebp, ebp
mov ebx, 0x1e
nop dword [eax]
mov edi, ecx
sar edi, 0x1f
and edi, edx
xor edi, ebp
mov eax, edx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
lea ebp, [ecx + ecx]
sar ebp, 0x1f
test ebx, ebx
je 0x4a8540
and ebp, edx
xor ebp, edi
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
shl ecx, 2
add ebx, 0xfffffffe
jmp 0x4a8580
not edx
mov eax, edx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c9cc8
Capabilities:
Parse pe header

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

Function at 0x4ccdd1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50b770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4fc314
push esi
call fcn.004da631
pop ecx
pop ecx
test eax, eax
jne 0x4ccdff
xor al, al
jmp 0x4cce7c
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004ccb60
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4cce39
push dword [ebp - 0x210]
call fcn.004ce45e
xor al, al
jmp 0x4cce7a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4cce3f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4cce5f
push edx
call fcn.004ccd23
pop ecx
test al, al
je 0x4cce2a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4cce6d
mov bl, 1
push dword [ebp - 0x210]
call fcn.004ce45e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a8882
leave
ret

Function at 0x4d6195
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f01ac
push 0x4f01a4
push str.FlsAlloc
push 0x1f
call fcn.004d66f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d61c9
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4d61cf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4d6213
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f01bc
push 0x4f01b4
push str.FlsGetValue
push 0x21
call fcn.004d66f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d624a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4d6252
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f01c4
push 0x4f01bc
push str.FlsSetValue
push 0x22
call fcn.004d66f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d628c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4db315
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x50b770]
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.004d57fb
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.004d57fb
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 0x4db38c
cmp word [ecx], dx
je 0x4db38c
mov eax, dword [0x4f063c]
push edi
dec eax
push eax
push 0x4f0528
call fcn.004db505
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4db3ff
cmp word [eax], dx
je 0x4db3ff
mov eax, dword [edi]
test eax, eax
je 0x4db3b0
cmp word [eax], dx
je 0x4db3b0
lea eax, [ebp - 0x10]
push eax
call fcn.004db566
jmp 0x4db3b9
lea eax, [ebp - 0x10]
push eax
call fcn.004db854
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4db429
mov eax, dword [0x4f0524]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4f0218
call fcn.004db505
add esp, 0xc
test al, al
je 0x4db429
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4db3f4
cmp word [eax], di
je 0x4db3f4
lea eax, [ebp - 0x10]
push eax
call fcn.004db566
pop ecx
jmp 0x4db42b
lea eax, [ebp - 0x10]
push eax
call fcn.004db854
jmp 0x4db3f1
mov eax, dword [edi]
test eax, eax
je 0x4db416
cmp word [eax], dx
je 0x4db416
lea eax, [ebp - 0x10]
push eax
call fcn.004db988
pop ecx
jmp 0x4db429
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 0x4db4f4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004dba7a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4db4f4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4db4f4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4db4f4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4db481
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004d648b
test ebx, ebx
je 0x4db4ef
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004d648b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4db4f4
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 0x4db4f4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004e3ac9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4db4f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8882
leave
ret
Function at 0x4dbb80
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004d57fb
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 0x4dbbef
cmp esi, dword [ebp - 4]
je 0x4dbbea
cmp dword [ebp + 0xc], 0
je 0x4dbbea
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4dbbc7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004dbc49
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4dbbf1
xor eax, eax
inc eax
jmp 0x4dbbf1
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4dbf98
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50b770]
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 0x4dbfe3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004dc10e
test al, al
jne 0x4dbfdd
sub edx, 2
cmp edx, edi
jne 0x4dbfc3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4dc005
lea eax, [edi + 2]
cmp edx, eax
je 0x4dc005
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004dbee4
add esp, 0x10
jmp 0x4dc0ff
push esi
lea ecx, [ebp - 0x255]
call fcn.004dc10e
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 0x4dc048
push dword [ebp - 0x25c]
jmp 0x4dbff5
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 0x4dc085
cmp word [ebp - 0x226], 0
je 0x4dc0a6
cmp word [ebp - 0x226], ax
jne 0x4dc085
cmp word [ebp - 0x224], 0
je 0x4dc0a6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004dbee4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4dc0f2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4dc05f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4dc0da
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4dc0ff
push 0x4dc132
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004e3e60
add esp, 0x10
jmp 0x4dc0cf
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.004a8882
leave
ret
Function at 0x4dc9d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004c2750
mov eax, dword [0x50b770]
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.004d9789
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4dca13
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4dcb6f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004af410
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 + 0x50e950]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004dc779
mov ecx, dword [esi*4 + 0x50e950]
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 0x4dcb68
cmp eax, dword [ecx + edi + 0x24]
jne 0x4dcb68
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 0x4dcb68
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004dc779
add esp, 0x14
test edx, edx
jl 0x4dcb68
jg 0x4dcade
test eax, eax
jb 0x4dcb68
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4dcb68
jl 0x4dcaf8
cmp dword [ebp - 0x1008], eax
ja 0x4dcb68
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4dcb16
test ebx, ebx
je 0x4dcb4f
cmp ecx, edi
jae 0x4dcb4f
mov al, byte [ecx]
cmp al, 0xd
jne 0x4dcb30
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4dcb3c
cmp byte [ecx + 1], 0xa
jne 0x4dcb3c
inc ecx
jmp 0x4dcb3c
movzx eax, al
movsx eax, byte [eax + 0x50c308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4dcb16
cmp edx, ebx
jne 0x4dcb16
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4dcb6d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a8882
leave
ret

Function at 0x4dcf77
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4dcf88
pop esi
ret
push ebx
push edi
push esi
call fcn.004dcfc5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d55a9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4dcfb0
push ebx
push esi
push edi
call fcn.004c4690
add esp, 0xc
push 0
call fcn.004d556f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4dcffc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dd007