joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abe70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x621340]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4abed1
push esi
push dword [0x62133c]
push 8
push dword [0x6201c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x621340]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x621338]
jmp 0x4abec1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4abebf
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4abeaf
push edi
push 0x4abe0e
call fcn.0056dec9
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4abedb
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x4abef1
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x62133c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4abf28
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x6201c4]
mov dword [0x621340], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x621340]
call ebx
mov eax, dword [0x62133c]
mov edi, eax
add eax, esi
push eax
push dword [0x621340]
mov dword [0x62133c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x6201c4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x621340]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x4abf68
test ebx, ebx
je 0x4abf89
push 0x14
push 0x621338
call fcn.004ac7ee
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x4abf89
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4ac930
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x61d960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4ac976
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x621bd8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4ac997
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x621bd8]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004ad050
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ac9c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x61d960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x4acac0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x61d960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4acbf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x61d960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4acc14
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x4acc64
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x621bd8]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x4accac
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x4accac
cmp dword [ebp - 8], 0x100000
jge 0x4acc80
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x621bd8]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x4accd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x61d960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4acfa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x61d960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x4acfde
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x4acfde
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x4acfe0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4ad020
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x61d960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4ad400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x61d960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x4bf980
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
jl 0x4bfa39
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x10]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
xor eax, edx
mov edx, eax
mov ecx, eax
shr edx, 0x10
and edx, 0xff
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x59b5b8]
xor edx, dword [ecx*4 + 0x59b1b8]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x59b9b8]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x59a1b8]
movzx ecx, byte [esi + 5]
xor edx, dword [ecx*4 + 0x59a5b8]
movzx ecx, byte [esi + 7]
xor edx, dword [ecx*4 + 0x599db8]
movzx ecx, byte [esi + 4]
add esi, 8
xor edx, dword [ecx*4 + 0x59a9b8]
xor edx, dword [eax*4 + 0x59adb8]
mov eax, edx
dec ebx
jne 0x4bf9a4
pop ebx
jmp 0x4bfa3d
mov eax, dword [esp + 0xc]
test edi, edi
je 0x4bfa5b
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x599db8]
dec edi
jne 0x4bfa41
pop edi
pop esi
ret
Function at 0x4cff80
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x20]
push 0
push edi
push eax
push ebp
push esi
call fcn.004d2970
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4cffdf
movzx ecx, word [ebp]
push ecx
push esi
call fcn.004cb7c0
add esp, 8
test eax, eax
je 0x4cffc0
mov eax, dword [eax + 0x1c]
jmp 0x4cffc5
mov eax, str.unknown_tagname
push 0
push eax
push str.TIFFFetchStripThing
push ebx
push esi
call fcn.004d3050
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [ebp + 0xc], 0
ja 0x4d00db
jb 0x4cfff4
cmp dword [ebp + 8], edi
jae 0x4d00db
movzx eax, word [ebp]
push eax
push esi
call fcn.004cb7c0
push str.LIBTIFF_STRILE_ARRAY_MAX_RESIZE_COUNT
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 0xc
mov ebx, 0xf4240
test eax, eax
je 0x4d0026
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d0033
mov ecx, dword [eax + 0x1c]
jmp 0x4d0038
mov ecx, str.unknown_tagname
push ecx
cmp edi, ebx
jbe 0x4d0054
push str.Incorrect_count_for___s_
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.004cb710
jmp 0x4d0069
push str.Incorrect_count_for___s___tag_ignored
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.004caf20
add esp, 0x10
cmp edi, ebx
jbe 0x4d0084
push dword [esp + 0x20]
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.for_strip_array
push 8
push edi
push esi
call fcn.004ccec0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4d0070
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x20]
shl eax, 3
push eax
push esi
push ebx
call fcn.004c1260
mov eax, dword [ebp + 8]
sub edi, eax
shl edi, 3
push edi
push 0
lea eax, [ebx + eax*8]
push eax
call fcn.004c1270
push esi
call sub.MSVCRT.dll_free
mov eax, dword [esp + 0x40]
add esp, 0x1c
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], ebx
mov eax, 1
pop ebp
pop ebx
pop ecx
ret

Function at 0x4da290
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x290]
mov dword [eax], 0x4da0a0
push str.LIBTIFF_JPEG_MAX_ALLOWED_SCAN_NUMBER
mov dword [esi + 8], eax
mov dword [esi + 0x340], 0x64
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x4da2d2
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0x340], eax
lea eax, [esi + 0x250]
push 0
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 8
test eax, eax
je 0x4da2ec
xor eax, eax
pop esi
pop ebp
ret
push dword [ebp + 8]
call fcn.0053c010
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x512d90
Capabilities:
Query environment variable

Disassembly:
push edi
push str.OPJ_NUM_THREADS
call sub.MSVCRT.dll_getenv
mov edi, eax
add esp, 4
test edi, edi
je 0x512e10
call fcn.005226b0
test eax, eax
je 0x512e10
push esi
call fcn.005226a0
mov esi, eax
mov ecx, str.ALL_CPUS
mov edx, edi
push ebx
lea ecx, [ecx]
mov bl, byte [edx]
cmp bl, byte [ecx]
jne 0x512de0
test bl, bl
je 0x512ddc
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x512de0
add edx, 2
add ecx, 2
test al, al
jne 0x512dc0
xor eax, eax
jmp 0x512de5
sbb eax, eax
or eax, 1
pop ebx
test eax, eax
je 0x512e0b
test esi, esi
jne 0x512df3
mov esi, 0x20
push edi
call sub.MSVCRT.dll_atoi
add esp, 4
test eax, eax
jns 0x512e05
xor eax, eax
pop esi
pop edi
ret
add esi, esi
cmp eax, esi
jle 0x512e02
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x538280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ecx, 6
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebp, 1
shl ebp, cl
xor ecx, ecx
mov dword [eax], 0
mov dword [esp + 0x14], ebp
test dword [edi + 0x80], 0xfffffffc
mov dword [esp + 0x10], ecx
jbe 0x5383f8
lea ecx, [ecx]
mov eax, dword [edi + 0x7c]
xor ebx, ebx
test eax, eax
je 0x5383e0
shr ecx, 2
mov dword [esp + 0x1c], ecx
lea edx, [ecx + 1]
mov dword [esp + 0x20], edx
jmp 0x5382e0
lea ecx, [eax + 2]
mov eax, dword [edi + 0x78]
imul ecx, edx
xor edx, edx
add ecx, ebx
cmp dword [eax + ecx*4 + 4], edx
sete dl
xor esi, esi
mov dword [esp + 0x18], edx
test edx, edx
je 0x53837c
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x74]
mov edi, dword [esp + 0x14]
lea ebp, [eax*4]
imul eax, dword [esp + 0x10]
add eax, ebx
lea ecx, [ecx + eax*4]
lea esp, [esp]
mov eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
test edi, eax
jne 0x538333
inc esi
add ecx, ebp
cmp esi, 4
jb 0x538320
mov edi, dword [esp + 0x28]
lea eax, [edi + 0x60]
mov dword [edi + 0x68], eax
xor eax, eax
cmp esi, 4
setne al
push eax
push edi
call fcn.0053b030
add esp, 8
cmp esi, 4
je 0x5383c8
lea eax, [edi + 0x64]
mov dword [edi + 0x68], eax
mov eax, esi
shr eax, 1
push eax
push edi
call fcn.0053b030
mov eax, esi
and eax, 1
push eax
push edi
call fcn.0053b030
mov edx, dword [esp + 0x28]
add esp, 0x10
mov ebp, dword [esp + 0x14]
push dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x74]
add ecx, esi
imul ecx, dword [edi + 0x8c]
push 4
push esi
push edx
push dword [esp + 0x40]
add ecx, ebx
push ebp
push dword [esp + 0x44]
lea eax, [eax + ecx*4]
mov ecx, dword [edi + 0x7c]
push eax
mov eax, dword [esp + 0x3c]
add ecx, 2
inc eax
imul ecx, eax
mov eax, dword [edi + 0x78]
add ecx, ebx
lea eax, [eax + ecx*4]
add eax, 4
push eax
push edi
call fcn.00538480
add esp, 0x28
jmp 0x5383cc
mov ebp, dword [esp + 0x14]
mov eax, dword [edi + 0x7c]
inc ebx
mov edx, dword [esp + 0x20]
cmp ebx, eax
jb 0x5382e0
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x80]
add ecx, 4
and eax, 0xfffffffc
mov dword [esp + 0x10], ecx
cmp ecx, eax
jb 0x5382c0
cmp ecx, dword [edi + 0x80]
jae 0x538473
mov edx, dword [edi + 0x7c]
xor esi, esi
test edx, edx
je 0x538473
mov eax, ecx
shr eax, 2
lea ebx, [eax*4 + 4]
jmp 0x538420
push dword [esp + 0x34]
mov eax, dword [edi + 0x80]
sub eax, ecx
mov ecx, dword [edi + 0x8c]
imul ecx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x74]
push 0
push 0
push dword [esp + 0x40]
add ecx, esi
push ebp
push dword [esp + 0x44]
lea eax, [eax + ecx*4]
push eax
lea eax, [edx + 2]
imul eax, ebx
lea eax, [eax + esi*4]
add eax, 4
add eax, dword [edi + 0x78]
push eax
push edi
call fcn.00538480
mov edx, dword [edi + 0x7c]
inc esi
mov ecx, dword [esp + 0x38]
add esp, 0x28
cmp esi, edx
jb 0x538420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x53c010
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x53c03f
push esi
call fcn.0053c1f0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x53c038
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x53c0c2
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x53c0ad
mov eax, dword [esi + 8]
test eax, eax
je 0x53c065
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x53c0a8
cmp eax, 2
je 0x53c0ad
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x53c056
cmp eax, 3
je 0x53c08d
cmp eax, 1
jne 0x53c056
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x53c056
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x53c056
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0053c0f0
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x53c0e4
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.0053c0f0
add esp, 4
pop edi
pop esi
ret

Function at 0x53c0f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x53c11c
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x53c1a2
lea ebx, [esi + 0x78]
jmp 0x53c130
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x53c176
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x53c155
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x53c1b8
cmp eax, dword [esi + 0x60]
jb 0x53c137
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x53c130
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x540970
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.0054c340
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.0054c310
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5409b7
push edi
call fcn.0054c350
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.00540600
mov dword [esi + 4], fcn.00540490
mov dword [esi + 8], fcn.00540560
mov dword [esi + 0xc], fcn.005403e0
mov dword [esi + 0x10], 0x540cd0
mov dword [esi + 0x14], 0x540c60
mov dword [esi + 0x18], 0x540ac0
mov dword [esi + 0x1c], 0x540290
mov dword [esi + 0x20], 0x540140
mov dword [esi + 0x24], 0x540870
mov dword [esi + 0x28], 0x540d40
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x540a9a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x540a9a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x540a89
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x540a91
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x541ed0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x541ef5
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x541efb
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x542010
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x541f4d
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x541fa6
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x541f90
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x541f70
mov esi, dword [esp + 0x14]
test esi, esi
je 0x541ff1
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x541fd0
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x541fd0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x541f30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x56c330
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 0x48]
mov eax, dword [edi + 0x18]
cmp eax, 0xc
jle 0x56c34d
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
push ebp
push esi
cmp dword [edi + 0x2c], eax
jge 0x56c411
lea esi, [edi + 0x44]
jmp 0x56c360
mov dl, byte [esi]
test dl, dl
jne 0x56c3e5
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x56c37b
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x56c38c
push dword [ecx + 0x38]
push 1
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x56c46c
mov al, byte [esi]
test al, al
je 0x56c45e
mov edx, dword [ebx + 0x48]
lea ebp, [esi + 1]
movzx eax, al
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x56c3b9
push eax
push ebp
push ebx
call ecx
add esp, 0xc
jmp 0x56c3c9
push dword [edx + 0x38]
push eax
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov cl, byte [esi]
mov edx, eax
movzx eax, cl
cmp edx, eax
jne 0x56c46c
mov al, byte [ebp]
dec cl
mov byte [ebp], 2
mov byte [esi], cl
jmp 0x56c3f7
mov cl, byte [esi + 1]
movzx eax, cl
inc cl
dec dl
mov al, byte [eax + esi]
mov byte [esi + 1], cl
mov byte [esi], dl
mov ecx, dword [edi + 0x2c]
movzx eax, al
shl eax, cl
or dword [edi + 0x30], eax
lea eax, [ecx + 8]
mov dword [edi + 0x2c], eax
cmp eax, dword [edi + 0x18]
jl 0x56c360
mov eax, dword [edi + 0x18]
movzx ecx, word [eax*2 + 0x5cc600]
mov eax, dword [esp + 0x18]
and ecx, dword [edi + 0x30]
mov dword [eax], ecx
mov ecx, dword [edi + 0x18]
shr dword [edi + 0x30], cl
sub dword [edi + 0x2c], ecx
mov eax, dword [edi + 0x14]
cmp eax, 0x1001
jge 0x56c454
mov edx, dword [edi + 0x1c]
inc eax
mov dword [edi + 0x14], eax
cmp eax, edx
jle 0x56c454
cmp ecx, 0xc
jge 0x56c454
lea eax, [edx + edx]
mov dword [edi + 0x1c], eax
lea eax, [ecx + 1]
mov dword [edi + 0x18], eax
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret
pop esi
pop ebp
pop edi
mov dword [ebx + 0x40], 0x70
xor eax, eax
pop ebx
ret
pop esi
pop ebp
pop edi
mov dword [ebx + 0x40], 0x66
xor eax, eax
pop ebx
ret