joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4179a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10c
mov eax, 0x4510b2
call fcn.00429003
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
call fcn.004178d4
mov ebx, eax
test ebx, ebx
je 0x417a8e
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [esi + 0x38]
call edi
test eax, eax
jne 0x417a44
push str.cannot_load_resource
lea ecx, [ebp - 0x28]
call fcn.00402e5e
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004178f2
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.0040d183
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x80]
call fcn.00417663
mov esi, eax
push 0x46
push str.Resource::getPtr
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_common_Resources.cpp
jmp 0x417af8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x34], 6
mov edi, eax
jne 0x417a75
mov edx, dword [esi + 0x18]
mov ecx, edi
and edx, 0xf
jbe 0x417a6b
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edx, 1
jne 0x417a5d
movzx eax, word [ecx]
lea edi, [ecx + 2]
add eax, eax
jmp 0x417a7f
push ebx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, edi
call fcn.00428fb2
ret 4
push str.cannot_find_resource
lea ecx, [ebp - 0x28]
call fcn.00402e5e
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004178f2
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0040d183
push str.System_error
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_FindResourceA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x74]
call fcn.00417663
mov esi, eax
push 0x41
push str.Resource::getPtr
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_common_Resources.cpp
call fcn.00403167
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00406c57
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x46af98
push eax
call fcn.0042be4c
int3

Function at 0x42087c
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x42088b
mov eax, dword [eax]
push eax
call fcn.00438c48
pop ecx
ret
Function at 0x42183f
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x452aee
call fcn.00428fd0
push 0x459890
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.004210a8
add esp, 0xc
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [ebp - 0xd], cl
mov byte [eax + 4], bl
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], cl
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp byte [ebp - 0x1c], bl
je 0x421889
push dword [ebp - 0x20]
mov byte [ebp - 0x1c], bl
call fcn.0044d83a
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xe]
mov byte [ebp - 4], 2
push eax
push 0x100001
lea ecx, [ebp - 0x24]
call fcn.00406e0d
push edi
push 0x100000
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.00431b97
mov ebx, eax
add esp, 0x10
cmp ebx, 0x100000
ja 0x42195a
push edi
call fcn.00439581
pop ecx
test eax, eax
je 0x4218dd
push 0x133
jmp 0x42195f
push edi
call fcn.00439555
pop ecx
test eax, eax
jne 0x4218ef
push 0x13b
jmp 0x42195f
push ebx
push esi
call fcn.00421f75
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe]
push eax
lea eax, [esi + ebx]
push eax
push esi
call fcn.0040898b
test esi, esi
je 0x42193d
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x421934
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403de4
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.00428d2c
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
je 0x421951
push edi
call fcn.0044d83a
pop ecx
mov eax, dword [ebp + 8]
call fcn.00428f9e
ret
push 0xc8
lea ecx, [ebp - 0x38]
call fcn.00418f23
push 0x46e188
lea eax, [ebp - 0x38]
push eax
call fcn.0042be4c
int3

Function at 0x421fb3
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x452c64
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x472224]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x244]
lea eax, [ebp + 0x30]
push eax
xor edi, edi
mov dword [ebp - 0x10], esi
push edi
push edi
push 0x2c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x10]
push 0xc8
push eax
push edi
call fcn.0041a7c1
add esp, 0x10
lea eax, [ebp + 0x30]
lea ecx, [ebp]
push eax
call fcn.00408d7c
push dword [0x472208]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004089cb
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00420893
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.004078b4
lea ecx, [ebp]
call fcn.004078b4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.00428f90
add ebp, 0x23c
leave
ret
Function at 0x424f07
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, 0x7fffffff
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jl 0x424f8b
jg 0x424f34
test esi, esi
je 0x424f8b
test edi, edi
jg 0x424f34
jl 0x424f30
cmp esi, ebp
jae 0x424f34
mov eax, esi
jmp 0x424f36
mov eax, ebp
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 0xffffffff
je 0x424f7c
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x424f66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x424f86
jmp 0x424f7c
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x424f77
add ebx, eax
cdq
sub esi, eax
sbb edi, edx
jmp 0x424f1c
cmp eax, 0xffffffff
jne 0x424f86
call fcn.00430804
cmp dword [eax], 4
je 0x424f1c
or eax, 0xffffffff
jmp 0x424f8d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x426fcf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x45a908]
sub edx, 1
jne 0x426fd6
ret

Function at 0x429aa1
Capabilities:
Parse pe header

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

Function at 0x436871
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x472224]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x45fb74
push esi
call fcn.00442d6c
pop ecx
pop ecx
test eax, eax
jne 0x43689f
xor al, al
jmp 0x43691c
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.004365b2
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4368d9
push dword [ebp - 0x210]
call fcn.0042dd16
xor al, al
jmp 0x43691a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4368df
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4368ff
push edx
call fcn.004367a8
pop ecx
test al, al
je 0x4368ca
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x43690d
mov bl, 1
push dword [ebp - 0x210]
call fcn.0042dd16
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00428f90
leave
ret
Function at 0x436b0d
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004369d5
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x436c7c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x436c7c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x436c31
jg 0x436b69
test eax, eax
je 0x436c27
push 1
push 0x1000
call fcn.0043e58b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x436b8c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x436c1e
push 0x8000
push ebx
call fcn.0043b69b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x436bb5
jg 0x436bb0
cmp ecx, 0x1000
jb 0x436bb5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004377f9
add esp, 0x10
cmp eax, 0xffffffff
je 0x436bfa
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 0x436bb0
jl 0x436be1
test ecx, ecx
jne 0x436ba2
push dword [ebp - 0xc]
push ebx
call fcn.0043b69b
push esi
call fcn.0043e5e8
add esp, 0xc
xor ebx, ebx
jmp 0x436c8a
cmp byte [edi + 0x24], 0
je 0x436c11
cmp dword [edi + 0x20], 5
jne 0x436c11
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x436c1c
mov ebx, dword [edi + 0x18]
jmp 0x436c1e
xor ebx, ebx
push esi
call fcn.0043e5e8
pop ecx
jmp 0x436c8a
test ecx, ecx
jg 0x436bf3
jl 0x436c31
test eax, eax
jae 0x436bf3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00441ec0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x436c51
cmp byte [edi + 0x1c], 0
je 0x436bf3
jmp 0x436c82
push ebx
call fcn.0043903c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x436bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x436c8a
cmp byte [edi + 0x1c], 0
je 0x436c87
mov ebx, dword [edi + 0x18]
jmp 0x436c8a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00441ec0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438b99
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x472224]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x438bdc
call fcn.004307f1
mov dword [eax], 0xf
call fcn.00430804
mov dword [eax], 0xd
call fcn.0042dbcf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428f90
leave
ret
test eax, eax
jne 0x438be3
inc eax
jmp 0x438bd0
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x438bce
xor eax, eax
cmp ecx, 1
setne al
jmp 0x438bd0

Function at 0x43ff47
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4613f4
push 0x4613ec
push str.FlsAlloc
push 0x1f
call fcn.0043fdb2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ff7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x454270]
call esi
jmp 0x43ff81
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43ffc5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x461404
push 0x4613fc
push str.FlsGetValue
push 0x21
call fcn.0043fdb2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43fffc
push dword [ebp + 8]
mov ecx, esi
call dword [0x454270]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x440004
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46140c
push 0x461404
push str.FlsSetValue
push 0x22
call fcn.0043fdb2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44003e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x454270]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x440ea5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00429400
mov eax, dword [0x472224]
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.0043f7b8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x440ee7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x441043
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044da20
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 + 0x475138]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00441ea2
mov ecx, dword [esi*4 + 0x475138]
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 0x44103c
cmp eax, dword [ecx + edi + 0x24]
jne 0x44103c
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 0x44103c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00441ea2
add esp, 0x14
test edx, edx
jl 0x44103c
jg 0x440fb2
test eax, eax
jb 0x44103c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44103c
jl 0x440fcc
cmp dword [ebp - 0x1008], eax
ja 0x44103c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x440fea
test ebx, ebx
je 0x441023
cmp ecx, edi
jae 0x441023
mov al, byte [ecx]
cmp al, 0xd
jne 0x441004
lea eax, [edi - 1]
cmp ecx, eax
jae 0x441010
cmp byte [ecx + 1], 0xa
jne 0x441010
inc ecx
jmp 0x441010
movzx eax, al
movsx eax, byte [eax + 0x4724b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x440fea
cmp edx, ebx
jne 0x440fea
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x441041
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00428f90
leave
ret
Function at 0x44133a
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 + 0x475138]
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 0x44137a
cmp byte [ebx], 0xa
jne 0x44137a
or byte [edi + eax + 0x28], 4
jmp 0x44137f
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 0x44147e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x441461
inc eax
cmp dl, 0xd
je 0x4413ab
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4413d1
cmp eax, ecx
jae 0x4413df
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 0x441393
jmp 0x44147e
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 0x44145c
cmp dword [ebp - 0x10], 0
je 0x44145c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x475138]
test byte [eax + edi + 0x28], 0x48
je 0x441436
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x441421
mov byte [esi], dl
jmp 0x441432
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x475138]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44147e
cmp byte [ebp - 1], 0xa
jne 0x441445
cmp esi, ebx
jne 0x441445
mov byte [esi], 0xa
jmp 0x44147d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00441ec0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44147e
mov byte [esi], 0xd
jmp 0x44147d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x475138]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44147b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44147e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x441487
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 + 0x475138]
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 0x4414cd
cmp word [ebx], dx
jne 0x4414cd
or byte [eax + edi + 0x28], 4
jmp 0x4414d2
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 0x441635
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 0x441615
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x441513
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x441549
cmp eax, edx
jae 0x441557
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 0x4414ee
jmp 0x441635
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 0x441610
cmp dword [ebp - 0x18], 0
je 0x441610
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x475138]
test byte [eax + edi + 0x28], 0x48
je 0x4415e6
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 0x4415aa
mov word [esi], cx
jmp 0x4415e1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x475138]
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 + 0x475138]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x475138]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x441635
pop eax
cmp word [ebp - 4], ax
jne 0x4415f6
cmp esi, ebx
jne 0x4415f6
mov word [esi], ax
jmp 0x441632
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00441ec0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x441635
push 0xd
pop eax
jmp 0x4415f1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x475138]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44162f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x441635
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 0x446c0d
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 0x446caa
push ebx
push esi
call fcn.00446bd6
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.00443339
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x446c57
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x446ca9
push edi
push eax
call fcn.0043e8b8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x446c77
call fcn.0043e5e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x446ca8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00443339
add esp, 0x20
test eax, eax
jne 0x446c96
push edi
call fcn.0043e5e8
jmp 0x446c9e
push ebx
call fcn.0043e5e8
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 0x446cad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x446cbe
pop esi
ret
push ebx
push edi
push esi
call fcn.00446bd6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043e8b8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x446ce6
push ebx
push esi
push edi
call fcn.0042b6f0
add esp, 0xc
push 0
call fcn.0043e5e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x447440
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00446f5b

Function at 0x44945c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043e2a0
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 0x4494cb
cmp esi, dword [ebp - 4]
je 0x4494c6
cmp dword [ebp + 0xc], 0
je 0x4494c6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4494a3
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00448fae
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4494cd
xor eax, eax
inc eax
jmp 0x4494cd
xor eax, eax
pop edi
pop esi
leave
ret