joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4391f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470c03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00462936
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004680a9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00469601
test eax, eax
je 0x43930c
mov ecx, dword [esp + 0x3c]
call fcn.004680d6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4392d0
push edi
mov ecx, esi
call fcn.0046569a
mov ecx, esi
call fcn.00439470
cmp dword [esp + 0x38], 1
jne 0x439305
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00465804
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43bd20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43bd53
push esi
call fcn.0043ee10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43bd4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43bdd9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43bdc2
mov eax, dword [esi + 8]
test eax, eax
je 0x43bd77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43bdbe
cmp eax, 2
je 0x43bdc2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43bd6a
cmp eax, 3
je 0x43bd9d
cmp eax, 1
jne 0x43bd6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43bd6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43bd6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043be00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43bde8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043be00
add esp, 4
pop esi
ret

Function at 0x46372c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x463764
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004617e3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004617bb
jmp 0x463770
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464e1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x464e60
call fcn.0046ab0d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464e60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464e57
xor eax, eax
jmp 0x464e68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464e6e
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b03d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46b06b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b089
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046afa3
jmp 0x46b089
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b089
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046afa3
test edi, edi
mov eax, edi
jne 0x46b073
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov edx, dword [0x45a1a0]
mov ebp, esp
mov eax, dword [0x45a194]
push esi
mov ecx, dword [0x45a190]
push ebx
mov esi, dword [ebp + 8]
test edx, edx
jle 0x401871
mov ebx, eax
sub ebx, ecx
cmp ebx, esi
jb 0x401798
mov eax, dword [0x45a1ac]
lea edx, [ecx*4]
add edx, eax
lea eax, [ecx + esi]
mov dword [0x45a190], eax
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [0x45a18c]
push edx
add eax, ecx
lea edx, [ebx*4]
mov dword [0x45a18c], eax
mov eax, dword [0x45a1ac]
push edx
lea edx, [eax + ecx*4]
push edx
push eax
call sub.msvcrt.dll_memmove
lea edx, [esi + ebx]
mov eax, dword [0x45a1a8]
add esp, 0x10
mov dword [0x45a190], 0
mov dword [0x45a194], ebx
cmp edx, eax
jbe 0x40180c
test eax, eax
jne 0x4017e3
mov ax, 0x400
add eax, edx
lea edx, [eax + eax]
shl eax, 3
mov dword [0x45a1a8], edx
push edx
push edx
push eax
mov eax, dword [0x45a1ac]
push eax
call fcn.00427970
add esp, 0x10
mov dword [0x45a1ac], eax
mov eax, dword [0x45a1a8]
mov edx, dword [0x45a194]
mov ecx, dword [0x45a1ac]
sub eax, edx
mov ebx, dword [0x45a188]
shl eax, 2
lea edx, [ecx + edx*4]
push ebx
push eax
push 1
push edx
call sub.msvcrt.dll_fread
mov edx, dword [0x45a194]
shr eax, 2
add esp, 0x10
add eax, edx
mov dword [0x45a194], eax
cmp esi, eax
ja 0x401852
mov ecx, dword [0x45a190]
jmp 0x401779
sub esi, eax
mov eax, dword [0x45a198]
add eax, esi
xor edx, edx
mov dword [0x45a198], eax
mov dword [0x45a194], 0
jmp 0x40178f
push eax
push str.gcov_read_words
push 0x22d
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._gcc_gcc_4.9_gcc_gcov_io.c
call fcn.00406450
lea esi, [esi]
lea edi, [edi]

Function at 0x405bf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x405c10
lea edx, [eax - 1]
test edx, edx
jle 0x405c5b
mov dword [ebx + 0x58], edx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebx]
sub esp, 0xc
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0x10]
push eax
call sub.msvcrt.dll__isatty
add esp, 0x10
mov edx, 0x7fffffff
test eax, eax
je 0x405c08
sub esp, 0xc
push str.COLUMNS
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
je 0x405c54
sub esp, 0xc
push eax
call sub.msvcrt.dll_atoi
add esp, 0x10
test eax, eax
jg 0x405c01
mov edx, 0x7ffffffe
jmp 0x405c08
mov edx, 0x7fffffff
mov dword [ebx + 0x58], edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x407380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x45a34c]
push eax
call fcn.0040adf0
add esp, 0x10
xor edx, edx
test al, al
je 0x4073c3
mov edx, dword [ebp - 4]
cmp edx, 1
jbe 0x4073c7
lea eax, [ebp - 0x18]
push ecx
push ecx
push edx
push eax
call fcn.00407360
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov eax, edx
leave
ret
push eax
push str.total_lines_num
push 0xde
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._gcc_gcc_4.9_gcc_input.c
call fcn.00406450
lea esi, [esi]
Function at 0x4073e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
mov edx, dword [eax + 0x14]
test edx, edx
je 0x407400
cmp edx, dword [eax + 0x10]
je 0x407400
lea eax, [edx - 1]
xor ecx, ecx
cmp dword [ebx + 0x18], eax
jb 0x40740c
lea esi, [esi]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
test al, 0x10
je 0x407415
xor ecx, ecx
lea esp, [ebp - 8]
mov eax, ecx
pop ebx
pop esi
pop ebp
ret
test al, 0x20
jne 0x40740a
cmp edx, dword [ebx + 0x10]
jne 0x407444
test edx, edx
jne 0x407483
mov esi, 0x1000
mov eax, 0x1001
push ecx
push ecx
push eax
mov edx, dword [ebx + 0xc]
push edx
call fcn.00427970
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], eax
add esp, 0x10
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0x10]
sub eax, edx
push eax
push 1
mov eax, dword [ebx + 0xc]
add edx, eax
push edx
call sub.msvcrt.dll_fread
mov edx, eax
mov eax, dword [ebx + 8]
add esp, 0x10
test byte [eax + 0xc], 0x20
jne 0x40740a
mov eax, dword [ebx + 0x14]
add eax, edx
test edx, edx
mov dword [ebx + 0x14], eax
setne al
xor ecx, ecx
lea esp, [ebp - 8]
mov cl, al
pop ebx
mov eax, ecx
pop esi
pop ebp
ret
lea esi, [edx + edx]
lea eax, [esi + 1]
jmp 0x40742c
Function at 0x410820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, edx
mov dword [ebp - 0x1c], eax
mov eax, 1
cmp byte [edx + 0x55], 0
jne 0x410972
cmp byte [edx + 0x53], 0
jne 0x41097a
mov edi, dword [edx + 0x4c]
test edi, edi
jne 0x41097a
cmp dword [edx + 0x48], 0xffffffff
je 0x4109a0
mov ax, word [esi + 0x2a]
and eax, 0xf000
cmp eax, 0x3000
je 0x4109bf
cmp eax, 0x8000
je 0x410984
mov dword [ebp - 0x10], 0x2000
mov byte [ebp - 0x15], 0
mov eax, 0x2010
sub esp, 0xc
xor ebx, ebx
push eax
call fcn.00427a10
add esp, 0x10
mov dword [ebp - 0x14], eax
lea esi, [esi]
push eax
mov edi, ebx
mov eax, dword [ebp - 0x10]
sub eax, ebx
push eax
mov eax, dword [ebp - 0x14]
add eax, ebx
push eax
mov eax, dword [esi + 0x48]
push eax
call sub.msvcrt.dll__read
add esp, 0x10
cmp eax, 0
jle 0x4108ee
add ebx, eax
cmp ebx, dword [ebp - 0x10]
jne 0x4108a0
cmp byte [ebp - 0x15], 0
jne 0x410996
lea eax, [ebx + ebx]
mov dword [ebp - 0x10], eax
add eax, 0x10
push edx
push edx
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00427970
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x4108a0
jne 0x4109dd
cmp byte [ebp - 0x15], 0
je 0x41091a
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x41091a
mov eax, dword [esi + 4]
mov edi, ebx
push eax
push str._s_is_shorter_than_expected
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040f9d0
add esp, 0x10
push eax
lea eax, [esi + 0x38]
push eax
lea eax, [esi + 0x18]
push eax
push edi
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
mov edi, dword [ebp - 0x14]
push edi
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x268]
push ebx
push eax
call fcn.0041e200
mov byte [esi + 0x55], 1
mov dword [esi + 0x14], eax
add esp, 0x20
mov al, 1
sub esp, 0xc
xor eax, 1
mov byte [esi + 0x53], al
mov ecx, dword [esi + 0x48]
push ecx
call sub.msvcrt.dll__close
mov al, byte [esi + 0x53]
mov dword [esi + 0x48], 0xffffffff
xor eax, 1
add esp, 0x10
and eax, 0xff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x38]
mov byte [ebp - 0x15], 1
mov dword [ebp - 0x10], eax
add eax, 0x10
jmp 0x41088b
mov edi, ebx
mov dword [ebp - 0x10], ebx
jmp 0x41091a
mov eax, edx
call fcn.00410030
test al, al
jne 0x41085c
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, esi
call fcn.00410130
xor eax, eax
jmp 0x410972
mov ebx, dword [esi + 4]
push ebx
push str._s_is_a_block_device
push 3
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040f9d0
xor eax, eax
add esp, 0x10
jmp 0x41094b
push ecx
mov edx, dword [esi + 4]
push edx
push 3
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040fa00
pop eax
mov eax, dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x10
jmp 0x41094b
Function at 0x412780
Capabilities:
Write file on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dl, byte [edi + 4]
mov eax, dword [edx*8 + 0x44e0e0]
cmp eax, 1
je 0x412800
cmp eax, 2
je 0x41285b
test eax, eax
jne 0x4127f3
mov ax, word [edi + 6]
and eax, 0xffff
test al, 2
jne 0x412876
test al, 0x10
jne 0x412800
mov eax, dword [edx*8 + 0x44e0e4]
xor edx, edx
mov ebx, eax
mov dl, byte [eax]
jmp 0x4127d5
xor edx, edx
mov dl, al
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
test eax, eax
js 0x412882
mov eax, dword [esi]
mov byte [eax], dl
inc eax
mov dword [esi], eax
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x4127d1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], edx
test ecx, ecx
je 0x4127f3
xor ebx, ebx
jmp 0x412839
lea eax, [ebp - 0x16]
call fcn.00412690
push esi
push 0xa
push 1
lea ebx, [ebx + eax - 1]
lea eax, [ebp - 0x16]
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [edi + 8]
inc ebx
cmp dword [eax + 4], ebx
jbe 0x4127f3
mov edx, dword [ebp - 0x20]
add edx, ebx
test byte [edx], 0x80
jne 0x412813
push edx
push edx
push esi
mov eax, dword [eax]
mov al, byte [ebx + eax]
and eax, 0xff
push eax
call sub.msvcrt.dll_fputc
add esp, 0x10
jmp 0x412830
push esi
mov ebx, dword [edi + 8]
push ebx
push 1
mov ecx, dword [edi + 0xc]
push ecx
call sub.msvcrt.dll_fwrite
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
call fcn.00411e30
jmp 0x4127c9
push edi
push edi
push esi
push edx
call sub.msvcrt.dll__flsbuf
add esp, 0x10
jmp 0x4127eb
Function at 0x41f590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov eax, 7
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov edx, dword [ebp + 0x18]
cmp dword [edx], 3
jbe 0x41f5bc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
test ecx, ecx
jne 0x41f5c2
mov eax, 0x16
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edi, 2
mov dl, byte [eax]
and edx, 0xff
mov esi, edx
cmp edx, 0x7f
ja 0x41f632
lea eax, [ecx - 1]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ecx]
inc eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x41f65e
mov eax, esi
mov ecx, esi
mov byte [edx], al
movzx eax, ch
mov byte [edx + 1], al
mov eax, esi
shr eax, 0x10
mov byte [edx + 2], al
mov eax, 3
shr esi, 0x18
mov ecx, esi
mov byte [eax + edx], cl
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [eax]
mov ebx, dword [edx]
add esi, 4
sub ebx, 4
mov dword [eax], esi
mov dword [edx], ebx
xor eax, eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
xor edx, edx
mov bl, byte [edi + 0x44fd91]
mov dl, byte [edi + 0x44fd8b]
mov eax, ebx
xor eax, 0xffffffff
and eax, esi
cmp eax, edx
je 0x41f677
inc edi
cmp edi, 7
jne 0x41f632
mov eax, 0x2a
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
mov ecx, esi
mov byte [edx + 3], al
movzx eax, ch
mov byte [edx + 2], al
mov eax, esi
shr eax, 0x10
mov byte [edx + 1], al
xor eax, eax
jmp 0x41f60e
cmp ecx, edi
jb 0x41f5b7
mov ecx, dword [ebp - 0x10]
and esi, ebx
inc ecx
cmp edi, 1
jbe 0x41f6d0
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dl, byte [eax + 1]
mov eax, edx
and eax, 0xc0
add eax, 0xffffff80
jne 0x41f653
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, 2
lea ebx, [edi + eax]
jmp 0x41f6c1
xor edx, edx
mov dl, byte [ecx]
mov eax, edx
and eax, 0xc0
add eax, 0xffffff80
jne 0x41f653
inc ecx
mov eax, esi
and edx, 0x3f
shl eax, 6
cmp ecx, ebx
lea esi, [edx + eax]
jne 0x41f6b0
cmp esi, 0x7f
jbe 0x41f653
cmp esi, 0x7ff
ja 0x41f6ea
cmp edi, 2
ja 0x41f653
cmp esi, 0xffff
ja 0x41f6fb
cmp edi, 3
ja 0x41f653
cmp esi, 0x1fffff
ja 0x41f70c
cmp edi, 4
ja 0x41f653
cmp esi, 0x3ffffff
ja 0x41f71d
cmp edi, 5
ja 0x41f653
test esi, esi
js 0x41f653
lea eax, [esi - 0xd800]
cmp eax, 0x7ff
jbe 0x41f653
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
sub eax, edi
mov dword [ecx], eax
jmp 0x41f5e9
Function at 0x438560
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x18], 0
pop ebp
ret

Function at 0x4390e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x10fc
mov ebp, esp
push edi
push esi
push ebx
call fcn.0043d580
lea eax, [ebp - 0xa8]
push eax
mov edi, dword [ebp + 8]
xor ebx, ebx
call fcn.00438560
lea esi, [ebp - 0x10f0]
pop eax
mov eax, 0x1000
push edi
sub eax, ebx
push eax
lea eax, [esi + ebx]
push 1
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
add ebx, eax
cmp ebx, 0xfff
jbe 0x439146
test eax, eax
je 0x43914a
lea eax, [ebp - 0xa8]
xor ebx, ebx
push eax
push 0x1000
push esi
call fcn.004385a0
add esp, 0xc
jmp 0x439108
test eax, eax
jne 0x439108
mov eax, 1
test byte [edi + 0xc], 0x20
jne 0x439170
test ebx, ebx
jne 0x439178
push eax
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00439010
xor eax, eax
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push esi
call fcn.00438eb0
add esp, 0x10
jmp 0x439159

Function at 0x43d890
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x43d8c3
push edx
push edx
push 0
push eax
mov dword [0x45a5b8], eax
call fcn.00443000
add esp, 0x10
test eax, eax
sete al
and eax, 0xff
mov dword [0x4460c0], eax
leave
ret
call fcn.00442f64
jmp 0x43d8b2

Function at 0x43d950
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, edx
mov eax, dword [0x4460c0]
mov ebx, dword [edx]
test eax, eax
js 0x43d9b0
mov eax, dword [0x4460c0]
test eax, eax
jne 0x43d980
mov dword [0x45a5a8], ebx
mov eax, dword [esi]
add eax, 0x20
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov esp, dword [eax + 8]
jmp edx
push eax
push eax
push ebx
mov ebx, dword [0x45a5b8]
push ebx
call sub.KERNEL32.dll_TlsSetValue
pop edx
test eax, eax
pop ecx
jne 0x43d971
call fcn.00442f64
mov eax, dword [esi]
add eax, 0x20
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov esp, dword [eax + 8]
jmp edx
call fcn.0043d810
jmp 0x43d962
Function at 0x43db60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4460c0]
mov edi, dword [ebp + 0xc]
test eax, eax
js 0x43dbe8
mov eax, dword [0x4460c0]
test eax, eax
jne 0x43dbc3
mov eax, dword [0x45a5a8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x43db9d
cmp ebx, 5
je 0x43dbb9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
sbb ebx, ebx
push eax
push eax
push edi
push esi
call dword [ebp + 8]
and ebx, 5
add esp, 0x10
test eax, eax
je 0x43db90
mov ebx, 3
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x45a5b8]
call fcn.00442f64
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
jmp 0x43db83
call fcn.0043d810
jmp 0x43db75

Function at 0x43dc70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4460c0]
mov edi, dword [ebp + 8]
test eax, eax
js 0x43dd41
mov eax, dword [0x4460c0]
test eax, eax
jne 0x43dce4
mov eax, dword [0x45a5a8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43dcd7
lea ebx, [ebp - 0x14]
jmp 0x43dca9
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x43dcce
push esi
push esi
push ebx
push edi
mov ecx, dword [edi + 4]
push ecx
mov edx, dword [edi]
push edx
push 1
push 1
call eax
add esp, 0x20
cmp eax, 6
je 0x43dd09
cmp eax, 8
jne 0x43dd34
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x43dca6
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x45a5b8]
call fcn.00442f64
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
jmp 0x43dc97
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, edi
call fcn.0043d8d0
cmp eax, 7
jne 0x43dcdc
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0043d950
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0043d810
jmp 0x43dc89
Function at 0x43dd50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x43ddc0
mov eax, dword [0x4460c0]
test eax, eax
js 0x43ddd1
mov eax, dword [0x4460c0]
test eax, eax
jne 0x43dd96
mov eax, dword [0x45a5a8]
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, edi
call fcn.0043da20
cmp eax, 7
je 0x43ddd8
call sub.msvcrt.dll_abort
mov ebx, dword [0x45a5b8]
call fcn.00442f64
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
jmp 0x43dd7a
sub esp, 0xc
push edi
call fcn.0043dc70
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0043d810
jmp 0x43dd6c
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0043d950
lea esi, [esi]
lea edi, [edi]

Function at 0x43ddf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ecx, dword [0x4460c0]
mov edi, dword [ebp + 8]
test ecx, ecx
js 0x43de70
mov edx, dword [0x4460c0]
test edx, edx
jne 0x43de46
mov eax, dword [0x45a5a8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x43de38
lea ebx, [ebp - 0x14]
mov eax, edi
mov edx, ebx
call fcn.0043d8d0
cmp eax, 7
je 0x43de77
call sub.msvcrt.dll_abort
lea ebx, [ebp - 0x14]
mov eax, edi
mov edx, ebx
call fcn.0043da20
jmp 0x43de2e
mov ebx, dword [0x45a5b8]
call fcn.00442f64
sub esp, 0xc
mov esi, eax
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
add esp, 0xc
jmp 0x43de15
call fcn.0043d810
jmp 0x43de06
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0043d950
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
dec eax
mov dword [ebx + 4], eax
test eax, eax
je 0x43deb0
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
sub esp, 0xc
mov dword [ebx + 8], 0
push ebx
call sub.KERNEL32.dll_InterlockedDecrement
add esp, 0xc
test eax, eax
js 0x43dea5
push eax
push 0
push 1
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.dll_ReleaseSemaphore
test eax, eax
mov ebx, dword [ebp - 4]
sete al
and eax, 0xff
pop edx
leave
ret