joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x246a2ec0
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xeb373cc
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x42f129
Capabilities:
Encode data using xor

Disassembly:
mov ah, 0xbd
cmp edi, ebx
xor al, ch
and eax, 0xaa65e138
jne 0x42f12d
adc al, 0x77
invalid

Function at 0x4a313d
Capabilities:
Encode data using add xor sub operations

Disassembly:
or eax, 0x3c9f9102
and eax, 0x236c9a08
insb byte es:[edi], dx
and ebx, dword [edi - 8]

Function at 0x4a3145
Capabilities:
Encode data using xor

Disassembly:
insb byte es:[edi], dx
and ebx, dword [edi - 8]
outsd dx, dword [esi]
inc esp
sub ch, byte [edi + 0x7c]
jl 0x4a30ff
neg dword [eax]
pop edx
xor dword [esi], ecx
xchg esp, eax
add byte [edi - 0x67683df8], cl
cmpsd dword [esi], dword es:[edi]
outsd dx, dword [esi]
xor eax, 0xf304d1f6
loop fcn.004a3145
rol dword [edi], 0xdd
add ah, byte [ecx + eax*8]
mov ah, 0xdb
adc byte [edx + 0x10], dh
imul edi, edx, 0xfffffff3
and eax, 0x9f2ddff5
xlatb
push eax
retf

Function at 0x4bbf35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3408
cmp edx, dword [eax]
je 0x4bbf57
add eax, 8
inc ecx
cmp eax, 0x4c3498
jl 0x4bbf48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3408]
jne 0x4bc085
mov eax, dword [0x4c8e30]
cmp eax, 1
je 0x4bc05f
test eax, eax
jne 0x4bbf88
cmp dword [0x4c3334], 1
je 0x4bc05f
cmp edx, 0xfc
je 0x4bc085
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbfbf
lea eax, [ebp - 0x1a4]
push 0x4c16c0
push eax
call fcn.004bc920
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcdb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bc002
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcdb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c16bc
push edi
call fcn.004bec80
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c16a0
push eax
call fcn.004bc920
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc930
lea eax, [ebp - 0xa0]
push 0x4c169c
push eax
call fcn.004bc930
push dword [esi + 0x4c340c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc930
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1674
push eax
call fcn.004bebf4
add esp, 0x2c
pop edi
jmp 0x4bc085
lea eax, [ebp + 8]
lea esi, [esi + 0x4c340c]
push 0
push eax
push dword [esi]
call fcn.004bcdb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x50a9d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb4000]
push edi
jmp 0x50a9ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50a9f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50a9e0
mov eax, 1
add ebx, ebx
jne 0x50aa03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50aa14
jne 0x50aa33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50aa33
dec eax
add ebx, ebx
jne 0x50aa20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50a9f8
add ebx, ebx
jne 0x50aa2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50aa85
xor ecx, ecx
sub eax, 3
jb 0x50aa4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50aaba
sar eax, 1
mov ebp, eax
jmp 0x50aa56
add ebx, ebx
jne 0x50aa56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50aa24
inc ecx
add ebx, ebx
jne 0x50aa64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50aa24
add ebx, ebx
jne 0x50aa71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50aa66
jne 0x50aa82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50aa66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50aaa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50aa96
jmp 0x50a9e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50aaa4
add edi, ecx
jmp 0x50a9e6
pop esi
mov edi, esi
mov ecx, 0x3ed3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50aac2
cmp byte [edi], 0x11
jne 0x50aac2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50aac7
lea edi, [esi + 0x103000]
mov eax, dword [edi]
or eax, eax
je 0x50ab3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13bfb4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13c130]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50aaf4
mov ecx, edi
jns 0x50ab23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13c134]
or eax, eax
je 0x50ab39
mov dword [ebx], eax
add ebx, 4
jmp 0x50ab11
call dword [esi + 0x13c144]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x50ab70
cmp al, 0xef
ja 0x50ab63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50ab45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x50ab52
mov ebp, dword [esi + 0x13c138]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50aba4
sub esp, 0xffffff80
jmp 0x427dcd
Function at 0x438ca0
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
sub edi, ebx
call fcn.00438cd4
sub ebx, 1
xor dword [edx], esi
sub ebx, 0x64f87e05
add edi, 0xf1ad334e
inc edx
mov ebx, 0xb3f83460
cmp edx, eax
jne fcn.00438ca0
sub edi, ebx
and ebx, edi
or ebx, ebx
ret
Function at 0x404c34
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push esi
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push 0x10000
push dword [esp + 0x28]
mov dword [esp + 0x14], ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebx
call fcn.004144e6
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x404c80
lea eax, [esp + 0xc]
push eax
push ebx
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebx
call fcn.004144e6
add esp, 0x18
mov esi, eax
cmp dword [0x431020], ebx
je 0x404d29
push ebp
push edi
push str.J2D_D3D
call fcn.0040e884
mov ebp, str.false
pop ecx
test eax, eax
je 0x404cb5
push ebp
push eax
call fcn.00416377
neg eax
pop ecx
sbb eax, eax
and dword [0x431020], eax
pop ecx
push str.J2D_D3D_PRELOAD
call fcn.0040e884
mov edi, eax
pop ecx
test edi, edi
je 0x404ce3
push ebp
push edi
call fcn.00416377
pop ecx
pop ecx
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [0x431020]
mov dword [0x431020], ecx
jmp 0x404ce9
mov ecx, dword [0x431020]
test ecx, ecx
jns 0x404d1a
mov dword [0x431020], ebx
test edi, edi
je 0x404d27
push str.true
push edi
call fcn.00416377
xor edx, edx
pop ecx
inc edx
test eax, eax
pop ecx
mov ecx, dword [0x431020]
cmove ecx, edx
mov dword [0x431020], ecx
test ecx, ecx
je 0x404d27
push str.preloadD3D
call fcn.00404ae5
pop ecx
pop edi
pop ebp
test esi, esi
je 0x404d4b
push 0xffffffffffffffff
push esi
call dword [0x42503c]
lea eax, [esp + 8]
push eax
push esi
call dword [0x425044]
push esi
call dword [0x42502c]
jmp 0x404d57
push dword [esp + 0x20]
call dword [esp + 0x18]
mov dword [esp + 8], eax
cmp dword [0x431a10], 0
pop esi
pop ebx
je 0x404d6d
mov eax, dword [0x431a2c]
test eax, eax
je 0x404d6d
call eax
mov eax, dword [esp]
pop ecx
pop ecx
ret
Function at 0x41c660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x41c692
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41c699
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41c750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x41c782
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41c79a
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jne 0x41c793
mov dword [ebp - 4], 0
jmp 0x41c79a
mov dword [ebp - 4], 0x70
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41c860
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0041c810
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x41c8a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41c8aa
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41cb90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.tcl86t.dll_Tcl_Exit]
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x41ed30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x460478
call fcn.0041edc0
add esp, 0xc
push 0x460478
call fcn.00426b90
add esp, 4
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x460478
mov edx, dword [0x460470]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0
mov esp, ebp
pop ebp
ret

Function at 0x41ed90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.Pause:
call fcn.0041ed30
add esp, 4
push 0
lea eax, [ebp - 4]
push eax
push 0x64
push 0x460578
mov ecx, dword [0x46046c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esp, ebp
pop ebp
ret
Function at 0x41f000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41f029
xor eax, eax
jmp 0x41f073
mov dword [ebp - 0xc], 0x400
lea eax, [ebp - 0xc]
push eax
push 0x460de8
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41f064
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41f073
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x460de8
mov esp, ebp
pop ebp
ret

Function at 0x41fa66
Capabilities:
Parse pe header

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

Function at 0x42af80
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45de00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x44b38c
push esi
call fcn.0043b7c5
pop ecx
pop ecx
test eax, eax
jne 0x42afae
xor al, al
jmp 0x42b02b
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.0042acc1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x42afe8
push dword [ebp - 0x210]
call fcn.00426c1b
xor al, al
jmp 0x42b029
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42afee
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x42b00e
push edx
call fcn.0042aeb7
pop ecx
test al, al
je 0x42afd9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42b01c
mov bl, 1
push dword [ebp - 0x210]
call fcn.00426c1b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041f113
leave
ret
Function at 0x431ce8
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 + 0x461870]
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 0x431d28
cmp byte [ebx], 0xa
jne 0x431d28
or byte [edi + eax + 0x28], 4
jmp 0x431d2d
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 0x431e2c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x431e0f
inc eax
cmp dl, 0xd
je 0x431d59
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x431d7f
cmp eax, ecx
jae 0x431d8d
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 0x431d41
jmp 0x431e2c
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 0x431e0a
cmp dword [ebp - 0x10], 0
je 0x431e0a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x461870]
test byte [eax + edi + 0x28], 0x48
je 0x431de4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x431dcf
mov byte [esi], dl
jmp 0x431de0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x461870]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x431e2c
cmp byte [ebp - 1], 0xa
jne 0x431df3
cmp esi, ebx
jne 0x431df3
mov byte [esi], 0xa
jmp 0x431e2b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004311ff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x431e2c
mov byte [esi], 0xd
jmp 0x431e2b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x461870]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x431e29
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x431e2c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x431e35
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 + 0x461870]
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 0x431e7b
cmp word [ebx], dx
jne 0x431e7b
or byte [eax + edi + 0x28], 4
jmp 0x431e80
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 0x431fe3
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 0x431fc3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x431ec1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x431ef7
cmp eax, edx
jae 0x431f05
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 0x431e9c
jmp 0x431fe3
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 0x431fbe
cmp dword [ebp - 0x18], 0
je 0x431fbe
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x461870]
test byte [eax + edi + 0x28], 0x48
je 0x431f94
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 0x431f58
mov word [esi], cx
jmp 0x431f8f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x461870]
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 + 0x461870]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x461870]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x431fe3
pop eax
cmp word [ebp - 4], ax
jne 0x431fa4
cmp esi, ebx
jne 0x431fa4
mov word [esi], ax
jmp 0x431fe0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004311ff
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x431fe3
push 0xd
pop eax
jmp 0x431f9f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x461870]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x431fdd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x431fe3
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 0x433ab6
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45de00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x433af9
call fcn.00426993
mov dword [eax], 0xf
call fcn.004269a6
mov dword [eax], 0xd
call fcn.00434ba7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f113
leave
ret
test eax, eax
jne 0x433b00
inc eax
jmp 0x433aed
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 0x433aeb
xor eax, eax
cmp ecx, 1
setne al
jmp 0x433aed

Function at 0x4350be
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44bcfc
push 0x44bcf4
push str.FlsAlloc
push 0x1f
call fcn.00434f27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4350f2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4492e0]
call esi
jmp 0x4350f8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43513c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44bd0c
push 0x44bd04
push str.FlsGetValue
push 0x21
call fcn.00434f27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x435173
push dword [ebp + 8]
mov ecx, esi
call dword [0x4492e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43517b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44bd14
push 0x44bd0c
push str.FlsSetValue
push 0x22
call fcn.00434f27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4351b5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4492e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43df9e
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 0x43e03b
push ebx
push esi
call fcn.0043df66
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.0043c02e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43dfe8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43e03a
push edi
push eax
call fcn.004359e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43e008
call fcn.00434c48
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43e039
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043c02e
add esp, 0x20
test eax, eax
jne 0x43e027
push edi
call fcn.00434c48
jmp 0x43e02f
push ebx
call fcn.00434c48
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 0x43e03e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43e04f
pop esi
ret
push ebx
push edi
push esi
call fcn.0043df66
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004359e0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43e077
push ebx
push esi
push edi
call fcn.004214d0
add esp, 0xc
push 0
call fcn.00434c48
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43e7d1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e2ec

Function at 0x440d22
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00435e2e
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 0x440d91
cmp esi, dword [ebp - 4]
je 0x440d8c
cmp dword [ebp + 0xc], 0
je 0x440d8c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x440d69
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00440874
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x440d93
xor eax, eax
inc eax
jmp 0x440d93
xor eax, eax
pop edi
pop esi
leave
ret