joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bee9
Capabilities:
Parse pe header

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

Function at 0x4adbcf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e2040]
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 0x4adc1a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004add6a
test al, al
jne 0x4adc14
sub edx, 2
cmp edx, edi
jne 0x4adbfa
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4adc3c
lea eax, [edi + 2]
cmp edx, eax
je 0x4adc3c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004adb1b
add esp, 0x10
jmp 0x4add36
push esi
lea ecx, [ebp - 0x255]
call fcn.004add6a
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 0x4adc7f
push dword [ebp - 0x25c]
jmp 0x4adc2c
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 0x4adcbc
cmp word [ebp - 0x226], 0
je 0x4adcdd
cmp word [ebp - 0x226], ax
jne 0x4adcbc
cmp word [ebp - 0x224], 0
je 0x4adcdd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004adb1b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4add29
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4adc96
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4add11
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4add36
push 0x4ad94b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a9180
add esp, 0x10
jmp 0x4add06
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.0049c143
leave
ret

Function at 0x4aea70
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb80c
push 0x4bb804
push str.FlsAlloc
push 0x1f
call fcn.004ae9ab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aeaa4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87ac]
call esi
jmp 0x4aeaaa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4aeaee
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb81c
push 0x4bb814
push str.FlsGetValue
push 0x21
call fcn.004ae9ab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aeb25
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4aeb2d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb824
push 0x4bb81c
push str.FlsSetValue
push 0x22
call fcn.004ae9ab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aeb67
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b87ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4b5350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b537d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b537d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44dd30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0x6c078965
call fcn.0045fa40
sub esp, 0xc
mov eax, dword [ebp - 8]
add esp, 0x14
pop ebp
ret 4

Function at 0x44e2d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, esp
mov dword [esi + 0x10], ebp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov edi, esp
mov dword [esi + 0x44], edi
mov dword [esi + 0x50], 0xffffffff
lea edi, [esi + 0x48]
mov dword [esi + 0x4c], 0x463260
mov ebx, dword fs:[0]
mov dword [esi + 0x48], ebx
mov dword fs:[0], edi
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], ecx
mov eax, dword [esi + 0x34]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
lea ecx, [esi + 0x28]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00460e10
sub esp, 8
lea ecx, [esi + 0x28]
call fcn.00450c10
test al, 1
jne 0x44e360
jmp 0x44e415
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
sub ecx, 1
sbb eax, 0
jl 0x44e415
jmp 0x44e377
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.00450c90
mov ecx, eax
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
mov edx, dword [ebp + 8]
mov dword [esi + 0x50], 1
mov eax, esp
mov dword [eax + 8], ebx
mov dword [eax + 4], edi
mov dword [eax], edx
call fcn.00461620
sub esp, 0xc
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
jmp 0x44e3d1
mov dword [esi + 0x50], 0
jmp 0x44e415
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
movsd xmm0, qword [esi + 0x20]
movsd qword [eax + 8], xmm0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
xor ecx, edi
xor eax, edx
or eax, ecx
je 0x44e410
jmp 0x44e407
mov eax, dword [esi + 0x30]
or eax, 3
mov dword [esi + 0x30], eax
jmp 0x44e3c5
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [esi + 0x30]
mov dword [esi + 0x50], 0
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], 0
call fcn.00450d60
sub esp, 8
jmp 0x44e441
lea ecx, [esi + 0x28]
call fcn.004610a0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x48]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x450610
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x450658
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
movzx eax, byte [eax + ecx]
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul eax, dword [ebp + 8], 0x1000193
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x450624
mov eax, dword [ebp + 8]
add esp, 4
pop ebp
ret
Function at 0x45fb00
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [eax], 0x270
jne 0x45fb28
mov ecx, dword [ebp - 0xc]
call fcn.0045fbb0
jmp 0x45fb45
mov ecx, dword [ebp - 0xc]
mov eax, 0x4e0
cmp eax, dword [ecx]
ja 0x45fb40
mov ecx, dword [ebp - 0xc]
call fcn.0045fc50
jmp 0x45fb45
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov edx, eax
add edx, 1
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
and eax, 0xffffffff
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0xb
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xffffffff
shr eax, 0x12
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret

Function at 0x45fbb0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x270
cmp dword [ebp - 0x10], 0x4e0
jae 0x45fc42
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
sub ecx, 0x270
mov ecx, dword [eax + ecx*4 + 4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x10]
sub edx, 0x270
mov edx, dword [eax + edx*4 + 8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shr edx, 1
mov edi, dword [ebp - 0x14]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x10]
sub ecx, 0x270
xor edx, dword [eax + ecx*4 + 0x638]
mov ecx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x45fbc8
add esp, 0x10
pop esi
pop edi
pop ebp
ret
Function at 0x45fc50
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0x26f
mov dword [ebp - 0x14], 0xe3
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0xe3
jae 0x45fce4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [eax + ecx*4 + 0x9c4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x18]
mov edx, dword [eax + edx*4 + 0x9c8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
shr edx, 1
mov edi, dword [ebp - 0x1c]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x18]
xor edx, dword [eax + ecx*4 + 0xff8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x45fc76
mov dword [ebp - 0x20], 0xe3
cmp dword [ebp - 0x20], 0x26f
jae 0x45fd5f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [eax + ecx*4 + 0x9c4]
and ecx, 0x80000000
mov edx, dword [ebp - 0x20]
mov edx, dword [eax + edx*4 + 0x9c8]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
shr edx, 1
mov edi, dword [ebp - 0x24]
and edi, 1
xor ecx, ecx
mov esi, 0x9908b0df
cmp edi, 0
cmovne ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x20]
sub ecx, 0x270
xor edx, dword [eax + ecx*4 + 0x638]
mov ecx, dword [ebp - 0x20]
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x45fceb
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], 0x26f
mov ecx, dword [eax + 0x1380]
and ecx, 0x80000000
mov edx, dword [eax + 4]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
shr ecx, 1
mov edi, dword [ebp - 0x2c]
and edi, 1
xor edx, edx
mov esi, 0x9908b0df
cmp edi, 0
cmovne edx, esi
xor ecx, edx
xor ecx, dword [eax + 0x634]
mov dword [eax + 0x9c0], ecx
mov dword [eax], 0
add esp, 0x28
pop esi
pop edi
pop ebp
ret
Function at 0x462cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x463a60
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x40], ecx
mov dword [eax], ecx
call fcn.00462e30
mov ecx, dword [ebp - 0x40]
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x38], ecx
call fcn.00462ea0
sub esp, 4
mov ecx, dword [ebp - 0x40]
call fcn.00462f00
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], 0x462f40
add eax, 4
mov dword [ebp - 0x34], eax
call fcn.00451dd0
mov edx, dword [ebp - 0x34]
mov ecx, eax
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax + 0x14], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 8], 0x462f40
mov dword [eax + 4], 0
mov dword [eax], 0
call fcn.00473a72
mov dword [ebp - 0x30], eax
jmp 0x462db1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [eax], 0
je 0x462de8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x44], ecx
call fcn.00455660
mov ecx, dword [ebp - 0x44]
call fcn.00462f00
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [ebp - 0x3c]
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], 6
call fcn.00464d47
jmp 0x462e04
nop word cs:[eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00462f00
add esp, 0x18
pop ebp
ret

Function at 0x464760
Capabilities:
Parse pe header

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

Function at 0x478a9a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48f590
push 0x48f588
push str.FlsAlloc
push 0x1f
call fcn.004788c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x478ace
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a21c]
call esi
jmp 0x478ad4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x478b18
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48f5a0
push 0x48f598
push str.FlsGetValue
push 0x21
call fcn.004788c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x478b4f
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a21c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x478b57
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48f5a8
push 0x48f5a0
push str.FlsSetValue
push 0x22
call fcn.004788c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x478b91
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48a21c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x47c9bb
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 + 0x4c6440]
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 0x47c9fb
cmp byte [ebx], 0xa
jne 0x47c9fb
or byte [edi + eax + 0x28], 4
jmp 0x47ca00
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 0x47caff
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47cae2
inc eax
cmp dl, 0xd
je 0x47ca2c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47ca52
cmp eax, ecx
jae 0x47ca60
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 0x47ca14
jmp 0x47caff
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 0x47cadd
cmp dword [ebp - 0x10], 0
je 0x47cadd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c6440]
test byte [eax + edi + 0x28], 0x48
je 0x47cab7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47caa2
mov byte [esi], dl
jmp 0x47cab3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c6440]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47caff
cmp byte [ebp - 1], 0xa
jne 0x47cac6
cmp esi, ebx
jne 0x47cac6
mov byte [esi], 0xa
jmp 0x47cafe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047d541
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47caff
mov byte [esi], 0xd
jmp 0x47cafe
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c6440]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47cafc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47caff
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47cb08
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c6440]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47cb4e
cmp word [ebx], dx
jne 0x47cb4e
or byte [eax + edi + 0x28], 4
jmp 0x47cb53
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x47ccb6
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x47cc96
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47cb94
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47cbca
cmp eax, edx
jae 0x47cbd8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x47cb6f
jmp 0x47ccb6
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47cc91
cmp dword [ebp - 0x18], 0
je 0x47cc91
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c6440]
test byte [eax + edi + 0x28], 0x48
je 0x47cc67
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x47cc2b
mov word [esi], cx
jmp 0x47cc62
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c6440]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c6440]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c6440]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x47ccb6
pop eax
cmp word [ebp - 4], ax
jne 0x47cc77
cmp esi, ebx
jne 0x47cc77
mov word [esi], ax
jmp 0x47ccb3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047d541
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47ccb6
push 0xd
pop eax
jmp 0x47cc72
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c6440]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x47ccb0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x47ccb6
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47d99a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00463df0
mov eax, dword [0x499780]
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.00479176
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x47d9dc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47db38
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00463f30
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 + 0x4c6440]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0047d523
mov ecx, dword [esi*4 + 0x4c6440]
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 0x47db31
cmp eax, dword [ecx + edi + 0x24]
jne 0x47db31
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 0x47db31
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047d523
add esp, 0x14
test edx, edx
jl 0x47db31
jg 0x47daa7
test eax, eax
jb 0x47db31
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47db31
jl 0x47dac1
cmp dword [ebp - 0x1008], eax
ja 0x47db31
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47dadf
test ebx, ebx
je 0x47db18
cmp ecx, edi
jae 0x47db18
mov al, byte [ecx]
cmp al, 0xd
jne 0x47daf9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47db05
cmp byte [ecx + 1], 0xa
jne 0x47db05
inc ecx
jmp 0x47db05
movzx eax, al
movsx eax, byte [eax + 0x499ac8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47dadf
cmp edx, ebx
jne 0x47dadf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47db36
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00464a05
leave
ret
Function at 0x47f8a5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x47f942
push ebx
push esi
call fcn.0047f86e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0047f802
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x47f8ef
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47f941
push edi
push eax
call fcn.0047a2e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47f90f
call fcn.004779b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47f940
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047f802
add esp, 0x20
test eax, eax
jne 0x47f92e
push edi
call fcn.004779b2
jmp 0x47f936
push ebx
call fcn.004779b2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x48273b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00479ff5
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 0x4827aa
cmp esi, dword [ebp - 4]
je 0x4827a5
cmp dword [ebp + 0xc], 0
je 0x4827a5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x482782
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0048228d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4827ac
xor eax, eax
inc eax
jmp 0x4827ac
xor eax, eax
pop edi
pop esi
leave
ret