joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4731c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf4cb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa4]
push eax
mov dword [edi + 0x10], esi
call fcn.00472800
mov ecx, esi
call fcn.00476850
mov ecx, dword [edi + 0x10]
mov esi, eax
or esi, 0x40000080
call fcn.004655e0
test al, 1
je 0x473222
or esi, 1
jmp 0x473229
test al, 2
je 0x473229
or esi, 2
mov ebx, dword [edi + 0x10]
mov ecx, ebx
call fcn.00473400
test al, al
je 0x47323a
or esi, 0x20
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov ecx, ebx
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ebx]
push esi
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.0043d590
push eax
mov ecx, edi
call fcn.004441b0
mov ecx, dword [edi + 0x10]
call fcn.00467a70
cmp eax, 0xffffffff
je 0x473289
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0043ce70
test eax, eax
jne 0x47329a
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0043cd90
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
push 0
call fcn.00472dd0
push eax
push 0xc5
push dword [edi + 4]
call esi
mov ebx, dword [edi + 0x10]
mov ecx, ebx
call fcn.00473400
test al, al
je 0x4732e4
push 0
mov ecx, ebx
call fcn.00472e00
movzx eax, ax
push eax
push 0xcc
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00404be0
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004397c0
push 0
push 0
push 0xb9
push dword [edi + 4]
call esi
push 0
push 3
push 0xd3
mov ecx, edi
call fcn.00444610
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xec]
call eax
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [edi + 0x10]
push 0
call fcn.00473410
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push 0xcf
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [edi + 0x10]
call fcn.004733f0
push dword [edi + 4]
test al, al
je 0x4733ad
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
mov ecx, 1
cmove eax, ecx
push eax
push 0
jmp 0x4733b5
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
push eax
push 0xb1
push dword [edi + 4]
call esi
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 4
Function at 0x473420
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044f080
mov ecx, dword [esi + 0x7e8]
test ecx, ecx
je 0x4734b1
lea eax, [ebp - 0x14]
push eax
call fcn.00472800
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x473487
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.00444320
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.00444320
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004845db
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4734d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x47355b
cmp dword [esi + 0x10], 0
je 0x47355b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00492430
mov ebx, esp
test ebx, ebx
je 0x47355b
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.00439860
mov ecx, dword [esi + 0x10]
push 1
push 0
push 0
mov eax, dword [ecx]
push 0
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.00441a50
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0043dd20
test al, al
je 0x47355b
mov ecx, dword [esi + 0x10]
call fcn.0044ef50
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 0x10
Function at 0x474090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.00451820
mov ecx, dword [esi + 0x7e8]
test ecx, ecx
je 0x474129
lea eax, [ebp - 0x14]
push eax
call fcn.00472800
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4740ff
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.00444320
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.00444320
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004845db
mov esp, ebp
pop ebp
ret 0x14

Function at 0x475770
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf4cb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x7f8], 0
cmp dword [edi + 4], 0
jne 0x47581d
lea eax, [ebp - 0xa4]
push eax
call fcn.004752c0
mov ecx, dword [edi + 0x10]
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.0043d590
push eax
mov ecx, edi
call fcn.004441b0
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00467a70
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.0043d010
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0043a0e0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.004397c0
test bl, bl
je 0x475861
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 4
Function at 0x4758b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044f080
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x475941
lea eax, [ebp - 0x14]
push eax
call fcn.004752c0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x475917
mov ecx, dword [esi + 0x800]
push 0
call fcn.00444320
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.00444320
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004845db
mov esp, ebp
pop ebp
ret 0xc

Function at 0x475a50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.00451820
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x475ae9
lea eax, [ebp - 0x14]
push eax
call fcn.004752c0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x475abf
mov ecx, dword [esi + 0x800]
push 0
call fcn.00444320
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004845db
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.00444320
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004845db
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4795d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.0043d5b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x479674
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x479669
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x479669
push eax
mov dword [ebp + 8], edi
call fcn.00437c6f
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x479665
push edi
call fcn.00489898
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x479677
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.004796a0
push edi
mov esi, eax
call fcn.00489898
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4810f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x481117
cmp eax, edi
jge 0x48110f
push esi
call fcn.0047cf60
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x481140
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x481123
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x48115c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x48114d
xor dl, dl
jmp 0x481152
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x481143
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x481191
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.0047ce70
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4811a9
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.0047ce70
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4811c7
push edi
push ecx
push esi
call fcn.00484370
add esp, 0xc
test eax, eax
jne 0x4811c7
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0048c210
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret

Function at 0x487bac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4a8ae8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0048eedd
mov dword [ebp - 0x14], eax
cmp dword [0x4f84b4], esi
jne 0x4a8bdb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a8b68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a8cbb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a8cbb
push 0x4d25f0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a8cbb
push eax
call ebx
push 0x4d25fc
push edi
mov dword [0x4f84b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4f84b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4f84bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f84c4], eax
test eax, eax
je 0x4a8bd8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f84c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a8c00
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a8bf3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a8c15
push 4
pop eax
jmp 0x4a8cbd
cmp dword [ebp - 0x14], esi
je 0x4a8c15
push dword [0x4f84b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a8bfa
mov eax, dword [0x4f84c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a8c73
cmp dword [0x4f84c4], edi
je 0x4a8c73
push eax
call ebx
push dword [0x4f84c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a8c73
test eax, eax
je 0x4a8c73
call ecx
test eax, eax
je 0x4a8c68
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a8c68
test byte [ebp - 8], 1
jne 0x4a8c73
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a8ca3
mov eax, dword [0x4f84b8]
cmp eax, edi
je 0x4a8ca0
push eax
call ebx
test eax, eax
je 0x4a8ca0
call eax
mov esi, eax
test esi, esi
je 0x4a8ca0
mov eax, dword [0x4f84bc]
cmp eax, edi
je 0x4a8ca0
push eax
call ebx
test eax, eax
je 0x4a8ca0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4f84b4]
call ebx
test eax, eax
je 0x4a8cbb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a8cbd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004845db
mov esp, ebp
pop ebp
ret
Function at 0xe6c88ee
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x449
call fcn.0e6f451f
cmp al, 0x11
jne 0xe6c8908
or dword [ebp - 4], 0xffffffff
jmp 0xe6c8918
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov eax, dword [eax*4 + 0xe725550]
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x485
call fcn.0e6f451f
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0xe73c440]
movzx eax, al
lea esi, [edx + ecx*4]
mov dword [ebp + 0x10], eax
cmp ebx, 1
jne 0xe6c8972
test eax, eax
jbe 0xe6c89b4
mov ebx, dword [ebp + 0x18]
shl ebx, 2
push edi
call fcn.0e6f451f
movzx eax, al
mov ecx, eax
shl ecx, 8
or eax, ecx
mov ecx, eax
shl ecx, 0x10
or ecx, eax
and ecx, dword [ebp - 4]
inc edi
xor dword [esi], ecx
add esi, ebx
dec dword [ebp + 0x10]
jne 0xe6c894c
jmp 0xe6c89b4
mov ecx, dword [ebp + 0x18]
sub ecx, ebx
test eax, eax
jbe 0xe6c89b4
mov eax, ecx
shl eax, 2
mov dword [ebp + 0x18], eax
push edi
call fcn.0e6f451f
movzx ecx, al
mov eax, ecx
shl eax, 8
or ecx, eax
mov eax, ecx
shl eax, 0x10
or eax, ecx
and eax, dword [ebp - 4]
inc edi
mov ecx, ebx
test ebx, ebx
jbe 0xe6c89ac
xor dword [esi], eax
add esi, 4
dec ecx
jne 0xe6c89a4
add esi, dword [ebp + 0x18]
dec dword [ebp + 0x10]
jne 0xe6c8983
pop edi
pop esi
pop ebx
leave
ret 0x14

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc04
mov eax, dword [str._sm_a]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [0xe75dac4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
shl edx, cl
test eax, edx
jne 0xe6dc8f3
push ebx
push esi
push edi
or edx, eax
push edx
push dword [0xe75dac4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, 0x400
push esi
lea eax, [ebp - 0xc04]
push eax
push 0x12c
push 0
call edi
mov ebx, dword [fcn.0e6b13b8]
push eax
call ebx
test eax, eax
je 0xe6dc8ce
push esi
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp + 8]
add eax, 0x12d
push eax
push 0
call edi
push eax
call ebx
test eax, eax
je 0xe6dc8ce
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.0e6dbf9a
add esp, 0x10
mov byte [ebp - 5], 0
jmp 0xe6dc8e0
push 0xe72dba0
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.0e6dab71
push 0x25
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.0e6dc4e3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0e6b57d5
leave
ret 4
Function at 0xe6e418a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
imul esi, esi, 0x28
xor ebx, ebx
add esi, 0xe75d840
push ebx
lea eax, [ebp + 8]
push eax
cmp byte [esi + 0x24], bl
je 0xe6e41c7
push ebx
push ebx
push dword [esi + 0x10]
push dword [esi + 0x20]
push 0x2c0004
push dword [esi + 4]
call dword [fcn.0e6b1248]
xor eax, eax
inc eax
mov dword [esi + 0x10], ebx
jmp 0xe6e41ee
push dword [esi + 0x10]
push dword [esi + 0x20]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xe6e41c2
cmp dword [esi + 0x18], 3
mov dword [esi + 0x10], ebx
jne 0xe6e41eb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0xe6efc25
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [0xe7396a8]
shl eax, 2
push eax
push 0xe75cfc0
push dword [0xe7396a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xe6efc55
leave
ret
and dword [0xe7396a8], 0
xor eax, eax
inc eax
leave
ret

Function at 0xe6fa504
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push edi
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
sub eax, 3
je 0xe6fa531
dec eax
dec eax
je 0xe6fa52c
dec eax
dec eax
jne 0xe6fa536
lea eax, [ebp - 0x60]
jmp 0xe6fa539
lea eax, [ebp - 0x58]
jmp 0xe6fa539
lea eax, [ebp - 0x50]
jmp 0xe6fa539
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
push 1
call fcn.0e6fa35e
xor edi, edi
cmp eax, edi
jl 0xe6fa614
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [0xe6b156c]
test al, al
jne 0xe6fa571
mov eax, 0x80070003
jmp 0xe6fa614
mov eax, dword [ebp - 0x20]
push ebx
mov ebx, dword [ebp - 4]
xor ecx, ecx
push esi
cmp cx, ax
je 0xe6fa58b
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0xe6fa58e
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
push 0x4020
lea eax, [ebp - 8]
mov dword [ebp - 0x30], eax
push 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x100100
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [0xe6b14d0]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call dword [0xe6b1568]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [fcn.0e6b1530]
cmp esi, edi
jl 0xe6fa610
push 4
push 0x28
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [0xe6b1510]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret 0xc