joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ae20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [edi + 0x2720]
je 0x49ae4d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49ae4d
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x49ae56
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp ebx, 0xffffffff
jne 0x49ae6f
mov eax, dword [edi + 0x2720]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
xor al, al
pop ebx
ret 8
mov ecx, dword [esp + 0x10]
push ecx
push ebx
push 0x8eed78
call fcn.00529910
test al, al
jne 0x49ae97
mov edx, dword [edi + 0x2720]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
xor al, al
pop ebx
ret 8
lea esi, [edi + 0x2728]
lea edx, [esp + 0xc]
call fcn.004a0ce0
mov eax, dword [edi + 0x2720]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov al, 1
pop ebx
ret 8

Function at 0x49aec0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x728c28]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
mov esi, dword [edi + 0x2720]
je 0x49aef0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x49aef0
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x49aef9
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
mov eax, 0x8eed78
call fcn.00529aa0
test al, al
jne 0x49af21
mov ecx, dword [edi + 0x2720]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop ebp
xor al, al
pop ebx
ret 8
cmp ebp, ebx
jne 0x49af4c
mov eax, dword [edi + 0x272c]
cmp eax, ebx
je 0x49af38
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [edi + 0x272c], ebx
mov dword [edi + 0x2730], ebx
mov dword [edi + 0x2734], ebx
jmp 0x49afb5
mov edx, dword [edi + 0x272c]
cmp edx, dword [edi + 0x2730]
je 0x49afb5
mov ebx, 0xfffffffc
nop
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x49af7f
mov esi, dword [edx]
mov ecx, ebp
lea esp, [esp]
cmp esi, eax
je 0x49afaa
mov eax, dword [ecx + 4]
add ecx, 4
cmp eax, 0xffffffff
jne 0x49af70
mov ecx, dword [edi + 0x2730]
lea eax, [edx + 4]
cmp eax, ecx
je 0x49af9c
sub edx, eax
mov edi, edi
mov esi, dword [eax]
mov dword [edx + eax], esi
add eax, 4
cmp eax, ecx
jne 0x49af90
add dword [edi + 0x2730], ebx
mov edx, dword [edi + 0x272c]
jmp 0x49afad
add edx, 4
cmp edx, dword [edi + 0x2730]
jne 0x49af60
mov edx, dword [edi + 0x2720]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x4aae40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov al, byte [0x7291c5]
sub esp, 8
test al, al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
je 0x4aae6c
push 0x8ef610
mov byte [0x7291c5], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x8ef608
call esi
lea eax, [esp + 4]
push eax
call esi
mov ecx, dword [esp + 4]
mov edx, dword [0x8ef608]
mov eax, dword [0x8ef60c]
sub ecx, edx
mov edx, dword [esp + 8]
sbb edx, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
fild qword [esp + 4]
fild qword [0x8ef610]
pop esi
fdivp st(1)
add esp, 8
ret

Function at 0x4acf80
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
test eax, eax
je 0x4ad001
lea edx, [esp]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4acfa0
push esi
lea ecx, [esp + 7]
push 0x6fde48
push ecx
call dword [sym.imp.MSVCR71.dll_strtok]
mov esi, eax
add esp, 8
test esi, esi
je 0x4acff4
push 3
sub esi, 3
push 0x70e0b0
push esi
call dword [sym.imp.MSVCR71.dll_strncpy]
mov edx, dword [esp + 0x114]
push edx
push esi
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 0x14
mov dword [0x8ca4c0], eax
pop esi
add esp, 0x100
ret
mov eax, dword [0x8ca4c0]
pop esi
add esp, 0x100
ret
mov eax, dword [0x8ca4c0]
add esp, 0x100
ret

Function at 0x4ad010
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [0x8ca4bc]
sub esp, 8
push edi
mov edi, 1
cmp eax, edi
je 0x4ad133
cmp eax, 2
push esi
jne 0x4ad0ba
mov eax, dword [0x7291cc]
cmp dword [eax], 0x14
jae 0x4ad040
mov dword [eax], 0x14
mov ecx, dword [0x8ca4c0]
mov esi, dword [sym.imp.MSVCR71.dll_fwrite]
push ecx
push edi
push 8
push eax
call esi
add esp, 0x10
xor ecx, ecx
mov dword [esp + 8], ecx
lea esp, [esp]
mov eax, ecx
shl eax, 4
mov edx, dword [eax + 0x8cac60]
mov dword [esp + 0xc], edx
fld dword [esp + 0xc]
fld dword [eax + 0x8ca620]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4ad0aa
mov eax, dword [0x8ca4c0]
push eax
push edi
lea ecx, [esp + 0x10]
push 4
push ecx
call esi
mov edx, dword [0x8ca4c0]
push edx
push edi
lea eax, [esp + 0x24]
push 4
push eax
call esi
mov ecx, dword [esp + 0x28]
add esp, 0x20
inc ecx
cmp ecx, 0x14
mov dword [esp + 8], ecx
jl 0x4ad060
pop esi
pop edi
add esp, 8
ret
cmp eax, 3
jne 0x4ad132
mov ecx, dword [0x8ca4c0]
mov edx, dword [0x7291cc]
mov esi, dword [sym.imp.MSVCR71.dll_fread]
push ebx
push ecx
push edi
push 8
push edx
call esi
mov eax, dword [0x7291cc]
mov ebx, dword [eax]
add esp, 0x10
cmp ebx, 0x14
jae 0x4ad120
jmp 0x4ad0f0
mov ecx, dword [0x7291c8]
mov edx, dword [ecx]
push edx
call fcn.004acd90
mov eax, dword [0x8ca4c0]
mov ecx, dword [0x7291cc]
push eax
push edi
push 8
push ecx
call esi
mov edx, dword [0x7291cc]
mov ebx, dword [edx]
add esp, 0x14
cmp ebx, 0x14
jb 0x4ad0f0
mov eax, dword [0x8ca4c0]
test byte [eax + 0xc], 0x10
pop ebx
je 0x4ad132
mov dword [0x8ca4bc], edi
pop esi
pop edi
add esp, 8
ret
Function at 0x4ad140
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x8ca4bc]
test eax, eax
jne 0x4ad187
push 0x70e0ac
mov eax, 0x70e0a8
call fcn.004acf80
add esp, 4
test eax, eax
je 0x4ad166
mov eax, 3
jmp 0x4ad182
push 0x70e0a4
mov eax, 0x70e0a0
call fcn.004acf80
xor ecx, ecx
add esp, 4
test eax, eax
setne cl
inc ecx
mov eax, ecx
mov dword [0x8ca4bc], eax
cmp eax, 3
je 0x4ad198
call fcn.004aae40
fst qword [0x8ca4c8]
ret
fld qword [0x7155a8]
fld qword [0x8ca4c8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4ad1c6
mov edx, dword [0x8ca4c0]
push edx
push 1
push 8
push 0x8ca4c8
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
fld qword [0x8ca4c8]
ret
Function at 0x4b09e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
push edi
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x50]
mov eax, 1
cmp ecx, eax
jne 0x4b0a53
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
test bl, bl
mov al, byte [esp + 0x168]
je 0x4b0a37
or al, 1
jmp 0x4b0a39
and al, 1
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x16c], al
call dword [sym.imp.USER32.dll_SetKeyboardState]
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x24], eax
mov dword [esp + 8], eax
mov eax, 0x90
mov word [esp + 0x28], ax
mov word [esp + 0xc], ax
xor eax, eax
xor edx, edx
cmp bl, al
sete dl
push 0x1c
lea ecx, [esp + 0xc]
push ecx
mov word [esp + 0x32], ax
mov word [esp + 0x16], ax
mov dword [esp + 0x18], eax
inc edx
push edx
mov dword [esp + 0x38], 2
call dword [sym.imp.USER32.dll_SendInput]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4bb1b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
test byte [0x8ef61c], 1
push edi
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 8], 0x46495245
jne 0x4bb1de
or dword [0x8ef61c], 1
call edi
mov dword [0x8ef618], eax
call edi
mov ecx, dword [0x8ef618]
xor ebx, ebx
sub eax, ecx
or edi, 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], bl
mov byte [esi + 0x25], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 0xfffffffe
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], edi
mov byte [esi + 0x4c], 1
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x48], 0x64
mov dword [esi + 0x18], ebp
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
je 0x4bb23b
dec dword [ecx + 4]
jne 0x4bb238
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x84], ebx
mov edx, dword [0x728ae8]
lea ecx, [esi + 0x6c]
mov dword [ecx], edx
mov eax, dword [0x728aec]
mov dword [ecx + 4], eax
mov edx, dword [0x728af0]
mov dword [ecx + 8], edx
mov dword [esi + 0x60], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0x68], ebx
mov byte [esi + 0x4d], bl
mov dword [esi + 0x5c], ebx
mov ecx, dword [esi + 0x64]
cmp ecx, ebx
je 0x4bb284
dec dword [ecx + 4]
jne 0x4bb281
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x729430]
lea ecx, [esi + 0x78]
mov dword [ecx], edx
mov eax, dword [0x729434]
mov dword [ecx + 4], eax
mov edx, dword [0x729438]
mov dword [ecx + 8], edx
mov dword [esi + 0x90], ebx
mov dword [esi + 0xa8], 0x3f800000
mov byte [esi + 0xac], bl
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], edi
mov dword [esi + 0x8c], ebx
mov ecx, dword [esi + 0xbc]
cmp ecx, ebx
je 0x4bb2f5
dec dword [ecx + 4]
jne 0x4bb2ef
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xbc], ebx
cmp ebp, ebx
je 0x4bb368
push 0x18
call fcn.005354b8
add esp, 4
cmp eax, ebx
je 0x4bb322
mov dword [eax], 0x70f224
mov dword [eax + 8], ebx
mov dword [eax + 0x14], 1
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 4], ebx
jmp 0x4bb324
xor eax, eax
mov dword [esi + 0x88], eax
add esi, 0x94
mov edi, 4
push 0x18
call fcn.005354b8
add esp, 4
cmp eax, ebx
je 0x4bb35e
mov dword [eax], 0x70f128
mov dword [eax + 8], ebx
mov dword [eax + 0x14], 1
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 4], ebx
jmp 0x4bb360
xor eax, eax
mov dword [esi], eax
add esi, 4
dec edi
jne 0x4bb335
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4bb370
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
push ebx
push esi
mov esi, dword [0x728b0c]
je 0x4bb399
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bb399
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x4bb3a2
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [0x728acc]
cmp ebx, dword [0x728ac8]
jb 0x4bb3d2
mov eax, dword [0x728ad4]
lea edx, [eax + ebx]
mov esi, 0x728ac0
call fcn.00528780
cmp ebx, dword [0x728ac8]
jae 0x4bb41e
cmp ebx, dword [0x728acc]
jb 0x4bb3e7
test edi, edi
lea ecx, [ebx + 1]
mov dword [0x728acc], ecx
je 0x4bb415
mov eax, dword [0x728ad0]
inc eax
jmp 0x4bb410
test edi, edi
je 0x4bb3ff
mov edx, dword [0x728ac4]
cmp dword [edx + ebx*4], 0
jne 0x4bb415
mov eax, dword [0x728ad0]
inc eax
jmp 0x4bb410
mov eax, dword [0x728ac4]
cmp dword [eax + ebx*4], 0
je 0x4bb415
mov eax, dword [0x728ad0]
dec eax
mov dword [0x728ad0], eax
mov ecx, dword [0x728ac4]
mov dword [ecx + ebx*4], edi
mov eax, dword [edi + 0x1c]
test eax, eax
pop esi
pop ebx
je 0x4bb473
push eax
mov ecx, edi
call fcn.004bdf50
mov eax, dword [edi + 0x1c]
push edi
call fcn.004be290
mov edx, dword [edi + 0x1c]
push edx
mov ecx, edi
call fcn.004bf9f0
mov eax, dword [edi + 0x1c]
push eax
mov ecx, edi
call fcn.004bf800
mov ecx, dword [edi + 0x1c]
call fcn.00535990
mov ecx, dword [edi + 0x1c]
call fcn.00535bb0
mov ecx, dword [edi + 0x1c]
push ecx
call fcn.004aff60
mov eax, dword [edi + 0x54]
add esp, 4
test eax, eax
je 0x4bb473
call eax
mov edx, dword [0x728b0c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [edi + 8], 0x41584953
ret
Function at 0x4dcac0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
push esi
push edi
mov esi, eax
jns 0x4dcad0
neg esi
and ecx, 0x7fffffff
test ecx, 0x40000000
je 0x4dcae1
mov eax, 0x7fffffff
sub eax, ecx
mov ecx, eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x7d00
mov edi, 1
jle 0x4dcb0b
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
cdq
xor eax, edx
sub eax, edx
add edi, edi
cmp eax, 0x7d00
jg 0x4dcaf4
mov edx, esi
call fcn.00495330
imul eax, edi
pop edi
pop esi
ret

Function at 0x4dcb20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, ecx
test edi, edi
mov ebx, eax
jne 0x4dcb3a
xor eax, eax
test ebx, ebx
setg al
pop edi
pop ebx
dec eax
and eax, 0x80000000
ret
test ebx, ebx
jne 0x4dcb53
xor eax, eax
test edi, edi
setle al
pop edi
pop ebx
dec eax
and eax, 0x80000000
add eax, 0xc0000000
ret
mov eax, edi
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
push ebp
push esi
jle 0x4dcb9e
cmp eax, 0x10000
jle 0x4dcb82
sar ebx, 1
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
sar edi, 1
cmp eax, 0x10000
jg 0x4dcb70
mov eax, ebx
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, edi
cdq
mov esi, eax
xor esi, edx
shl ecx, 0xe
sub esi, edx
mov ebp, 1
jmp 0x4dcbcf
cmp ecx, 0x10000
jle 0x4dcbb8
sar edi, 1
mov eax, edi
cdq
xor eax, edx
sub eax, edx
sar ebx, 1
cmp eax, 0x10000
jg 0x4dcba6
mov eax, edi
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, ebx
cdq
mov esi, eax
xor esi, edx
shl ecx, 0xe
sub esi, edx
xor ebp, ebp
mov eax, ecx
cdq
idiv esi
mov ecx, 0x2800
mov esi, eax
mov eax, 0x1333
sub eax, esi
cdq
xor eax, edx
sub eax, edx
imul eax, eax, 0xb00
sar eax, 0xe
sub ecx, eax
imul ecx, esi
sar ecx, 0xe
test edi, edi
jle 0x4dcc34
test ebx, ebx
jle 0x4dcc13
test ebp, ebp
je 0x4dcc4c
pop esi
pop ebp
mov eax, 0x4000
sub eax, ecx
pop edi
shl eax, 0x10
pop ebx
ret
test ebp, ebp
je 0x4dcc25
pop esi
pop ebp
lea eax, [ecx + 0x4000]
pop edi
shl eax, 0x10
pop ebx
ret
pop esi
pop ebp
mov eax, 0x8000
sub eax, ecx
pop edi
shl eax, 0x10
pop ebx
ret
test ebx, ebx
jle 0x4dcc56
test ebp, ebp
je 0x4dcc4a
pop esi
pop ebp
lea eax, [ecx + 0xc000]
pop edi
shl eax, 0x10
pop ebx
ret
neg ecx
pop esi
pop ebp
mov eax, ecx
pop edi
shl eax, 0x10
pop ebx
ret
test ebp, ebp
je 0x4dcc69
pop esi
pop ebp
mov eax, 0xc000
sub eax, ecx
pop edi
shl eax, 0x10
pop ebx
ret
pop esi
pop ebp
lea eax, [ecx + 0x8000]
pop edi
shl eax, 0x10
pop ebx
ret
Function at 0x4efa10
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
push esi
mov esi, dword [edi + 0xc0]
je 0x4efa4a
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4efa4a
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
mov eax, dword [edi + 0xc0]
mov esi, dword [edi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0xc0]
mov esi, dword [edi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop esi
ret

Function at 0x4efa70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
push esi
mov esi, dword [edi + 0xc0]
je 0x4efa98
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4efa98
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x4efaa1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov ecx, dword [edi + 0xc0]
mov dword [edi + 0x70], eax
pop esi
mov dword [esp + 4], ecx
jmp dword [sym.imp.KERNEL32.dll_ReleaseMutex]

Function at 0x4efac0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
push esi
mov esi, dword [0x72905c]
je 0x4efae8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4efae8
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x4efaf1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
add eax, 0x74
call fcn.004c3730
mov ecx, dword [0x72905c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret 8

Function at 0x4efc70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
push esi
mov esi, dword [0x72905c]
push edi
je 0x4efc99
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4efc99
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x4efca2
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00517460
mov esi, eax
mov ecx, dword [esi + 0x80]
xor eax, eax
test ecx, ecx
jbe 0x4efcd5
jmp 0x4efcc0
mov ecx, dword [esi + 0x78]
mov dword [ecx + eax*4], 0
mov ecx, dword [esi + 0x80]
inc eax
cmp eax, ecx
jb 0x4efcc0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov byte [esi + 0x1c], 1
call edi
cmp dword [esi + 0x30], eax
jne 0x4efd0d
call edi
cmp dword [esi + 0x30], eax
jne 0x4efd0d
mov dword [esi + 0x14], 3
call fcn.004fc230
push esi
xor eax, eax
mov byte [esi + 0xcd], 0
call fcn.005174e0
mov edx, dword [0x72905c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
ret
Function at 0x4f2520
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push edi
mov edi, ecx
jne 0x4f2536
pop edi
mov eax, 1
pop ebx
ret 0x10
push esi
lea esi, [edi + 0x1c]
mov eax, esi
call fcn.00412f10
mov eax, dword [esi]
mov ecx, dword [eax - 4]
add ecx, eax
cmp eax, ecx
jae 0x4f255d
lea esp, [esp]
cmp byte [eax], 0x2f
jne 0x4f2558
mov byte [eax], 0x5c
inc eax
cmp eax, ecx
jb 0x4f2550
mov bl, byte [esp + 0x18]
mov eax, dword [esp + 0x14]
and bl, 2
neg bl
mov dword [edi + 0x20], eax
sbb ebx, ebx
and ebx, 0x8000000
and eax, 3
add ebx, 0x8000080
dec eax
je 0x4f25aa
dec eax
je 0x4f259e
dec eax
je 0x4f2592
pop esi
pop edi
mov eax, 3
pop ebx
ret 0x10
mov ecx, 0xc0000000
mov edx, 4
jmp 0x4f25b4
mov ecx, 0xc0000000
mov edx, 2
jmp 0x4f25b4
mov ecx, 0x80000000
mov edx, 3
mov eax, dword [esi]
push 0
push ebx
push edx
push 0
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4f25d6
pop esi
pop edi
mov eax, 1
pop ebx
ret 0x10
push 0
push eax
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [edi + 0x24], eax
jge 0x4f25f7
fadd dword [0x715568]
fmul dword [0x715580]
mov eax, dword [esi]
sub esp, 8
fstp qword [esp]
push eax
push str.Opening__s___.1fKb_
mov eax, 2
call fcn.004f2460
mov ebx, dword [esp + 0x2c]
add esp, 0x10
test ebx, ebx
jbe 0x4f264e
cmp dword [edi + 0x20], 3
je 0x4f264e
push 0x20
call fcn.005354b8
add esp, 4
test eax, eax
je 0x4f2649
push ebx
mov ecx, edi
mov esi, eax
call fcn.004f2de0
pop esi
mov dword [edi + 0x18], eax
pop edi
xor eax, eax
pop ebx
ret 0x10
xor eax, eax
mov dword [edi + 0x18], eax
pop esi
pop edi
xor eax, eax
pop ebx
ret 0x10

Function at 0x4f27d0
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
push esi
mov esi, dword [edx + 4]
test esi, esi
jne 0x4f27e0
xor eax, eax
pop esi
ret 8
mov eax, dword [edx + 8]
test eax, eax
je 0x4f2812
mov eax, dword [esp + 0xc]
mov esi, dword [edx + 0x14]
push ebx
push edi
mov edi, dword [esp + 0x10]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x14]
pop edi
add ecx, eax
pop ebx
mov dword [edx + 0x14], ecx
pop esi
ret 8
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4f281f
mov eax, dword [ecx]
pop esi
jmp dword [eax + 8]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, ecx
pop esi
ret 8
Function at 0x4f2880
Capabilities:
Write file on windows

Disassembly:
mov edx, ecx
push esi
mov esi, dword [edx + 4]
test esi, esi
jne 0x4f2890
xor eax, eax
pop esi
ret 8
mov eax, dword [edx + 8]
test eax, eax
je 0x4f28c2
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, dword [edx + 0x14]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x14]
pop edi
add ecx, eax
pop ebx
mov dword [edx + 0x14], ecx
pop esi
ret 8
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x4f28cf
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x10]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, ecx
pop esi
ret 8

Function at 0x4f29f0
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
mov ebx, eax
push esi
lea eax, [esp + 8]
mov dword [esp + 8], 0x8cccd0
call fcn.00412f10
mov esi, dword [esp + 8]
mov ecx, dword [esi - 4]
add ecx, esi
cmp esi, ecx
mov eax, esi
jae 0x4f2a22
cmp byte [eax], 0x2f
jne 0x4f2a1d
mov byte [eax], 0x5c
inc eax
cmp eax, ecx
jb 0x4f2a15
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [esi - 8]
setne bl
test eax, eax
je 0x4f2a46
cmp eax, 0x8cccc8
je 0x4f2a46
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4f57d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax - 4]
add ebx, 0x38
test ecx, ecx
jne 0x4f58da
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.http_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4f5861
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
push eax
push eax
push eax
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
push eax
call ebp
test eax, eax
jne 0x4f5855
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x4f5855
lea ecx, [esp + 0x10]
push ecx
mov edi, ebx
call fcn.004f4730
mov edx, dword [esp + 0x18]
push eax
push 0
push 0
push 0
push edx
call ebp
mov eax, dword [esp + 0x10]
mov ecx, ebx
call fcn.004f4780
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, dword [ebx]
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x4f58d8
cmp byte [eax], 0x22
mov ecx, dword [eax - 4]
jne 0x4f58a1
cmp ecx, 1
jle 0x4f58d8
inc eax
push 0x22
push eax
call dword [sym.imp.MSVCR71.dll_strchr]
add esp, 8
test eax, eax
je 0x4f58d8
sub eax, dword [ebx]
test eax, eax
jl 0x4f58d8
lea ecx, [eax - 1]
mov edx, 1
lea edi, [esp + 0xc]
call fcn.004f2f20
jmp 0x4f58c8
test ecx, ecx
jle 0x4f58d8
push 0x20
push eax
call dword [sym.imp.MSVCR71.dll_strchr]
add esp, 8
test eax, eax
je 0x4f58d8
sub eax, dword [ebx]
test eax, eax
jl 0x4f58d8
mov ecx, eax
lea esi, [esp + 0xc]
mov edi, ebx
call fcn.00475fb0
mov ecx, ebx
call fcn.00412ec0
lea ecx, [esp + 0xc]
call fcn.00412fb0
pop edi
pop esi
mov eax, dword [ebx]
pop ebx
add esp, 8
ret