joyce8/EMBER2024-capa huggingface dataset:
Function at 0x130e245
Capabilities:
Check for trap flag exception

Disassembly:
push ebx
jmp 0x12f3ace
pushfd
or dword [esp], reloc.kernel32.dll_GetProcAddress
popfd
cpuid
nop
jmp 0x12f3ae5
pop ebx
ret
push ebx
lea esp, [esp + 4]
jmp 0x12f3ac2

Function at 0x13a2532
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edx, 0xc626686a
bswap edx
add esp, 7
bt eax, edx
pop dword [esp]
jmp 0x13a2550
pop dword [esp + 7]
jmp 0x13a251b
not ax
mov dx, 0xc1b0
mov dl, 0x5e
xchg dh, ah
sub esp, 3
mov al, byte [esp + 4]
jmp 0x13a2562
mov dx, 0x1ea0
mov eax, dword [esp]
mov dword [esp], ecx
xchg edx, eax
setns al
pushal
jmp 0x13a2538
neg ax
xchg edx, eax
mov ah, byte [esp + 0xd]
xchg word [esp + 0x14], dx
mov eax, dword [esp + 0x1b]
push bx
jmp 0x13a25fa
xchg byte [esp + 0xa], dh
xchg word [esp + 4], dx
pop edx
lea edx, [edi + ebp]
mov word [esp + 0xb], bx
not eax
jmp 0x13a25df
shl dl, 6
seto dh
sbb dx, bp
mov dx, word [esp + 6]
jmp 0x13a2630
pop dx
mov edx, 0xc6831681
bsr ax, sp
pop dword [esp + 2]
rdtsc
xchg dword [esp + 4], edx
jmp 0x13a259c
mov eax, 0x747dd4d1
mov dh, 0x4e
push word [esp + 2]
push word [esp + 0x10]
xchg dword [esp + 0x20], eax
jmp 0x13a25b2
push dword [esp + 0x20]
bsr edx, ecx
rdtsc
lea edx, [edx*4]
pop dword [esp + 0x20]
xchg dh, al
jmp 0x13a25c8
bsf dx, ax
mov dh, byte [esp + 0x15]
dec dh
btr edx, edx
xchg dword [esp + 0xf], eax
dec dx
jmp 0x13a2649
setl ah
mov edx, 0x1c5b888
mov ax, di
mov eax, dword [esp]
pop dword [esp + 0xa]
mov word [esp + 0xf], si
jmp 0x13a2612
rdtsc
pushal
lea esp, [esp + 0x41]
mov eax, dword [esp]
mov dh, byte [esp]
mov eax, dword [esp]
jmp 0x13a270b
setnp al
shl edx, 0x19
mov ax, word [esp + 0x11]
pop word [esp]
jmp 0x13a26ae
mov dword [esp + 9], esi
call fcn.013a2683
pop word [esp + 9]
mov dh, byte [esp + 4]
lea edx, [esi + 0xd1]
call fcn.013a273b
lds esi, [edi + eax*4 + 0x54]
xchg dword [esp + 7], edx
mov edx, ecx
xchg dword [esp + 0xc], edx
jmp 0x13a268f
sub esp, 0x15
pop word [esp + 4]
xchg dh, ah
push word [esp + 6]
mov dx, word [esp + 4]
mov word [esp + 1], sp
jmp 0x13a26a5
mov edx, esp
lea eax, [edx + esi]
mov dx, word [esp]
mov ax, word [esp]
bsr edx, eax
not dx
jmp 0x13a26dc

Function at 0x13a28f8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edi
mov eax, edx
push dword [esp + 7]
rcr dh, cl
xchg byte [esp + 0xc], ah
std
jmp 0x13a2902
rdtsc
mov ax, 0xe85a
rdtsc
jmp 0x13a28e2
bsf eax, ecx
neg edx
not ah
neg edx
mov word [esp + 8], bp
stc
jmp 0x13a2943
pop dx
pop word [esp + 4]
not eax
sub esp, 0x1f
sete al
pushal
jmp 0x13a2926

Function at 0x13a2a50
Capabilities:
Execute anti-debugging instructions

Disassembly:
bt edx, esi
sete ah
pop word [esp]
mov ax, si
not edx
jmp 0x13a2a52
jmp 0x13a2a3a
shr ax, 4
xchg al, ah
xchg edx, eax
mov ah, 0x82
lea edx, reloc.kernel32.dll_GetProcAddress
inc dl
jmp 0x13a2aff
add esp, 1
rdtsc
neg eax
rcr ah, cl
mov dh, ah
mov eax, edx
jmp 0x13a2a94
lea esp, [esp + 1]
bts dx, ax
rcr al, cl
mov word [esp], sp
btr eax, ebx
mov ah, dh
jmp 0x13a2abd
Function at 0x13a2d77
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [esp + eax]
pop word [esp + 4]
mov eax, ebp
shl dx, cl
add esp, 0
not eax
jmp 0x13a2d26
cmp al, 0x67
mov dl, byte [esp + 4]
mov dx, di
lea edx, [ebp + 0x8d]
jmp 0x13a2d46

Function at 0x13a3136
Capabilities:
Execute anti-debugging instructions

Disassembly:
setp dl
mov dword [esp], eax
jmp 0x13a2831

Function at 0x13a4c02
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x13a4bad
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x13a4bdb
mov dword [esp + 0x10], esi
push sp
push edi
lea esp, [esp + 2]
mov dword [esp + 0x10], edi
lea esp, [esp + 0x10]
jmp 0x13a4b9b
push eax
jmp 0x13a4040
mov byte [esp + 1], ah
mov word [esp], bx
mov byte [esp], dh
lea esp, [esp + 2]
lea esp, [esp + 2]
jmp 0x13a4bc6
Function at 0x4213d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x808
mov eax, dword [0x4f9114]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, dword [esp + 0x80c]
lea edx, [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x818]
sub edx, ecx
push esi
push edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x421400
mov bh, byte [esp + 0x14]
lea ecx, [esp + 0x14]
mov eax, ecx
test bh, bh
je 0x421468
nop dword [eax + eax]
cmp bh, 0x22
jne 0x421445
inc ecx
mov byte [eax], bh
inc eax
mov dl, byte [ecx]
cmp dl, bh
je 0x421441
nop
mov byte [eax], dl
inc eax
cmp byte [ecx], 0
je 0x42146b
mov dl, byte [ecx + 1]
inc ecx
cmp dl, 0x22
jne 0x421430
mov byte [eax], dl
jmp 0x42145f
mov edx, 0x4b1470
mov bl, 0x25
nop dword [eax]
lea edx, [edx + 1]
cmp bl, bh
je 0x421460
mov bl, byte [edx]
test bl, bl
jne 0x421450
mov byte [eax], bh
inc eax
mov bh, byte [ecx + 1]
inc ecx
test bh, bh
jne 0x421420
mov byte [eax], 0
mov dl, byte [esp + 0x14]
lea ecx, [esp + 0x14]
test dl, dl
je 0x4214a2
mov al, dl
nop dword [eax]
cmp al, 0x5b
je 0x42148e
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x421480
jmp 0x4214a2
mov eax, ecx
lea esi, [esp + 0x14]
sub eax, esi
add eax, 1
je 0x4214a2
mov byte [ecx], 0
mov dl, byte [esp + 0x14]
xor esi, esi
lea ecx, [esp + 0x14]
test dl, dl
je 0x4214c1
nop dword [eax]
add esi, esi
movsx eax, dl
mov dl, byte [ecx + 1]
lea ecx, [ecx + 1]
xor esi, eax
test dl, dl
jne 0x4214b0
and esi, 0x1fff
mov edi, dword [esi*4 + 0x28363a8]
test edi, edi
je 0x421535
nop dword [eax]
nop word [eax + eax]
imul ebx, edi, 0x290
lea eax, [esp + 0x14]
lea ecx, [ebx + 0x283e3cc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x421510
test dl, dl
je 0x42150c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x421510
add eax, 2
add ecx, 2
test dl, dl
jne 0x4214f0
xor eax, eax
jmp 0x421515
sbb eax, eax
or eax, 1
test eax, eax
je 0x421550
inc esi
and esi, 0x80001fff
jns 0x42152a
dec esi
or esi, 0xffffe000
inc esi
mov edi, dword [esi*4 + 0x28363a8]
test edi, edi
jne 0x4214e0
xor eax, eax
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048dafd
add esp, 0x808
ret
mov dword [ebp], edi
mov eax, dword [ebx + 0x283e3ac]
jmp 0x421537
Function at 0x423070
Capabilities:
Set registry value

Disassembly:
sub esp, 0x70
mov eax, dword [0x4f9114]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
mov ebx, dword [esp + 0x84]
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x84]
push 0x64
push 0
push eax
call fcn.0048ee70
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4230d6
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048dafd
add esp, 0x70
ret
Function at 0x4258c0
Capabilities:
Delete file
Manipulate console buffer
Terminate process

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push ebp
push esi
push edi
mov dword [0x4f9bc0], 0x40000
push dword [0x4f9bc0]
push dword [0x4f9bc4]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
lea eax, [esp + 0x10]
push eax
push dword [0x4f9bc4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0xc
call edi
mov eax, dword [0x4f9d38]
mov esi, dword [eax*4 + 0x864768]
shl eax, 0xb
add eax, 0x7e4768
push eax
call fcn.0048ad20
push esi
push str.___Line:
push eax
push str.Processing_Module:
push str._s_s_s__d_n
call fcn.0048d860
add esp, 0x18
mov dword [0x4f9bc0], 0x50000
push dword [0x4f9bc0]
push dword [0x4f9bc4]
call ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
push eax
push dword [0x4f9bc4]
mov dword [esp + 0x18], 0xc
call edi
push 0x3e8
call fcn.0041b150
push 0x3e8
push 0x20
push eax
call fcn.0048ee70
push eax
push 0x4aedd4
call fcn.0048d860
mov ebp, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
add esp, 0x18
push 0xa
push dword [0x4f9bc4]
call ebp
mov dword [0x4f9bc0], 0x50000
push dword [0x4f9bc0]
mov dword [0x4f4018], 0xa
push dword [0x4f9bc4]
mov dword [0x4f9bc8], 0
call ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
push eax
push dword [0x4f9bc4]
mov dword [esp + 0x18], 0xc
call edi
push dword [0x4fa590]
call fcn.0048ab60
push eax
push 0x4aedd4
call fcn.0048d860
add esp, 0xc
push 0xd
push dword [0x4f9bc4]
call ebp
mov dword [0x4f9bc0], 0x90000
push dword [0x4f9bc0]
mov dword [0x4f4018], 0xd
push dword [0x4f9bc4]
mov dword [0x4f9bc8], 0
call ebx
mov dword [esp + 0x14], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xc
push eax
push dword [0x4f9bc4]
call edi
push str.Press_any_key_to_cancel
push 0x4aedd4
call fcn.0048d860
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x64
call esi
call fcn.004997e0
test eax, eax
je 0x425acf
call fcn.004959f4
push 0x64
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.BC.out
call esi
push str.BC.c
call esi
push str.BC.cpp
call esi
call fcn.004411f0
push str.Cancelled_by_user._Unfinished_translation_files_removed.
push 0x4aedd4
call fcn.0048d860
push 1
call fcn.0049581b
push eax
call fcn.00495ddf
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [0x4f9bcc]
test esi, esi
jne 0x425afb
push 7
push dword [0x4f9bc4]
call ebp
pop edi
mov dword [0x4f9bc8], esi
pop esi
pop ebp
mov dword [0x4f4018], 7
pop ebx
add esp, 8
ret
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x431fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x144
mov eax, dword [0x4f9114]
xor eax, esp
mov dword [esp + 0x140], eax
push esi
mov esi, dword [esp + 0x14c]
push 0x2a
push esi
call fcn.0048e550
add esp, 8
test eax, eax
jne 0x432041
push 0x3f
push esi
call fcn.0048e550
add esp, 8
test eax, eax
jne 0x432041
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
pop esi
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0048dafd
add esp, 0x144
ret
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x43206a
xor eax, eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0048dafd
add esp, 0x144
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x144]
mov eax, 1
pop esi
xor ecx, esp
call fcn.0048dafd
add esp, 0x144
ret
Function at 0x447340
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [0x4887b88]
inc eax
and eax, 0x7ff
mov dword [0x4887b88], eax
mov eax, dword [eax*4 + 0x4887b90]
test eax, eax
je 0x447375
push eax
call fcn.004912bf
mov eax, dword [0x4887b88]
add esp, 4
mov dword [eax*4 + 0x4887b90], 0
push esi
push 1
push 0x801
call fcn.004912b4
mov esi, eax
mov dword [esp + 0xc], 0x800
mov eax, dword [0x4887b88]
add esp, 8
mov dword [eax*4 + 0x4887b90], esi
lea eax, [esp + 0xc]
push eax
push 1
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4473ce
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x471110
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4887b88]
inc eax
and eax, 0x7ff
mov dword [0x4887b88], eax
mov eax, dword [eax*4 + 0x4887b90]
test eax, eax
je 0x471144
push eax
call fcn.004912bf
mov eax, dword [0x4887b88]
add esp, 4
mov dword [eax*4 + 0x4887b90], 0
push esi
push 1
push 0x801
call fcn.004912b4
mov ecx, dword [0x4887b88]
add esp, 8
mov esi, eax
push esi
push 0
push dword [esp + 0x14]
mov dword [ecx*4 + 0x4887b90], esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, esi
pop esi
ret
Function at 0x489860
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x28
mov eax, dword [0x4f9114]
xor eax, esp
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x1c], 0
push esi
mov dword [0x4f9bc0], eax
xorps xmm0, xmm0
lea eax, [esp + 0x10]
mov word [esp + 0x24], 0
push eax
push dword [0x4f9bc4]
movups xmmword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx eax, word [esp + 0x10]
movsx esi, word [esp + 0x12]
imul esi, eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x20
push dword [0x4f9bc4]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
lea eax, [esp + 4]
push eax
mov eax, dword [0x4f9bc8]
push 0
shl eax, 4
add eax, dword [0x4f4018]
push esi
push eax
push dword [0x4f9bc4]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
xor eax, eax
push eax
push dword [0x4f9bc4]
mov dword [0x4f9bc0], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea eax, [esp + 8]
mov dword [esp + 0xc], 1
push eax
push dword [0x4f9bc4]
mov dword [esp + 0x10], 0xc
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov ecx, dword [esp + 0x28]
pop esi
xor ecx, esp
call fcn.0048dafd
add esp, 0x28
ret
Function at 0x489930
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [esp + 0xc]
mov esi, eax
test edi, edi
jns 0x4899e9
mov al, byte [esi]
test al, al
je 0x489976
mov cl, al
nop
mov al, cl
cmp cl, 0x20
je 0x489976
cmp cl, 0x22
jne 0x48996c
nop dword [eax]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x48996c
cmp al, 0x22
jne 0x489960
mov al, byte [esi + 1]
inc esi
mov cl, al
test al, al
jne 0x489950
movzx eax, al
push eax
call fcn.00490e70
add esp, 4
test eax, eax
je 0x489998
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.00490e70
add esp, 4
test eax, eax
jne 0x489986
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4899a0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0041b150
mov edi, eax
add esp, 4
mov edx, edi
sub edx, esi
nop dword [eax + eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], cl
test cl, cl
jne 0x4899c0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4899d2
sub ecx, edx
cmp byte [ecx + edi - 1], 0x14
jne 0x4899e4
mov byte [edi], al
mov eax, edi
pop edi
pop esi
ret
push ebx
inc edi
push ebp
nop dword [eax]
movzx eax, byte [esi]
push eax
call fcn.00490e70
add esp, 4
test eax, eax
je 0x489a12
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.00490e70
add esp, 4
test eax, eax
jne 0x489a00
mov al, byte [esi]
mov ebp, esi
cmp al, 0x22
jne 0x489a2f
nop word [eax + eax]
mov al, byte [esi + 1]
inc esi
test al, al
je 0x489a3f
cmp al, 0x22
jne 0x489a20
inc esi
jmp 0x489a3f
test al, al
je 0x489a3f
cmp al, 0x20
je 0x489a3f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x489a33
sub edi, 1
jne 0x4899f0
cmp byte [ebp], 0x22
jne 0x489a54
lea eax, [esi - 1]
inc ebp
cmp byte [eax], 0x22
cmove esi, eax
mov edi, esi
sub edi, ebp
lea eax, [edi + 1]
push eax
call fcn.0041b150
push edi
mov ebx, eax
push ebp
push ebx
call fcn.00491190
add esp, 0x10
mov ecx, ebx
sub ecx, ebp
mov eax, ebx
pop ebp
pop ebx
pop edi
mov byte [ecx + esi], 0
pop esi
ret

Function at 0x489b90
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4887b88]
inc eax
and eax, 0x7ff
mov dword [0x4887b88], eax
mov eax, dword [eax*4 + 0x4887b90]
test eax, eax
je 0x489bc4
push eax
call fcn.004912bf
mov eax, dword [0x4887b88]
add esp, 4
mov dword [eax*4 + 0x4887b90], 0
push esi
push 1
push 0x801
call fcn.004912b4
mov ecx, dword [0x4887b88]
add esp, 8
mov esi, eax
push esi
push 0x400
mov dword [ecx*4 + 0x4887b90], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, esi
pop esi
ret
Function at 0x48e210
Capabilities:
Parse pe header

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

Function at 0x49cb62
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ee918
push 0x4ee910
push str.FlsAlloc
push 0x1e
call fcn.0049ca23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49cb96
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ac1e8]
call esi
jmp 0x49cb9c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x49cbe0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ee928
push 0x4ee920
push str.FlsGetValue
push 0x20
call fcn.0049ca23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49cc17
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ac1e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x49e157
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049dfc8
Function at 0x4a2593
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 0x4a2630
push ebx
push esi
call fcn.004a255c
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.004a02b8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a25dd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a262f
push edi
push eax
call fcn.0049e58a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4a25fd
call fcn.0049b78e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a262e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004a02b8
add esp, 0x20
test eax, eax
jne 0x4a261c
push edi
call fcn.0049b78e
jmp 0x4a2624
push ebx
call fcn.0049b78e
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 0x4a2633
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a2644
pop esi
ret
push ebx
push edi
push esi
call fcn.004a255c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0049e58a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a266c
push ebx
push esi
push edi
call fcn.0048e8f0
add esp, 0xc
push 0
call fcn.0049b78e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4a2db8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a28df
Function at 0x4a51b2
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 + 0x48eef08]
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 0x4a51f2
cmp byte [ebx], 0xa
jne 0x4a51f2
or byte [eax + edi + 0x28], 4
jmp 0x4a51f7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a52f5
mov al, byte [edx]
cmp al, 0x1a
je 0x4a52d7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a5226
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a524b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a5255
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 0x4a5208
jmp 0x4a52f5
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 0x4a52d2
cmp dword [ebp - 0xc], 0
je 0x4a52d2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48eef08]
test byte [eax + edi + 0x28], 0x48
je 0x4a52ac
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a5297
mov byte [esi], dl
jmp 0x4a52a8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48eef08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a52f5
cmp byte [ebp - 1], 0xa
jne 0x4a52bb
cmp esi, ebx
jne 0x4a52bb
mov byte [esi], 0xa
jmp 0x4a52f4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a4fab
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a52f5
mov byte [esi], 0xd
jmp 0x4a52f4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48eef08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a52f1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a52f5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a52fe
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 + 0x48eef08]
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 0x4a5341
cmp word [esi], dx
jne 0x4a5341
or byte [edi + eax + 0x28], 4
jmp 0x4a5346
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 0x4a547f
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 0x4a545f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a5388
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a53be
cmp eax, edx
jae 0x4a53ca
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 0x4a5360
jmp 0x4a547f
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 0x4a545b
cmp dword [ebp - 0x14], 0
je 0x4a545b
mov eax, dword [ebx*4 + 0x48eef08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a5433
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4a5479
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48eef08]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x48eef08]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48eef08]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4a547c
pop ebx
cmp word [ebp - 4], bx
jne 0x4a5444
cmp esi, dword [ebp + 0xc]
jne 0x4a5444
mov word [esi], bx
jmp 0x4a547c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004a4fab
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a547f
push 0xd
jmp 0x4a5478
mov ecx, dword [ebx*4 + 0x48eef08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5476
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a547f
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