joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4420f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x455664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x422a08
cmp byte [edi + 0x49], 0
je 0x422a08
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4229fc
lea esi, [ebp - 0x2c]
call fcn.004225f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x422973
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x42299c
dec eax
je 0x4229a0
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4229f7
jmp 0x422a03
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4229b0
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4229d9
cmp ebx, 0x10
jae 0x4229bf
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0043059b
add esp, 0x10
cmp esi, eax
jne 0x4229f4
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x422a00
test esi, esi
jne 0x422967
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004163d0
jmp 0x422961
lea ecx, [ebp - 0x2c]
call fcn.00409d60
xor al, al
jmp 0x422a0a
lea ecx, [ebp - 0x2c]
call fcn.00409d60
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042eb46
mov esp, ebp
pop ebp
ret
Function at 0x422b70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441cfb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x455664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x45060c
call fcn.0042e69c
push 4
mov dword [ebp - 4], 0
call fcn.0042f30e
mov edi, eax
add esp, 4
test edi, edi
je 0x422bec
call fcn.0042e574
mov dword [edi], eax
call fcn.0042e333
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042e65d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x422be2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042e685
jmp 0x422bee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42b720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [ebp - 4], 0
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x42b93e
lea ebx, [ebx]
cmp dword [esi + 0x6af90], 3
jb 0x42b7a7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x42b7e7
mov edx, dword [esi + 0x6af84]
sub edx, ecx
cmp edx, 0x7efa
ja 0x42b7e7
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x42b7d2
mov dword [esi + 0x6afa0], eax
mov eax, ecx
call fcn.0042b490
mov ebx, eax
mov eax, dword [esi + 0x6af90]
cmp ebx, eax
jbe 0x42b7e7
mov ebx, eax
mov eax, dword [esi + 0x6af84]
mov ecx, esi
cmp ebx, 3
jb 0x42b8cb
sub eax, dword [esi + 0x6af88]
lea edx, [ebx - 3]
call fcn.0042ad10
sub dword [esi + 0x6af90], ebx
mov ecx, dword [esi + 0x6af90]
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x42b894
cmp ecx, 3
jb 0x42b894
mov edi, 1
sub ebx, edi
lea esp, [esp]
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub ebx, edi
mov dword [esi + edx*4 + 0x2af70], ecx
mov edx, dword [esi + 0x6af84]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af7c]
mov dword [esi + ecx*4 + 0x4af70], edx
jne 0x42b830
add dword [esi + 0x6af84], edi
mov eax, dword [ebp - 8]
jmp 0x42b8e6
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x42b8e6
movzx edx, byte [eax + esi + 0x1af70]
xor eax, eax
call fcn.0042ad10
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x42b920
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x42b8fd
lea edx, [ecx + esi + 0x1af70]
jmp 0x42b8ff
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
xor edi, edi
mov ecx, esi
call fcn.0042ab70
mov ecx, dword [esi + 0x6af84]
add esp, 4
mov dword [esi + 0x6af74], ecx
cmp dword [esi + 0x6af90], 0x106
jae 0x42b931
call fcn.0042b5e0
cmp dword [esi + 0x6af90], 0
jne 0x42b750
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x42b951
lea edx, [ecx + esi + 0x1af70]
jmp 0x42b953
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
push edx
mov edi, 1
mov ecx, esi
call fcn.0042ab70
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c600
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x42c607
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x42c6dd
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.LDIB2AUJ]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.LDIB2AUJ]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.LDIB2AUJ]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.LDIB2AUJ]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.LDIB2AUJ]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.LDIB2AUJ]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.LDIB2AUJ]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + str.LDIB2AUJ]
add ecx, 8
sub edx, 8
dec esi
jne 0x42c620
pop edi
test edx, edx
je 0x42c6fa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + str.LDIB2AUJ]
inc ecx
dec edx
jne 0x42c6e1
not eax
pop esi
ret

Function at 0x42c700
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + str.LDIB2AUJ]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + str.LDIB2AUJ]
mov dword [edx + 8], ecx
ret
Function at 0x42cb80
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x42cc6b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x42cbb7
cmp dword [esi + 0x40], edi
jae 0x42cbb7
push eax
call fcn.0042eb3b
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x42cbcf
lea eax, [edi + edi]
push eax
call fcn.0042f30e
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00430c10
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x42cc68
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + str.LDIB2AUJ]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + str.LDIB2AUJ]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x42cbe7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x42ccaa
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42cc8f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00430c10
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42cccc
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [0x458420]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10008ec9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10008ed8
pop dword [ebp - 0x1c]
mov eax, 0x21d78d1
add eax, 0xde31607
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x5520af94
add dword [ebp - 0x2c], 0xf93195b7
mov dword [ebp - 0x28], 0x13772a91
add dword [ebp - 0x28], 0x1ebc21b4
mov dword [ebp - 0x24], 0x2690d4c0
add dword [ebp - 0x24], 0x25bb6f6e
mov dword [ebp - 0x20], 0x3a6fc66a
sub dword [ebp - 0x20], 0x3a6fc66a
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xbb1d0e27
add dword [ebp - 0x2c], 0xb9555b2f
mov dword [ebp - 0x28], 0xe018a639
sub dword [ebp - 0x28], 0x9eac44c4
mov dword [ebp - 0x24], 0x9b9963fd
add dword [ebp - 0x24], 0xc7d6086f
mov dword [ebp - 0x20], 0x6acac915
sub dword [ebp - 0x20], 0x6acac915
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xaea4d71
sub eax, 0xfae98d45
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x396ec
push 0
call eax
mov ecx, 0xa2a7a176
add ecx, 0x5d58ac57
mov edi, eax
mov esi, 0xf2fe6310
add esi, 0x1d0610f0
add esi, dword [ebp - 0x1c]
mov ebx, 0x94982881
add ebx, 0xbc0a2d13
xor dword [ebp - 0x18], eax
mov edx, dword [esi]
add dword [ebp - 8], edx
sub edx, ebx
sub dword [ebp - 8], ebx
mov dword [edi], edx
xor dword [ebp - 0x14], 0x80d58609
add edi, 4
add esi, 0x4aa9873a
sub esi, 0x4aa98736
loop 0x10008ff5
add eax, 0x12a07
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10021870
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1002187f
pop dword [ebp - 8]
mov eax, 0x9074a21d
sub eax, 0x8072899e
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x94c20634
sub dword [ebp - 0x18], 0x466fc0e9
mov dword [ebp - 0x14], 0xe4687ff9
add dword [ebp - 0x14], 0x4dcacc4c
mov dword [ebp - 0x10], 0xe770d8ba
sub dword [ebp - 0x10], 0x9b24948c
mov dword [ebp - 0xc], 0x75946c87
add dword [ebp - 0xc], 0x8a6b9379
lea eax, [ebp - 0x18]
push eax
mov eax, 0x19d78adf
sub eax, 0x9d38aa3
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x4a452d72
add dword [ebp - 0x18], 0x2a2d3be4
mov dword [ebp - 0x14], 0xd9d1d767
add dword [ebp - 0x14], 0x679a8a0e
mov dword [ebp - 0x10], 0x845f4f93
sub dword [ebp - 0x10], 0x20efe327
mov dword [ebp - 0xc], 0x327c6b35
sub dword [ebp - 0xc], 0x327c6b35
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xe91e3e5e
add eax, 0x26e5c1d2
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x4407c
push 0
call eax
mov ecx, 0x3bc3e26e
add ecx, 0xc43c5c5c
xor esi, esi
add esi, eax
mov edx, 0x678a59dd
add edx, 0xa87b1423
add edx, dword [ebp - 8]
mov ebx, 0x5f43fbd2
add ebx, 0xd41cd94e
mov dword [ebp - 4], 0xda2a9f6f
mov edi, dword [edx]
mov dword [ebp - 4], 0xc0f43396
xor edi, ebx
sub dword [ebp - 4], eax
mov dword [esi], edi
add esi, 0x9b60e190
add esi, 0x649f1e74
add edx, 0x858d3f3e
sub edx, 0x858d3f3a
loop 0x100219a3
add eax, 0xe9c3c325
sub eax, 0xe9c2d52a
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x10031820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004f37c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10031850
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10031880
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10031880
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1003197a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100318a9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100318dd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1003197a
cmp eax, 1
jle 0x1003193b
cmp eax, 3
jne 0x1003197a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10021870
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10031959
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1003197a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1003197a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10038620
mov esp, ebp
pop ebp
ret 4
Function at 0x10036f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ecf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004f37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004f338]
cmp eax, 0xffffffff
jne 0x10036fb6
xor ebx, ebx
jmp 0x10036fbf
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10036fff
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003703e
test esi, esi
jne 0x10037042
push 0x10035760
push 0x10050e58
call fcn.10021870
mov eax, dword [0x1004f338]
add esp, 8
cmp eax, 0xffffffff
je 0x10036fff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003702c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003702c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10037084
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003706d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10037042
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036fd0
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100370a9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100370a9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10021870
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x10037090
jmp 0x10036fd0

Function at 0x100370d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x10037130
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x100370fa
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x10037118
cmp eax, 0xffffffff
je 0x10037118
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edx - 0x37f274f8]
rol byte [eax], 0x50
add ecx, 0x40
push 0x3f409674
push ecx
invalid

Function at 0x40a720
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6508dc]
xor dword [ebp - 0x7af0c140], eax
jmp 0x689ba734

Function at 0x40add0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
push edx
call fcn.0040add0
add esp, 0x5d
pop ebp
ret
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp eax, 0x10
jae 0x40adee
out dx, eax
adc eax, sym.imp.MSVCRT.dll__errno
mov dword [eax], 0x1c
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
jns 0x40adb4
add al, 0
add byte [eax], bl
jo 0x40ae01
inc esi
cmp al, 0x63
cld
inc ebp
aas
jbe 0x40ae1d
mov eax, dword [ebp + 0x10]
mov ebx, 0x64
and eax, 0xff
cdq
lahf
sti
add al, 0x30
push es
push ebp
adc byte [eax + 0x4a14133], cl
cmp al, 9
jbe 0x40ae38
out 0x45, eax
adc byte [edx + ecx], bl
add byte [eax], al
push es
and eax, 0xc200fb
push ebx
idiv ebx
jge 0x40ae63
mov dh, bh
inc ecx
rol edx, cl
add al, 0x30
mov byte [ecx], al
inc ecx
test dword [ecx], 0x753c4140
mov ch, 0x8b
inc ebp
or al, 0x5f
cmp byte [eax], al
add byte [esi - 0x3f70bea1], ch
Function at 0x402db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468709
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x481b08]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push esi
mov byte [edi], 0
call fcn.00401840
lea ecx, [edi + 0x18]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x18]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.00401840
lea ecx, [edi + 0x30]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x30]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x24], 1
mov byte [ecx], 0
call fcn.00401840
lea ecx, [edi + 0x48]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x48]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x24], 2
mov byte [ecx], 0
call fcn.00401840
lea ecx, [edi + 0x60]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x60]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x24], 3
mov byte [ecx], 0
call fcn.00401840
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x402eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468759
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x481b08]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x46b630
mov byte [esi], 0
call fcn.00401950
lea ecx, [esi + 0x18]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x46b630
mov dword [esp + 0x1c], 0
mov byte [ecx], 0
call fcn.00401950
lea ecx, [esi + 0x30]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x46b630
mov byte [esp + 0x1c], 1
mov byte [ecx], 0
call fcn.00401950
lea ecx, [esi + 0x48]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x46b630
mov byte [esp + 0x1c], 2
mov byte [ecx], 0
call fcn.00401950
lea ecx, [esi + 0x60]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x46b630
mov byte [esp + 0x1c], 3
mov byte [ecx], 0
call fcn.00401950
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x402fa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4687ca
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x481b08]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
call fcn.00448564
mov dword [esp + 0x20], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [esp + 0x28]
mov byte [esp + 0x20], 6
test eax, eax
jne 0x403049
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], str.bad_locale_name
call fcn.0044acda
push 0x47dc30
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], vtable.std::runtime_error.0
call fcn.00449833
push eax
push esi
call fcn.00448b34
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 4