joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014062f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1023ec40]
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 0x1014067a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.101409d3
test al, al
jne 0x10140674
sub edx, 2
cmp edx, edi
jne 0x1014065a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1014069c
lea eax, [edi + 2]
cmp edx, eax
je 0x1014069c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.101402f6
add esp, 0x10
jmp 0x10140796
push esi
lea ecx, [ebp - 0x255]
call fcn.101409d3
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 0x101406df
push dword [ebp - 0x25c]
jmp 0x1014068c
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 0x1014071c
cmp word [ebp - 0x226], 0
je 0x1014073d
cmp word [ebp - 0x226], ax
jne 0x1014071c
cmp word [ebp - 0x224], 0
je 0x1014073d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.101402f6
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x10140789
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x101406f6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x10140771
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10140796
push 0x1013fe15
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10125830
add esp, 0x10
jmp 0x10140766
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.100d7a97
leave
ret
Function at 0x10141b4d
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 0x10141bea
push ebx
push esi
call fcn.10141b09
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.1013a9a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10141b97
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10141be9
push edi
push eax
call fcn.101347a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10141bb7
call fcn.10134766
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10141be8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1013a9a1
add esp, 0x20
test eax, eax
jne 0x10141bd6
push edi
call fcn.10134766
jmp 0x10141bde
push ebx
call fcn.10134766
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 0x10141bed
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10141bfe
pop esi
ret
push ebx
push edi
push esi
call fcn.10141b09
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101347a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10141c26
push ebx
push esi
push edi
call fcn.100ec200
add esp, 0xc
push 0
call fcn.10134766
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101424fd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10141e99
Function at 0x1014d674
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1014d494
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1014d7ec
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1014d7ec
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1014d79b
jg 0x1014d6cd
test eax, eax
je 0x1014d791
push 1
push 0x1000
call fcn.10135ec5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1014d6f3
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1014d788
push 0x8000
push ebx
call fcn.1014d2c9
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1014d71f
jg 0x1014d71a
cmp ecx, 0x1000
jb 0x1014d71f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10138ea9
add esp, 0x10
cmp eax, 0xffffffff
je 0x1014d764
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1014d71a
jl 0x1014d74b
test ecx, ecx
jne 0x1014d70c
push dword [ebp - 0xc]
push ebx
call fcn.1014d2c9
push esi
call fcn.10134766
add esp, 0xc
xor edi, edi
jmp 0x1014d7fd
cmp byte [edi + 0x24], 0
je 0x1014d77b
cmp dword [edi + 0x20], 5
jne 0x1014d77b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1014d786
mov edi, dword [edi + 0x18]
jmp 0x1014d788
xor edi, edi
push esi
call fcn.10134766
pop ecx
jmp 0x1014d7fd
test ecx, ecx
jg 0x1014d75d
jl 0x1014d79b
test eax, eax
jae 0x1014d75d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1013a79e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1014d7be
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1014d75d
jmp 0x1014d7f5
push ebx
call fcn.10148b41
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1014d75d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1014d7fd
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1014d7fa
mov edi, dword [edi + 0x18]
jmp 0x1014d7fd
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1013a79e
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1014ee88
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1014ed5c

Function at 0x1014f470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1014f49d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014f49d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40be10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov edx, str.vZz_f
lea ecx, [ebp - 4]
xor ebx, ebx
call fcn.0040ad60
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], ebx
je 0x40bece
xor esi, esi
push edi
lea esp, [esp]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 8]
push edx
push 0
xor ecx, ecx
push 2
test esi, esi
push 0
setne cl
push 0
push 0
push eax
mov dword [ebp - 8], 0
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bec0
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test edx, edx
jne 0x40be81
lea eax, [edx + 0xd]
jmp 0x40beae
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40be86
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x4410a0
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test edi, edi
je 0x40bec0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
inc esi
cmp esi, 2
jl 0x40be40
pop edi
lea esi, [eax - 0x10]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bee8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401378
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x198
call fcn.00401de0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4013c2
push ebx
call fcn.004015c1
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4013d9
mov eax, 0x405209
push eax
push 1
mov ebx, 0x194
call fcn.00401eb0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [0x40527d]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40142d
push 0x125
push 0x4010050
push 6
call fcn.004015cd
add esp, 0xc
push 0x80000005
push 0
lea eax, [ebp - 4]
push eax
push 1
mov ebx, 0xc
mov eax, 0x402f20
call fcn.00401900
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401465
mov eax, 0x405209
push eax
push 1
mov ebx, 0x194
call fcn.00401eb0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [0x40527d]
xor eax, eax
call dword [0x40528d]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4014b8
push 0x18a
push 0x4010050
push 6
call fcn.004015cd
add esp, 0xc
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4014cb
mov eax, 0x405209
push eax
push 1
mov ebx, 0x194
call fcn.00401eb0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [0x40527d]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40151d
push 0x1ff
push 0x4010050
push 6
call fcn.004015cd
add esp, 0xc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40152d
push ebx
call fcn.004015c1
add esp, 4
mov esp, ebp
pop ebp
ret 8
Function at 0x4019a0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.004025a0
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4040a4
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x401a51
mov edx, dword [esp + 0x10]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0xc], ecx
jle 0x401a51
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ebx, [eax + 4]
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0x3a8
call ebp
mov esi, eax
test esi, esi
jle 0x401a3c
lea edx, [esi + 1]
push edx
call fcn.004017d0
mov edi, eax
add esp, 4
test edi, edi
je 0x401a32
mov eax, dword [ebx]
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0x3a8
call ebp
mov byte [eax + edi], 0
push edi
lea ecx, [esp + 0x1c]
call fcn.00402830
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4019ec
pop ebp
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx]
test eax, eax
je 0x401a64
push eax
call fcn.004029f0
add esp, 4
mov edi, dword [esp + 0x24]
shr edi, 2
shl edi, 2
lea ecx, [edi + 8]
push ecx
call fcn.004017d0
mov dword [eax], 1
mov edx, dword [esp + 0x28]
shr edx, 2
mov dword [eax + 4], edx
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 4
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [eax + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
mov dword [ebx], eax
mov dword [esp + 0x14], 0x4040a0
call fcn.004027a0
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x43a91f
Capabilities:
Parse pe header

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

Function at 0x43bbfe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x43bc1f
jl 0x43bc16
test edi, edi
jne 0x43bc1f
xor eax, eax
xor edx, edx
jmp 0x43bce0
cmp dword [ebx + 0x38], 0
je 0x43bc34
push eax
push edi
push dword [ebp + 8]
call fcn.0043bce6
jmp 0x43bce0
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43bc7b
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x43bc7b
cmp eax, edi
jb 0x43bc55
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0043cc50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x43bc81
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x43bcd5
mov ecx, ebx
call fcn.0043b458
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x43bcc0
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00445da0
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x43bcd5
jmp 0x43bc93
test edx, edx
je 0x43bcd5
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00445da0
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x448fa5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x477948
push 0x477940
push str.FlsAlloc
push 0x1f
call fcn.00448e10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x448fd9
push dword [ebp + 8]
mov ecx, esi
call dword [0x458178]
call esi
jmp 0x448fdf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x449023
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x477958
push 0x477950
push str.FlsGetValue
push 0x21
call fcn.00448e10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44905a
push dword [ebp + 8]
mov ecx, esi
call dword [0x458178]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x449062
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x477960
push 0x477958
push str.FlsSetValue
push 0x22
call fcn.00448e10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44909c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x458178]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44c7b0
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 0x44c84d
push ebx
push esi
call fcn.0044c779
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.0044c70d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44c7fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44c84c
push edi
push eax
call fcn.0044a2b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44c81a
call fcn.0044a277
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44c84b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044c70d
add esp, 0x20
test eax, eax
jne 0x44c839
push edi
call fcn.0044a277
jmp 0x44c841
push ebx
call fcn.0044a277
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 0x44f4a1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00448880
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 0x44f510
cmp esi, dword [ebp - 4]
je 0x44f50b
cmp dword [ebp + 0xc], 0
je 0x44f50b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44f4e8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044eff3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44f512
xor eax, eax
inc eax
jmp 0x44f512
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44f577
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47e2c0]
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.00448880
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.00448880
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 0x44f5ee
cmp word [ecx], dx
je 0x44f5ee
mov eax, dword [0x4784ec]
push edi
dec eax
push eax
push 0x4783d8
call fcn.0044f516
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x44f661
cmp word [eax], dx
je 0x44f661
mov eax, dword [edi]
test eax, eax
je 0x44f612
cmp word [eax], dx
je 0x44f612
lea eax, [ebp - 0x10]
push eax
call fcn.0044eef9
jmp 0x44f61b
lea eax, [ebp - 0x10]
push eax
call fcn.0044ef94
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44f68b
mov eax, dword [0x4783d4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4780c8
call fcn.0044f516
add esp, 0xc
test al, al
je 0x44f68b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44f656
cmp word [eax], di
je 0x44f656
lea eax, [ebp - 0x10]
push eax
call fcn.0044eef9
pop ecx
jmp 0x44f68d
lea eax, [ebp - 0x10]
push eax
call fcn.0044ef94
jmp 0x44f653
mov eax, dword [edi]
test eax, eax
je 0x44f678
cmp word [eax], dx
je 0x44f678
lea eax, [ebp - 0x10]
push eax
call fcn.0044eeae
pop ecx
jmp 0x44f68b
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 0x44f756
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044f39b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44f756
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44f756
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44f756
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44f6e3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004491a2
test ebx, ebx
je 0x44f751
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004491a2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44f756
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 0x44f756
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045555a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44f758
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439dc0
leave
ret
Function at 0x451108
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00439dd0
mov eax, dword [0x47e2c0]
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.0044b1b1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45114a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4512a6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00457610
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 + 0x47fa58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00452105
mov ecx, dword [esi*4 + 0x47fa58]
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 0x45129f
cmp eax, dword [ecx + edi + 0x24]
jne 0x45129f
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 0x45129f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00452105
add esp, 0x14
test edx, edx
jl 0x45129f
jg 0x451215
test eax, eax
jb 0x45129f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45129f
jl 0x45122f
cmp dword [ebp - 0x1008], eax
ja 0x45129f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45124d
test ebx, ebx
je 0x451286
cmp ecx, edi
jae 0x451286
mov al, byte [ecx]
cmp al, 0xd
jne 0x451267
lea eax, [edi - 1]
cmp ecx, eax
jae 0x451273
cmp byte [ecx + 1], 0xa
jne 0x451273
inc ecx
jmp 0x451273
movzx eax, al
movsx eax, byte [eax + 0x47eab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45124d
cmp edx, ebx
jne 0x45124d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4512a4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00439dc0
leave
ret