joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416f30
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x442f80
mov edx, edi
test eax, eax
je 0x416fb1
cmp dword [0x442f80], 0
je 0x416fb1
mov ebx, dword [eax + 4]
cmp dword [edx + 4], ebx
jne 0x416fa7
mov edx, dword [edx]
mov esi, ebx
mov eax, dword [eax + 8]
sub esi, 4
jb 0x416f72
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x416f77
add edx, 4
add eax, 4
sub esi, 4
jae 0x416f61
cmp esi, 0xfffffffc
je 0x416fb8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x416fa4
cmp esi, 0xfffffffd
je 0x416fb8
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x416fa4
cmp esi, 0xfffffffe
je 0x416fb8
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x416fa4
cmp esi, 0xffffffff
je 0x416fb8
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x416fb8
mov eax, dword [ebp + 8]
add edi, 0x18
mov edx, edi
cmp dword [edi], 0
jne 0x416f50
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4171b0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44e054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dl, 1
nop word [eax + eax]
movzx eax, dl
mov cl, dl
sar cl, 7
and cl, 0x1b
mov byte [ebp + ebx - 0x204], dl
mov byte [ebp + eax - 0x104], bl
mov al, dl
add al, al
inc ebx
xor cl, al
xor dl, cl
cmp ebx, 0x100
jl 0x4171d0
mov cl, 1
mov edx, 0x450d60
movzx eax, cl
mov dword [edx], eax
mov al, cl
sar al, 7
add cl, cl
and al, 0x1b
add edx, 4
xor cl, al
cmp edx, 0x450d88
jl 0x417201
mov byte [0x44eb60], 0x63
xor ebx, ebx
mov byte [0x44fcc3], 0
nop dword [eax]
movzx eax, byte [ebp + ebx - 0x103]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov dl, byte [ecx]
mov cl, dl
rol cl, 1
xor dl, cl
rol cl, 1
xor dl, cl
rol cl, 1
mov al, cl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x44eb61], al
inc ebx
movzx eax, al
mov byte [eax + 0x44fc60], bl
lea eax, [ebx + 1]
cmp eax, 0x100
jl 0x417230
xor edi, edi
mov dword [ebp - 0x20c], 0xff
nop
mov dl, byte [edi + 0x44eb60]
mov bl, dl
movzx ecx, dl
sar bl, 7
mov al, dl
add al, al
and bl, 0x1b
xor bl, al
movzx eax, dl
movzx esi, bl
xor esi, eax
movzx eax, bl
shl esi, 8
xor esi, ecx
shl esi, 8
xor esi, ecx
shl esi, 8
xor esi, eax
mov al, byte [edi + 0x44fc60]
mov dword [edi*4 + 0x44ec60], esi
rol esi, 8
mov dword [edi*4 + 0x44f060], esi
rol esi, 8
mov dword [edi*4 + 0x44f460], esi
rol esi, 8
mov dword [edi*4 + 0x44f860], esi
test al, al
je 0x41735d
movzx eax, al
xor edx, edx
mov ebx, 0xff
movzx ecx, byte [ebp + eax - 0x104]
mov eax, dword [ebp - 0xf6]
movzx eax, al
add eax, ecx
div ebx
mov eax, dword [ebp - 0xfb]
movzx eax, al
add eax, ecx
movzx esi, byte [ebp + edx - 0x204]
xor edx, edx
div ebx
mov eax, dword [ebp - 0xf7]
movzx eax, al
add eax, ecx
movzx ebx, byte [ebp + edx - 0x204]
xor edx, edx
div dword [ebp - 0x20c]
movzx eax, byte [ebp + edx - 0x204]
xor edx, edx
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0xf9]
movzx eax, al
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [ebp + edx - 0x204]
jmp 0x417369
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x208], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x208]
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, esi
mov dword [edi*4 + 0x44fd60], eax
rol eax, 8
mov dword [edi*4 + 0x450160], eax
rol eax, 8
mov dword [edi*4 + 0x450560], eax
rol eax, 8
mov dword [edi*4 + 0x450960], eax
inc edi
cmp edi, 0x100
jl 0x417280
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427b91
mov esp, ebp
pop ebp
ret
Function at 0x4232e0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x44e054]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x74], edi
je 0x423316
pop edi
mov eax, 0xffffff8c
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427b91
mov esp, ebp
pop ebp
ret
push esi
push 0x6c
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.00429000
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x28], 0x6a09e667
mov dword [ebp - 0x24], 0xbb67ae85
mov dword [ebp - 0x20], 0x3c6ef372
mov dword [ebp - 0x1c], 0xa54ff53a
mov dword [ebp - 0x18], 0x510e527f
mov dword [ebp - 0x14], 0x9b05688c
mov dword [ebp - 0x10], 0x1f83d9ab
mov dword [ebp - 0xc], 0x5be0cd19
test eax, eax
je 0x4233bc
mov dword [ebp - 0x30], eax
cmp eax, 0x40
jb 0x4233aa
nop
mov edi, eax
xor esi, esi
lea eax, [esi + ebx]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00422870
add esp, 8
test eax, eax
jne 0x4233df
sub edi, 0x40
add esi, 0x40
cmp edi, 0x40
jae 0x423374
cmp esi, 0x40
jb 0x4233df
mov eax, dword [ebp + 0xc]
add ebx, esi
sub eax, esi
mov dword [ebp + 0xc], eax
cmp eax, 0x40
jae 0x423370
mov edi, dword [ebp - 0x74]
test eax, eax
je 0x4233bc
push eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00428a80
add esp, 0xc
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x70]
and ecx, 0x3f
mov byte [ebp + ecx - 0x70], pe_nt_image_headers32
inc ecx
add edx, ecx
cmp ecx, 0x38
ja 0x4233e7
mov eax, 0x38
sub eax, ecx
push eax
push 0
push edx
jmp 0x423415
or esi, 0xffffffff
jmp 0x42349e
mov eax, 0x40
sub eax, ecx
push eax
push 0
push edx
call fcn.00429000
lea eax, [ebp - 0x70]
push eax
push eax
call fcn.00422870
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x423490
push 0x38
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00429000
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
lea edx, [eax*8]
mov eax, ecx
shr eax, 0x1d
or edx, eax
shl ecx, 3
lea eax, [ebp - 0x70]
push eax
bswap edx
bswap ecx
push eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
call fcn.00422870
mov esi, eax
add esp, 8
test esi, esi
jne 0x423490
mov eax, dword [ebp - 0x28]
bswap eax
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
bswap eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1c]
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
bswap eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14]
bswap eax
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x10]
bswap eax
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xc]
bswap eax
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x70]
push 0x6c
push eax
call fcn.004153e0
add esp, 8
lea eax, [ebp - 0x70]
push 0x6c
push eax
call fcn.004153e0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.00427b91
mov esp, ebp
pop ebp
ret
Function at 0x424f80
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x424f91
mov eax, 0xffffff8b
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0xc1059ed8
mov dword [eax + 0x14], 0xcbbb9d5d
mov dword [eax + 0x18], 0x367cd507
mov dword [eax + 0x1c], 0x629a292a
mov dword [eax + 0x20], 0x3070dd17
mov dword [eax + 0x24], 0x9159015a
mov dword [eax + 0x28], 0xf70e5939
mov dword [eax + 0x2c], 0x152fecd8
mov dword [eax + 0x30], 0xffc00b31
mov dword [eax + 0x34], 0x67332667
mov dword [eax + 0x38], 0x68581511
mov dword [eax + 0x3c], 0x8eb44a87
mov dword [eax + 0x40], 0x64f98fa7
mov dword [eax + 0x44], 0xdb0c2e0d
mov dword [eax + 0x48], 0xbefa4fa4
mov dword [eax + 0x4c], 0x47b5481d
mov dword [eax + 0xd0], ecx
xor eax, eax
pop ebp
ret
Function at 0x425e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, edi
je 0x425e52
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x425e51
push ebx
mov ebx, dword [ebp + 0x14]
sub edi, eax
nop dword [eax]
mov edx, dword [0x44eb5c]
lea eax, [eax + 4]
mov ecx, dword [edi + eax - 4]
xor edx, ebx
not edx
and ecx, ebx
and edx, dword [eax - 4]
or ecx, edx
mov dword [eax - 4], ecx
sub esi, 1
jne 0x425e30
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x425e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, eax
je 0x425ebe
cmp dword [ebp + 0x10], 0
jbe 0x425ebe
push esi
push edi
mov edi, dword [ebp + 0x14]
sub ebx, eax
nop dword [eax + eax]
mov edx, dword [0x44eb5c]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor edx, edi
mov esi, dword [ebx + eax - 4]
not edx
and edx, dword [ebx + eax - 4]
and ecx, edi
or ecx, edx
and esi, edi
mov dword [ebx + eax - 4], ecx
mov ecx, dword [0x44eb5c]
mov edx, dword [eax - 4]
xor ecx, edi
not ecx
and edx, ecx
or edx, esi
sub dword [ebp + 0x10], 1
mov dword [eax - 4], edx
jne 0x425e80
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x425f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x44eb5c]
mov eax, dword [0x44eb5c]
mov eax, dword [0x44eb5c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
test edi, edi
je 0x426070
mov eax, dword [ebp + 0xc]
lea edx, [edi - 1]
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [ebp + 8], ecx
lea edx, [eax + edx*4]
mov dword [ebp + 0x10], edx
push esi
nop dword [eax]
mov esi, dword [0x44eb5c]
xor esi, dword [edx]
mov edx, dword [0x44eb5c]
mov eax, dword [ebp + 0x10]
xor edx, dword [ecx + eax]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44eb5c]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb5c]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44eb5c]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov esi, dword [0x44eb5c]
mov edx, dword [0x44eb5c]
mov ecx, eax
shr ecx, 1
neg eax
neg ecx
or ecx, eax
mov eax, dword [ebp + 8]
shr ecx, 0x1f
neg ecx
or dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x10]
xor esi, dword [eax + ecx]
xor edx, dword [ecx]
mov eax, edx
xor eax, esi
sub esi, edx
shr eax, 0x1f
xor eax, dword [0x44eb5c]
mov ecx, eax
neg eax
shr ecx, 1
neg ecx
or ecx, eax
mov eax, dword [0x44eb5c]
shr ecx, 0x1f
neg ecx
xor eax, ecx
and ecx, edx
not eax
and esi, eax
mov eax, dword [0x44eb5c]
or esi, ecx
shr esi, 0x1f
xor eax, esi
mov edx, eax
neg eax
shr edx, 1
neg edx
or edx, eax
mov eax, dword [ebp - 4]
shr edx, 0x1f
mov ecx, eax
neg edx
not ecx
and ecx, edx
or eax, edx
mov edx, dword [ebp + 0x10]
or ebx, ecx
mov ecx, dword [ebp + 8]
sub edx, 4
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], edx
sub edi, 1
jne 0x425f90
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f2aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00441650
mov eax, dword [0x44e054]
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.00435a21
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42f2ec
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42f448
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428160
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 + 0x451420]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004377aa
mov ecx, dword [esi*4 + 0x451420]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42f441
cmp eax, dword [edi + ecx + 0x24]
jne 0x42f441
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f441
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004377aa
add esp, 0x14
test edx, edx
jl 0x42f441
jg 0x42f3b7
test eax, eax
jb 0x42f441
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42f441
jl 0x42f3d1
cmp dword [ebp - 0x1008], eax
ja 0x42f441
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42f3ef
test ebx, ebx
je 0x42f428
cmp ecx, edi
jae 0x42f428
mov al, byte [ecx]
cmp al, 0xd
jne 0x42f409
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42f415
cmp byte [ecx + 1], 0xa
jne 0x42f415
inc ecx
jmp 0x42f415
movzx eax, al
movsx eax, byte [eax + 0x44e158]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42f3ef
cmp edx, ebx
jne 0x42f3ef
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42f446
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00427b91
leave
ret
Function at 0x4323b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x451420]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4323f5
cmp byte [ebx], 0xa
jne 0x4323f5
or byte [eax + edi + 0x28], 4
jmp 0x4323fa
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4324f8
mov al, byte [edx]
cmp al, 0x1a
je 0x4324da
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x432429
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43244e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x432458
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x43240b
jmp 0x4324f8
push 0
lea eax, [ebp - 0xc]
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 0x4324d5
cmp dword [ebp - 0xc], 0
je 0x4324d5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x451420]
test byte [eax + edi + 0x28], 0x48
je 0x4324af
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43249a
mov byte [esi], dl
jmp 0x4324ab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451420]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4324f8
cmp byte [ebp - 1], 0xa
jne 0x4324be
cmp esi, ebx
jne 0x4324be
mov byte [esi], 0xa
jmp 0x4324f7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004377c8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4324f8
mov byte [esi], 0xd
jmp 0x4324f7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x451420]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4324f4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4324f8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x432501
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x451420]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x432544
cmp word [esi], dx
jne 0x432544
or byte [edi + eax + 0x28], 4
jmp 0x432549
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x43269c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x43267c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43258b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4325c1
cmp eax, edx
jae 0x4325cd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x432563
jmp 0x43269c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432678
cmp dword [ebp - 0x14], 0
je 0x432678
mov eax, dword [ebx*4 + 0x451420]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x432650
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x432619
mov word [esi], cx
jmp 0x43264c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x451420]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x451420]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x451420]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x43269c
pop ebx
cmp word [ebp - 4], bx
jne 0x432661
cmp esi, dword [ebp + 0xc]
jne 0x432661
mov word [esi], bx
jmp 0x432699
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004377c8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43269c
push 0xd
jmp 0x432695
mov ecx, dword [ebx*4 + 0x451420]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x432693
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43269c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434320
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4474a4
push 0x44749c
push str.FlsAlloc
push 0x1e
call fcn.004341e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434354
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421e8]
call esi
jmp 0x43435a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43439e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4474b4
push 0x4474ac
push str.FlsGetValue
push 0x20
call fcn.004341e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4343d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x4421e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4392ec
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 0x439389
push ebx
push esi
call fcn.004392b5
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.004391fe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x439336
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x439388
push edi
push eax
call fcn.0043485e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x439356
call fcn.00434074
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x439387
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004391fe
add esp, 0x20
test eax, eax
jne 0x439375
push edi
call fcn.00434074
jmp 0x43937d
push ebx
call fcn.00434074
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 0x43938c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43939d
pop esi
ret
push ebx
push edi
push esi
call fcn.004392b5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043485e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4393c5
push ebx
push esi
push edi
call fcn.00428a80
add esp, 0xc
push 0
call fcn.00434074
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x439b11
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439638
Function at 0x43f497
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.0043f413
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43f60f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43f60f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43f5be
jg 0x43f4f0
test eax, eax
je 0x43f5b4
push 1
push 0x1000
call fcn.00433dae
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43f516
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43f5ab
push 0x8000
push ebx
call fcn.00431ba3
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 0x43f542
jg 0x43f53d
cmp ecx, 0x1000
jb 0x43f542
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043361b
add esp, 0x10
cmp eax, 0xffffffff
je 0x43f587
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 0x43f53d
jl 0x43f56e
test ecx, ecx
jne 0x43f52f
push dword [ebp - 0xc]
push ebx
call fcn.00431ba3
push esi
call fcn.00434074
add esp, 0xc
xor edi, edi
jmp 0x43f620
cmp byte [edi + 0x24], 0
je 0x43f59e
cmp dword [edi + 0x20], 5
jne 0x43f59e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43f5a9
mov edi, dword [edi + 0x18]
jmp 0x43f5ab
xor edi, edi
push esi
call fcn.00434074
pop ecx
jmp 0x43f620
test ecx, ecx
jg 0x43f580
jl 0x43f5be
test eax, eax
jae 0x43f580
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004377c8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43f5e1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43f580
jmp 0x43f618
push ebx
call fcn.0043740a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43f580
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 0x43f620
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43f61d
mov edi, dword [edi + 0x18]
jmp 0x43f620
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004377c8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret