joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409620
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3707
mov eax, dword fs:[0]
push eax
mov eax, 8
call fcn.00596bf0
push ebx
push esi
push edi
mov eax, dword [0x616930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x5acc4c
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.004028a0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.0040bc00
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x4096ba
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00402760
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.0040b750
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov edx, dword [0x61fd30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
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 0x40ade0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3298
mov eax, dword fs:[0]
push eax
mov eax, 0x24
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40af07
cmp byte [edi + 0x49], bl
je 0x40af07
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x40aefb
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40ae5b
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40ae73
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 0x40ae9c
dec eax
je 0x40aea0
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40aef6
jmp 0x40af02
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40aeb0
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40aed9
cmp ebx, 0x10
jae 0x40aebf
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0057d510
add esp, 0x10
cmp esi, eax
jne 0x40aef3
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40aeff
test esi, esi
jne 0x40ae67
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a7a0
jmp 0x40ae61
lea ecx, [ebp - 0x2c]
call fcn.00409020
xor al, al
jmp 0x40af09
lea ecx, [ebp - 0x2c]
call fcn.00409020
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.0057af8a
mov esp, ebp
pop ebp
ret
Function at 0x40b750
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a311b
mov eax, dword fs:[0]
push eax
mov eax, 8
call fcn.00596bf0
push ebx
push esi
push edi
mov eax, dword [0x616930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00599b20
push 4
mov dword [ebp - 4], 0
call fcn.0057da6b
mov edi, eax
add esp, 4
test edi, edi
je 0x40b7d7
call fcn.0059991b
mov dword [edi], eax
call fcn.005996da
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00599ae1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40b7cd
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00599b09
jmp 0x40b7d9
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

Function at 0x40f1d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x61f5b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x40f20b
mov ecx, dword [0x61f5b8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call fcn.0040e4b0
add esp, 4
pop edi
pop esi
ret
Function at 0x40f240
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 4
call fcn.00596bf0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push 0
push 0
push 0x40000
mov dword [esp + 0x18], eax
call fcn.00410dd0
add esp, 0xc
test eax, eax
je 0x40f2ee
push 0x40f210
mov esi, 0x61fae8
call fcn.0041e240
add esp, 4
neg eax
sbb eax, eax
test dword [0x61faf8], eax
je 0x40f2ee
call edi
mov edi, eax
mov eax, dword [0x61f5b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0xffffffff
je 0x40f2ee
test esi, esi
jne 0x40f320
mov ecx, dword [0x61f5b8]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0xffffffffffffffff
push ecx
call ebx
test eax, eax
je 0x40f2ee
mov ecx, 0x2de
mov edx, str.....cryptoerrerr.c
mov edi, 0x188
call fcn.00419700
mov esi, eax
push 0
test esi, esi
jne 0x40f2f7
mov edx, dword [0x61f5b8]
push edx
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
call fcn.00410b50
add esp, 8
test eax, eax
je 0x40f334
mov eax, dword [0x61f5b8]
push esi
push eax
call ebx
test eax, eax
je 0x40f334
push 0
push 0
push 2
call fcn.00410dd0
add esp, 0xc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040e4b0
mov ecx, dword [0x61f5b8]
add esp, 4
push 0
push ecx
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x61b884]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 8], 0
je 0x410819
test esi, esi
jne 0x410828
mov eax, dword [fcn.004196c0]
test eax, eax
je 0x4107a4
cmp eax, fcn.004196c0
je 0x4107a4
push 0x42
push str.....cryptoinit.c
push 0xc
call eax
add esp, 0xc
jmp 0x4107c1
cmp dword [0x61b870], 0
je 0x4107b7
mov dword [0x61b870], 0
push 0xc
call fcn.0057c0af
add esp, 4
mov esi, eax
test esi, esi
je 0x410828
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
test esi, esi
je 0x410828
mov ecx, dword [0x61b884]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x410828
mov eax, dword [fcn.00419900]
test eax, eax
je 0x41080a
cmp eax, fcn.00419900
je 0x41080a
push 0x44
push str.....cryptoinit.c
push esi
call eax
add esp, 0xc
pop edi
xor eax, eax
pop esi
pop ebp
ret
push esi
call fcn.0057bec0
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov edx, dword [0x61b884]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x410c40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x61fb18], ebx
je 0x410dca
cmp dword [0x61fb08], ebx
jne 0x410dca
push esi
push edi
mov dword [0x61fb08], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x61b884]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x61b884]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.00410b00
mov esi, dword [0x61fb0c]
cmp esi, ebx
je 0x410cd9
mov edx, dword [esi]
call edx
mov eax, dword [fcn.00419900]
mov ecx, esi
mov esi, dword [esi + 4]
cmp eax, ebx
je 0x410ccc
cmp eax, fcn.00419900
je 0x410ccc
push 0x20a
push str.....cryptoinit.c
push ecx
call eax
add esp, 0xc
jmp 0x410cd5
push ecx
call fcn.0057bec0
add esp, 4
cmp esi, ebx
jne 0x410ca1
mov eax, dword [0x61fb10]
mov dword [0x61fb0c], ebx
mov esi, eax
cmp eax, ebx
je 0x410d19
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [fcn.00419900]
cmp eax, ebx
je 0x410d10
cmp eax, fcn.00419900
je 0x410d10
push 0x40
push str.....crypto_threads_win.c
push esi
call eax
add esp, 0xc
jmp 0x410d19
push esi
call fcn.0057bec0
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x61fb10], ebx
cmp dword [0x61fb60], ebx
je 0x410d3e
mov eax, dword [0x61f6a8]
push eax
call edi
mov ecx, dword [0x61f6ac]
push ecx
call edi
cmp dword [0x61fb34], ebx
je 0x410d58
push 0x40e550
mov esi, 0x61faec
call fcn.0041e240
add esp, 4
mov eax, dword [0x61b884]
push eax
mov dword [0x61b884], 0xffffffff
call edi
call fcn.0040ff60
mov esi, dword [0x61f664]
cmp esi, ebx
je 0x410d95
call fcn.004221c0
mov edx, dword [0x61f65c]
push edx
mov dword [0x61f664], ebx
call edi
mov eax, dword [0x61f660]
push eax
call edi
call fcn.0042bb30
call fcn.0042b9c0
call fcn.0042d1a0
call fcn.0045f9c0
call fcn.00423980
call fcn.00415060
call fcn.0040cf50
call fcn.00418030
call fcn.0040e5e0
pop edi
mov dword [0x61fb18], ebx
pop esi
pop ebx
ret
Function at 0x415110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.00596bf0
push ebx
push esi
mov esi, ecx
push esi
push edi
call fcn.0043e710
push 0x62
push esi
mov ebx, eax
mov dword [ebp - 4], 1
call fcn.0057e7b0
add esp, 0x10
test eax, eax
jne 0x415147
mov dword [ebp - 4], 0x11
test ebx, ebx
jne 0x4151d2
push 0x45
push str.....crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0040e790
push 0x5ed50c
push esi
push 0x5ed510
push edi
push str.fopen_
push 5
call fcn.0040f430
add esp, 0x2c
call fcn.0057e8b0
cmp dword [eax], 2
je 0x4151b2
call fcn.0057e8b0
cmp dword [eax], 6
je 0x4151b2
push 0x4e
push str.....crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0040e790
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4c
push str.....crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0040e790
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5ecb88
call fcn.004143b0
add esp, 4
mov esi, eax
push ebx
test esi, esi
jne 0x4151f6
call fcn.0057d9f7
add esp, 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
push 0x6a
push esi
call fcn.00414cd0
add esp, 0x10
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4191b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xc
call fcn.00596bf0
cmp dword [0x61fba4], 0
push ebx
push esi
push edi
jne 0x4192ff
push 0x30
push 0x61f5e8
push str.OPENSSL_ia32cap
mov dword [0x61fba4], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x4192dc
xor eax, eax
cmp word [0x61f5e8], 0x7e
sete al
mov edi, eax
lea ecx, [edi*2 + 0x61f5e8]
call fcn.00419110
mov esi, eax
mov ebx, edx
test edi, edi
je 0x419248
push 0x61fd40
mov edi, esi
mov dword [esp + 0x18], ebx
call fcn.00527700
not esi
and esi, eax
not ebx
and edi, 0x1000000
xor eax, eax
add esp, 4
and ebx, edx
or edi, eax
je 0x419263
and ebx, 0xedfff7fd
jmp 0x419263
cmp word [0x61f5e8], 0x3a
jne 0x419263
push 0x61fd40
call fcn.00527700
add esp, 4
mov esi, eax
mov ebx, edx
mov dx, word [0x61f5e8]
xor edi, edi
mov eax, 0x61f5e8
movzx ecx, dx
cmp dx, di
je 0x419292
lea esp, [esp]
cmp cx, 0x3a
je 0x4192a0
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x419280
mov dword [0x61fd48], edi
mov dword [0x61fd4c], edi
jmp 0x4192ed
cmp eax, edi
je 0x419292
xor ecx, ecx
cmp word [eax + 2], 0x7e
sete cl
mov edi, ecx
lea ecx, [eax + edi*2 + 2]
call fcn.00419110
test edi, edi
je 0x4192cf
not eax
and dword [0x61fd48], eax
not edx
and dword [0x61fd4c], edx
jmp 0x4192ed
mov dword [0x61fd48], eax
mov dword [0x61fd4c], edx
jmp 0x4192ed
push 0x61fd40
call fcn.00527700
add esp, 4
mov esi, eax
mov ebx, edx
or esi, 0x400
mov dword [0x61fd40], esi
mov dword [0x61fd44], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419450
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4194c5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4194c5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.0057f918
add esp, 0x10
test eax, eax
jns 0x4194a8
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41960e
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4194d0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00599110
mov esi, esp
test esi, esi
jne 0x4194f4
mov esi, str.no_stack_
jmp 0x41957f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x419521
test edi, edi
je 0x419521
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x419510
xor eax, eax
test edi, edi
je 0x41957f
cmp word [esi + eax*2], 0x25
jne case.0x419544.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x419544.43
movzx edx, byte [edx + 0x419640]
jmp dword [edx*4 + 0x419628]
inc eax
add ecx, 2
jmp 0x419532
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x419544.43
mov edx, 0x73
jmp 0x419575
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x419544.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x419527
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.0057f84f
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4195f8
call fcn.00419310
test eax, eax
jle 0x4195f8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x41960e
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x41960e
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret

Function at 0x41cba0
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.0057e420
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
ret
Function at 0x41e090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
xor esi, esi
test edx, edx
je 0x41e0de
mov al, byte [edx]
test al, al
je 0x41e0de
push edi
mov edi, 0x100
lea esp, [esp]
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x41e0b0
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x422b40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp dword [0x61fb08], 0
push esi
push edi
je 0x422b71
push 0x270
push str.....cryptoinit.c
push 0x46
push 0x74
push 0xf
call fcn.0040e790
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push fcn.00410830
mov esi, 0x61fb14
call fcn.0041e240
add esp, 4
neg eax
sbb eax, eax
test dword [0x61fb1c], eax
je 0x422c47
push 0x410890
mov esi, 0x61fb20
call fcn.0041e240
add esp, 4
neg eax
sbb eax, eax
test dword [0x61fb24], eax
je 0x422c47
push 0x4108c0
mov esi, 0x61fb28
call fcn.0041e240
add esp, 4
neg eax
sbb eax, eax
test dword [0x61fb2c], eax
je 0x422c47
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call esi
mov dword [0x61f65c], eax
cmp eax, 0xffffffff
je 0x422c47
call esi
mov edi, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x61f660], eax
cmp eax, 0xffffffff
je 0x422c3e
mov eax, dword [0x61fbc8]
push eax
xor ecx, ecx
call fcn.00422070
mov esi, eax
add esp, 4
test esi, esi
je 0x422c2b
call fcn.00422a70
test eax, eax
jne 0x422c1f
call fcn.004221c0
xor esi, esi
jmp 0x422c2b
mov dword [esi + 0x58], 1
call fcn.004222a0
mov dword [0x61f664], esi
test esi, esi
jne 0x422c4f
mov ecx, dword [0x61f660]
push ecx
call edi
mov edx, dword [0x61f65c]
push edx
call edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x422ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x422b30
mov esi, 0x61fbc4
call fcn.0041e240
add esp, 4
neg eax
sbb eax, eax
test dword [0x61fbcc], eax
jne 0x422f0e
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x61f660]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x422f59
push esi
push 4
call fcn.00410b50
add esp, 8
test eax, eax
je 0x422f06
mov edi, dword [0x61f664]
call fcn.00422af0
mov ecx, dword [0x61f660]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422f70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0x422b30
mov esi, 0x61fbc4
call fcn.0041e240
add esp, 4
neg eax
sbb eax, eax
test dword [0x61fbcc], eax
jne 0x422f9e
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x61f65c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x422fe9
push esi
push 4
call fcn.00410b50
add esp, 8
test eax, eax
je 0x422f96
mov edi, dword [0x61f664]
call fcn.00422af0
mov ecx, dword [0x61f65c]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423000
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.00596bf0
push ebx
push esi
mov esi, ecx
push edi
mov edi, esi
xor ebx, ebx
call fcn.004103e0
mov edi, eax
push edi
call fcn.004104e0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x4230c1
push 0xf0000040
push 1
push ebx
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x423069
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x42305d
mov ebx, edi
mov eax, dword [ebp - 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
sub ecx, eax
cmp ebx, ecx
jbe 0x42308f
push 0x32f
push str.....crypto_rand_rand_lib.c
push 0x7d
push 0x72
push 0x24
call fcn.0040e790
add esp, 0x14
jmp 0x4230a2
test ebx, ebx
je 0x4230a2
add eax, ebx
lea edx, [ebx*8]
add dword [esi + 0x1c], edx
mov dword [esi + 4], eax
mov ebx, dword [esi + 0x1c]
cmp ebx, dword [esi + 0x20]
jb 0x4230bf
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x10]
jb 0x4230bf
test ebx, ebx
je 0x4230c1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, esi
call fcn.004103e0
mov edi, eax
push edi
call fcn.004104e0
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x42313b
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x423118
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x42310c
mov ebx, edi
mov ecx, dword [ebp - 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea edx, [ebx*8]
push edx
push esi
mov edx, ebx
call fcn.00410550
mov ebx, dword [esi + 0x1c]
add esp, 8
cmp ebx, dword [esi + 0x20]
jb 0x423143
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x10]
jb 0x423143
test ebx, ebx
jne 0x4230b6
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [esi + 0x20]
jae 0x423154
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
cmp edx, dword [esi + 0x10]
pop edi
sbb eax, eax
not eax
pop esi
and eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret