joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462230
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
push 0x4e7cda
push dword [eax]
call fcn.004afc5b
add esp, 8
test eax, eax
je 0x4622a6
mov esi, eax
mov ebp, dword [esp + 0x14]
mov dword [ebp + 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4622bd
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
add eax, dword [ebp]
push esi
push ecx
push 1
push eax
call fcn.004afdf3
add esp, 0x10
mov edi, eax
push esi
call fcn.004af6a5
add esp, 4
test eax, eax
jne 0x4622ad
mov eax, dword [ebp + 4]
test edi, edi
je 0x4622b4
add eax, edi
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x462270
jmp 0x4622b7
mov ebx, 2
jmp 0x4622f7
mov ebx, 2
jmp 0x4622ee
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ecx
jne 0x4622d1
push esi
call fcn.004afa3a
add esp, 4
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], edx
push esi
call fcn.004af550
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4660c0
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004392c0
add esp, 0xc
mov esi, eax
mov dword [eax], 0
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x1028], ebx
mov byte [esi + 0x16], 0
mov word [esi + 0x14], 0
mov eax, dword [esp + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x500060], 0xffffffff
jne 0x466173
mov dword [0x5033d8], 0x5033d8
mov dword [0x5033dc], 0x5033d8
push 0x5033e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x500060], eax
push 0
push 0x466860
push eax
call fcn.00425d90
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x4661b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x466193
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x17], 1
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049e340
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4663a0
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004392c0
add esp, 0xc
mov esi, eax
mov dword [eax], 1
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], ebx
lea eax, [esi + 0x30]
push eax
call fcn.0043ea40
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], esi
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x500060], 0xffffffff
jne 0x466463
mov dword [0x5033d8], 0x5033d8
mov dword [0x5033dc], 0x5033d8
push 0x5033e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x500060], eax
push 0
push 0x466860
push eax
call fcn.00425d90
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x4664a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x466483
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049e340
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x467050
Capabilities:
Get session user name

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 4], eax
cmp byte [0x5033fc], 0
je 0x467078
mov ecx, dword [0x5033f8]
test ecx, ecx
jne 0x4670bb
jmp 0x467108
push str.secur32.dll
call fcn.0043baa0
add esp, 4
mov esi, eax
push str.sspicli.dll
call fcn.0043baa0
add esp, 4
test esi, esi
je 0x4670a8
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x4670aa
xor ecx, ecx
mov dword [0x5033f8], ecx
mov byte [0x5033fc], 1
test ecx, ecx
je 0x467108
mov dword [esp], 0
mov edi, esp
push edi
push 0
push 8
call ecx
push 0
push 1
push dword [esp + 8]
call fcn.004392c0
add esp, 0xc
mov esi, eax
push edi
push eax
push 8
call dword [0x5033f8]
test al, al
je 0x4670ff
push 0x40
push esi
call fcn.004a1200
add esp, 8
test eax, eax
je 0x467155
mov byte [eax], 0
jmp 0x467155
push esi
call fcn.00439350
add esp, 4
mov dword [esp], 0
mov edi, esp
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x467123
mov eax, dword [esp]
jmp 0x46712f
mov dword [esp], 0x100
mov eax, 0x100
push 0
push 1
push eax
call fcn.004392c0
add esp, 0xc
mov esi, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x467155
push esi
call fcn.00439350
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049e340
mov eax, esi
add esp, 8
pop esi
pop edi
ret
Function at 0x467510
Capabilities:
Get common file path

Disassembly:
push esi
cmp dword [0x503400], 0
jne 0x467570
push dword [0x503404]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, dword [0x503404]
jb 0x467570
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 1
push eax
push 1
push 0x503404
push dword [0x503400]
call fcn.00439360
add esp, 0x18
mov dword [0x503400], eax
push dword [0x503404]
push eax
call esi
cmp eax, dword [0x503404]
jae 0x467540
mov eax, dword [0x503400]
pop esi
ret

Function at 0x4691b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
cmp eax, dword [esi]
je 0x4691dd
push 0xa6
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_crypto_mpint.c
push str.x0__nw__x1__nw
call fcn.004adb03
add esp, 0xc
and ebx, 1
neg ebx
mov dword [esp], ebx
cmp dword [edi], 0
je 0x469214
xor eax, eax
nop
nop
nop
nop
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esp]
and ecx, edx
mov edx, dword [edi + 4]
xor dword [edx + eax*4], ecx
mov edx, dword [esi + 4]
xor dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [edi]
jb 0x4691f0
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x47d0d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov dword [esp + 0xc], edx
mov ebp, dword [esp + 0xa8]
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 0x88], eax
push ecx
mov dword [esp + 0xc], ecx
call dword [ecx]
add esp, 4
mov esi, eax
test eax, eax
je 0x47d10c
mov eax, dword [esi]
push esi
call dword [eax + 4]
add esp, 4
mov dword [esp], esi
test ebp, ebp
jle 0x47d223
mov esi, dword [esp + 0xa4]
mov dword [esp + 4], 0
jmp 0x47d143
add dword [esp + 4], 1
add esi, edi
mov ebp, dword [esp + 0x10]
sub ebp, edi
jle 0x47d223
mov ebx, dword [esp + 8]
mov edi, dword [ebx + 0x14]
cmp ebp, edi
mov dword [esp + 0x10], ebp
cmovbe edi, ebp
mov ebp, dword [esp]
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
add esp, 4
cmp dword [ebx + 0x14], 0x73
jb 0x47d17d
push 0x3c0
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_crypto_rsa.c
push str.h__hlen___MAX_HASH_LEN
call fcn.004adb03
add esp, 0xc
push dword [esp + 0xa0]
push dword [esp + 0x10]
push dword [ebp + 4]
call fcn.00438a80
add esp, 0xc
push dword [esp + 4]
push dword [ebp + 4]
call fcn.00438bb0
add esp, 8
mov eax, dword [ebp]
lea ecx, [esp + 0x16]
push ecx
push ebp
call dword [eax + 0xc]
add esp, 8
test edi, edi
jle 0x47d130
lea edx, [edi - 1]
mov eax, edi
and eax, 3
xor ecx, ecx
cmp edx, 3
jb 0x47d1fa
mov edx, edi
and edx, 0xfffffffc
xor ecx, ecx
nop
movzx ebx, byte [esp + ecx + 0x16]
xor byte [esi + ecx], bl
movzx ebx, byte [esp + ecx + 0x17]
xor byte [esi + ecx + 1], bl
movzx ebx, byte [esp + ecx + 0x18]
xor byte [esi + ecx + 2], bl
movzx ebx, byte [esp + ecx + 0x19]
xor byte [esi + ecx + 3], bl
add ecx, 4
cmp edx, ecx
jne 0x47d1d0
test eax, eax
je 0x47d130
lea edx, [esi + ecx]
add ecx, esp
add ecx, 0x16
xor ebp, ebp
nop
nop
nop
nop
movzx ebx, byte [ecx + ebp]
xor byte [edx + ebp], bl
add ebp, 1
cmp eax, ebp
jne 0x47d210
jmp 0x47d130
mov ecx, dword [esp]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
add esp, 4
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0049e340
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x48d4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc08
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x500034]
xor ecx, ebp
mov dword [esp + 0xc00], ecx
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [eax + ecx*8]
mov ebx, dword [eax + ecx*8 + 4]
xor edi, dword [edx + ecx*8]
xor ebx, dword [edx + ecx*8 + 4]
mov dword [esp + ecx*8 + 0x804], ebx
mov dword [esp + ecx*8 + 0x800], edi
add ecx, 1
cmp ecx, 0x80
jne 0x48d510
lea eax, [esp + 0x800]
lea edi, [esp + 0x400]
mov ecx, edi
mov edx, 2
push 2
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x880]
lea ecx, [esp + 0x480]
mov edx, 2
push 2
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x900]
lea ecx, [esp + 0x500]
mov edx, 2
push 2
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x980]
lea ecx, [esp + 0x580]
mov edx, 2
push 2
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0xa00]
lea ecx, [esp + 0x600]
mov edx, 2
push 2
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0xa80]
lea ecx, [esp + 0x680]
mov edx, 2
push 2
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0xb00]
lea ecx, [esp + 0x700]
mov edx, 2
push 2
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0xb80]
lea ecx, [esp + 0x780]
mov edx, 2
push 2
push eax
call fcn.0048d770
add esp, 8
mov ebx, esp
mov ecx, ebx
mov edx, 0x10
push 0x10
push edi
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x410]
lea ecx, [esp + 0x10]
mov edx, 0x10
push 0x10
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x420]
lea ecx, [esp + 0x20]
mov edx, 0x10
push 0x10
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x430]
lea ecx, [esp + 0x30]
mov edx, 0x10
push 0x10
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x440]
lea ecx, [esp + 0x40]
mov edx, 0x10
push 0x10
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x450]
lea ecx, [esp + 0x50]
mov edx, 0x10
push 0x10
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x460]
lea ecx, [esp + 0x60]
mov edx, 0x10
push 0x10
push eax
call fcn.0048d770
add esp, 8
lea eax, [esp + 0x470]
lea ecx, [esp + 0x70]
mov edx, 0x10
push 0x10
push eax
call fcn.0048d770
add esp, 8
xor eax, eax
nop
nop
nop
nop
mov ecx, dword [esp + eax*8]
mov edx, dword [esp + eax*8 + 4]
xor edx, dword [esp + eax*8 + 0x804]
xor ecx, dword [esp + eax*8 + 0x800]
xor dword [esi + eax*8], ecx
xor dword [esi + eax*8 + 4], edx
add eax, 1
cmp eax, 0x80
jne 0x48d700
push 0x400
lea eax, [esp + 0x804]
push eax
call fcn.00465e70
add esp, 8
push 0x400
push edi
call fcn.00465e70
add esp, 8
push 0x400
push ebx
call fcn.00465e70
add esp, 8
mov ecx, dword [esp + 0xc00]
xor ecx, ebp
call fcn.0049e340
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x48f7b0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov esi, ecx
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 0xc], eax
lea ebp, [ecx + 0x10]
jmp 0x48f811
mov dword [esp], 0xc
mov eax, dword [esi]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov eax, esp
push eax
push 0
push 0x1000
push 0x1000
push 0xff
push 8
push 0x40000003
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x48f871
test bl, 1
jne 0x48f840
push ebp
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x48f842
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48f842
mov edi, eax
cmp eax, 0x217
je 0x48f842
jmp 0x48f8cb
xor ebx, ebx
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x28]
mov dword [esp], edi
mov ecx, dword [eax]
mov edx, dword [esp]
push edx
push 0x48f970
push eax
call dword [ecx + 0x10]
add esp, 0xc
test eax, eax
je 0x48f7d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48f7d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.0043cee0
add esp, 4
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.00438880
add esp, 8
mov ebx, eax
push dword [esi + 8]
call fcn.00435870
add esp, 4
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx]
push edi
push ebx
push 0
push eax
push 1
push ecx
call dword [edx]
add esp, 0x18
push ebx
call fcn.00439350
add esp, 4
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0049e340
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, 0x3e5
jne 0x48f879
jmp 0x48f8b8

Function at 0x491ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x20]
test edi, edi
je 0x491cca
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea esi, [edi - 1]
mov ebx, edi
and ebx, 3
cmp esi, 3
jae 0x491cd1
xor esi, esi
test ebx, ebx
jne 0x491d1e
jmp 0x491d33
mov eax, 1
jmp 0x491d3d
mov dword [esp], ebx
and edi, 0xfffffffc
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax]
xor bl, byte [ecx]
mov bh, byte [eax + 1]
movzx ebp, bl
xor bh, byte [ecx + 1]
or ebp, esi
mov bl, byte [eax + 2]
xor bl, byte [ecx + 2]
movzx esi, bh
movzx ebx, bl
or ebx, esi
or ebx, ebp
movzx edx, byte [eax + 3]
add eax, 4
xor dl, byte [ecx + 3]
add ecx, 4
movzx esi, dl
or esi, ebx
add edi, 0xfffffffc
jne 0x491ce0
mov ebx, dword [esp]
test ebx, ebx
je 0x491d33
xor edi, edi
movzx edx, byte [eax + edi]
xor dl, byte [ecx + edi]
movzx edx, dl
or esi, edx
add edi, 1
cmp ebx, edi
jne 0x491d20
mov eax, 0x100
sub eax, esi
shr eax, 8
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x49b000
Capabilities:
Hash data using sha512

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x10]
cmp ebx, 0x41
jb 0x49b020
push pe_nt_image_headers32
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_crypto_blake2.c
push str.hashlen___ssh_blake2b.hlen
call fcn.004adb03
add esp, 0xc
push 0
push 0xf0
push 1
call fcn.004392c0
add esp, 0xc
lea edx, [eax + 0xe4]
mov dword [eax + 0xe4], 0x4d8e68
mov dword [eax + 0x40], ebx
lea ecx, [eax + 0xd8]
mov dword [eax + 0xd8], 0x49b340
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], ecx
mov dword [eax + 0xe8], ecx
mov ecx, 0x10
mov edi, eax
mov esi, 0x4d8e98
rep movsd dword es:[edi], dword [esi]
xor ebx, 0xf2bdc908
mov dword [eax], ebx
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 0xc4], 0
mov dword [eax + 0xc8], 0
mov dword [eax + 0xcc], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0
mov eax, edx
pop esi
pop edi
pop ebx
ret
Function at 0x49ebc7
Capabilities:
Parse pe header

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

Function at 0x4b2920
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b294d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b294d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4b2d21
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4da968
push 0x4da960
push str.FlsAlloc
push 0x1e
call fcn.004b33b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b2d55
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4b2d5b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b2d9f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4da978
push 0x4da970
push str.FlsGetValue
push 0x20
call fcn.004b33b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b2dd6
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4ba221
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 0x4ba2be
push ebx
push esi
call fcn.004ba30f
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.004ba16a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ba26b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ba2bd
push edi
push eax
call fcn.004b5061
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4ba28b
call fcn.004b4716
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ba2bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004ba16a
add esp, 0x20
test eax, eax
jne 0x4ba2aa
push edi
call fcn.004b4716
jmp 0x4ba2b2
push ebx
call fcn.004b4716
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 0x4ba2c1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ba2d2
pop esi
ret
push ebx
push edi
push esi
call fcn.004ba30f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b5061
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ba2fa
push ebx
push esi
push edi
call fcn.004a0b20
add esp, 0xc
push 0
call fcn.004b4716
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4ba351
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ba5ba

Function at 0x4baac7
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004baad2
Function at 0x4bc3fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bc407
Function at 0x4bd418
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 + 0x503d40]
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 0x4bd458
cmp byte [ebx], 0xa
jne 0x4bd458
or byte [eax + edi + 0x28], 4
jmp 0x4bd45d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4bd55b
mov al, byte [edx]
cmp al, 0x1a
je 0x4bd53d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4bd48c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4bd4b1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4bd4bb
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 0x4bd46e
jmp 0x4bd55b
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 0x4bd538
cmp dword [ebp - 0xc], 0
je 0x4bd538
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x503d40]
test byte [eax + edi + 0x28], 0x48
je 0x4bd512
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4bd4fd
mov byte [esi], dl
jmp 0x4bd50e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x503d40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4bd55b
cmp byte [ebp - 1], 0xa
jne 0x4bd521
cmp esi, ebx
jne 0x4bd521
mov byte [esi], 0xa
jmp 0x4bd55a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c30c0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bd55b
mov byte [esi], 0xd
jmp 0x4bd55a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x503d40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bd557
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bd55b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bd564
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 + 0x503d40]
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 0x4bd5a7
cmp word [esi], dx
jne 0x4bd5a7
or byte [edi + eax + 0x28], 4
jmp 0x4bd5ac
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 0x4bd6ff
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 0x4bd6df
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4bd5ee
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bd624
cmp eax, edx
jae 0x4bd630
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 0x4bd5c6
jmp 0x4bd6ff
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 0x4bd6db
cmp dword [ebp - 0x14], 0
je 0x4bd6db
mov eax, dword [ebx*4 + 0x503d40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4bd6b3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4bd67c
mov word [esi], cx
jmp 0x4bd6af
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x503d40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x503d40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x503d40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4bd6ff
pop ebx
cmp word [ebp - 4], bx
jne 0x4bd6c4
cmp esi, dword [ebp + 0xc]
jne 0x4bd6c4
mov word [esi], bx
jmp 0x4bd6fc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c30c0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4bd6ff
push 0xd
jmp 0x4bd6f8
mov ecx, dword [ebx*4 + 0x503d40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bd6f6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bd6ff
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