joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439125
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x439155
cmp esi, 2
je 0x439155
cmp esi, 4
je 0x439155
cmp esi, 8
je 0x439155
cmp esi, 0x18
je 0x439155
cmp esi, 0x20
je 0x439155
xor eax, eax
jmp 0x43931f
mov ecx, dword [0x7b8f38]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x43931b
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x7b96c0]
cmp dword [eax], edx
je 0x439188
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x43916f
jmp 0x43931b
cmp dword [esp + 0x38], 0x20
jne 0x4392f2
mov eax, dword [eax + 8]
test eax, eax
je 0x4391c8
cmp esi, 0x20
je 0x4391a4
cmp esi, 0xffffffff
jne 0x4391c8
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x439319
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x7b62a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43931b
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x4392bd
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x43929d
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
dec edi
jne 0x43922e
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x43921b
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x7b96c0]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x7b62a8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x43931b
cmp dword [esp + 0x38], 0x18
jne 0x43931b
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x43c4ce
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x7b8f7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x43c52f
push esi
push dword [0x7b8f78]
push 8
push dword [0x7b62a8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x7b8f7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x7b8f74]
jmp 0x43c51f
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x43c51d
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x43c50d
push edi
push 0x43c46c
call fcn.00509ea4
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x43c539
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 0x43c54f
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x7b8f78]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43c586
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x7b62a8]
mov dword [0x7b8f7c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x7b8f7c]
call ebx
mov eax, dword [0x7b8f78]
mov edi, eax
add eax, esi
push eax
push dword [0x7b8f7c]
mov dword [0x7b8f78], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x7b62a8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x7b8f7c]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x43c5c6
test ebx, ebx
je 0x43c5e7
push 0x14
push 0x7b8f74
call fcn.0043ce52
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x43c5e7
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 0x43cf60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7b3768]
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 0x43cfa6
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x7b9744]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x43cfc7
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 [0x7b9744]
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.0043d590
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x43d050
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7b3768]
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 0x43d150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7b3768]
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 0x43d280
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7b3768]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x43d2a4
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 0x43d2f4
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 [0x7b9744]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x43d33c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x43d33c
cmp dword [ebp - 8], 0x100000
jge 0x43d310
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 [0x7b9744]
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 0x43d390
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7b3768]
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 0x43d510
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x7b3768]
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 0x43d54e
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 0x43d54e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x43d550
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x43d6c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x7b3768]
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 0x44fc40
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
jl 0x44fcf9
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 + 0x524618]
xor edx, dword [ecx*4 + 0x524218]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x524a18]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x523218]
movzx ecx, byte [esi + 5]
xor edx, dword [ecx*4 + 0x523618]
movzx ecx, byte [esi + 7]
xor edx, dword [ecx*4 + 0x522e18]
movzx ecx, byte [esi + 4]
add esi, 8
xor edx, dword [ecx*4 + 0x523a18]
xor edx, dword [eax*4 + 0x523e18]
mov eax, edx
dec ebx
jne 0x44fc64
pop ebx
jmp 0x44fcfd
mov eax, dword [esp + 0xc]
test edi, edi
je 0x44fd1b
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 + 0x522e18]
dec edi
jne 0x44fd01
pop edi
pop esi
ret
Function at 0x4553a9
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00455eac
cmp dword [esi + 0x14], 0
pop ecx
je 0x455410
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
push ebx
mov ebx, dword [esi + 0x20]
push ebp
mov ebp, dword [eax + ecx*4]
cmp ebx, dword [esi + 0x14]
jae 0x45540e
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], eax
push 0x18
pop ecx
sub ecx, ebx
shr eax, 8
mov edx, ebp
add ebx, 8
shr edx, cl
and edx, 0xff
xor edx, eax
mov eax, dword [esp + 0x10]
movzx eax, al
shl eax, 8
movzx ecx, word [edx*2 + 0x5261a0]
xor eax, ecx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x10], eax
mov dword [esi + 0x18], eax
cmp ebx, dword [esi + 0x14]
jb 0x4553d4
pop ebp
pop ebx
mov ax, word [esi + 0x18]
pop esi
ret

Function at 0x459502
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 2
jb 0x45959a
push ebp
mov ebp, edi
shr ebp, 1
mov eax, dword [esi]
sub edi, 2
mov edx, dword [esi + 4]
shr eax, 0x10
xor ecx, eax
movzx ebx, cx
mov ecx, edx
shr ecx, 0x18
mov eax, ebx
shr eax, 8
mov cx, word [ecx*2 + 0x5267a0]
xor cx, word [eax*2 + 0x526fa0]
movzx eax, byte [esi + 5]
xor cx, word [eax*2 + 0x5263a0]
movzx eax, byte [esi + 6]
xor cx, word [eax*2 + 0x5265a0]
movzx eax, byte [esi + 1]
xor cx, word [eax*2 + 0x526ba0]
movzx eax, dl
xor cx, word [eax*2 + 0x5261a0]
movzx eax, bl
xor cx, word [eax*2 + 0x526da0]
mov eax, dword [esi]
add esi, 8
movzx eax, al
xor cx, word [eax*2 + 0x5269a0]
movzx ecx, cx
dec ebp
jne 0x45951f
pop ebp
test edi, edi
je 0x4595dc
mov ebx, dword [esi]
mov eax, ebx
shr eax, 0x10
xor ecx, eax
movzx eax, byte [esi + 1]
movzx edx, cx
mov ecx, edx
shr ecx, 8
mov cx, word [ecx*2 + 0x5267a0]
xor cx, word [eax*2 + 0x5263a0]
movzx eax, bl
xor cx, word [eax*2 + 0x5261a0]
movzx eax, dl
xor cx, word [eax*2 + 0x5265a0]
movzx ecx, cx
pop edi
pop esi
mov ax, cx
pop ebx
ret

Function at 0x4595e3
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor al, al
test edx, edx
je 0x459605
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
movzx eax, al
xor ecx, eax
inc esi
mov al, byte [ecx + 0x5271a0]
dec edx
jne 0x4595f2
pop esi
ret
Function at 0x4686e0
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.0046b0d0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x46873f
movzx ecx, word [ebp]
push ecx
push esi
call fcn.00463f20
add esp, 8
test eax, eax
je 0x468720
mov eax, dword [eax + 0x1c]
jmp 0x468725
mov eax, str.unknown_tagname
push 0
push eax
push str.TIFFFetchStripThing
push ebx
push esi
call fcn.0046b7b0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [ebp + 0xc], 0
ja 0x46883b
jb 0x468754
cmp dword [ebp + 8], edi
jae 0x46883b
movzx eax, word [ebp]
push eax
push esi
call fcn.00463f20
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 0x468786
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x468793
mov ecx, dword [eax + 0x1c]
jmp 0x468798
mov ecx, str.unknown_tagname
push ecx
cmp edi, ebx
jbe 0x4687b4
push str.Incorrect_count_for___s_
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.00463e70
jmp 0x4687c9
push str.Incorrect_count_for___s___tag_ignored
push str.TIFFFetchStripThing
push dword [esi + 0x304]
call fcn.00463680
add esp, 0x10
cmp edi, ebx
jbe 0x4687e4
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.00465620
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4687d0
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x20]
shl eax, 3
push eax
push esi
push ebx
call fcn.004599c0
mov eax, dword [ebp + 8]
sub edi, eax
shl edi, 3
push edi
push 0
lea eax, [ebx + eax*8]
push eax
call fcn.004599d0
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 0x4729f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x290]
mov dword [eax], 0x472800
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 0x472a32
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 0x472a4c
xor eax, eax
pop esi
pop ebp
ret
push dword [ebp + 8]
call fcn.004d7e60
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x495140
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x495160
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x495160
mov eax, dword [eax + 0x44]
test eax, eax
je 0x495160
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4aebe0
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 0x4aec60
call fcn.004be500
test eax, eax
je 0x4aec60
push esi
call fcn.004be4f0
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 0x4aec30
test bl, bl
je 0x4aec2c
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x4aec30
add edx, 2
add ecx, 2
test al, al
jne 0x4aec10
xor eax, eax
jmp 0x4aec35
sbb eax, eax
or eax, 1
pop ebx
test eax, eax
je 0x4aec5b
test esi, esi
jne 0x4aec43
mov esi, 0x20
push edi
call sub.MSVCRT.dll_atoi
add esp, 4
test eax, eax
jns 0x4aec55
xor eax, eax
pop esi
pop edi
ret
add esi, esi
cmp eax, esi
jle 0x4aec52
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x4d40d0
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 0x4d4248
lea ecx, [ecx]
mov eax, dword [edi + 0x7c]
xor ebx, ebx
test eax, eax
je 0x4d4230
shr ecx, 2
mov dword [esp + 0x1c], ecx
lea edx, [ecx + 1]
mov dword [esp + 0x20], edx
jmp 0x4d4130
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 0x4d41cc
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 0x4d4183
inc esi
add ecx, ebp
cmp esi, 4
jb 0x4d4170
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.004d6e80
add esp, 8
cmp esi, 4
je 0x4d4218
lea eax, [edi + 0x64]
mov dword [edi + 0x68], eax
mov eax, esi
shr eax, 1
push eax
push edi
call fcn.004d6e80
mov eax, esi
and eax, 1
push eax
push edi
call fcn.004d6e80
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.004d42d0
add esp, 0x28
jmp 0x4d421c
mov ebp, dword [esp + 0x14]
mov eax, dword [edi + 0x7c]
inc ebx
mov edx, dword [esp + 0x20]
cmp ebx, eax
jb 0x4d4130
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 0x4d4110
cmp ecx, dword [edi + 0x80]
jae 0x4d42c3
mov edx, dword [edi + 0x7c]
xor esi, esi
test edx, edx
je 0x4d42c3
mov eax, ecx
shr eax, 2
lea ebx, [eax*4 + 4]
jmp 0x4d4270
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.004d42d0
mov edx, dword [edi + 0x7c]
inc esi
mov ecx, dword [esp + 0x38]
add esp, 0x28
cmp esi, edx
jb 0x4d4270
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4d7e60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4d7e8f
push esi
call fcn.004d8040
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4d7e88
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 0x4d7f12
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x4d7efd
mov eax, dword [esi + 8]
test eax, eax
je 0x4d7eb5
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 0x4d7ef8
cmp eax, 2
je 0x4d7efd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d7ea6
cmp eax, 3
je 0x4d7edd
cmp eax, 1
jne 0x4d7ea6
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4d7ea6
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4d7ea6
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004d7f40
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x4d7f34
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.004d7f40
add esp, 4
pop edi
pop esi
ret

Function at 0x4d7f40
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x4d7f6c
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 0x4d7ff2
lea ebx, [esi + 0x78]
jmp 0x4d7f80
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x4d7fc6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d7fa5
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 0x4d8008
cmp eax, dword [esi + 0x60]
jb 0x4d7f87
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 0x4d7f80
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