joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48dc0b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004c6980
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x48dc50
push ebx
call fcn.004c5d15
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x48dc85
push 0x36
push 0x4011377
push 6
call fcn.004c5d1b
add esp, 0xc
push 0x80000301
push 0
push 1
push OleUIBusyA
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x48dca4
mov eax, 0x859d3c
push eax
push 2
mov ebx, 0x138
call fcn.004c7190
add esp, 0x1c
mov dword [ebp - 8], eax
push 0x859d4d
push dword [ebp - 8]
call fcn.0048c82e
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x48dce8
push ebx
call fcn.004c5d15
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x48dd22
push 0x859d4d
push dword [ebp - 4]
mov ecx, 2
call fcn.0048d8ae
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x48dd1e
push ebx
call fcn.004c5d15
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x48dd3e
push eax
mov ebx, eax
call fcn.004885b1
inc eax
push eax
call fcn.004c5d0f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x48dd43
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x48dd54
push ebx
call fcn.004c5d15
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x48ec36
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x48ec76
push 0
push 0x4011381
push 6
call fcn.004c5d1b
add esp, 0xc
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x48eca5
push 0x33
push 0x4011381
push 6
call fcn.004c5d1b
add esp, 0xc
jmp 0x48ecaa
mov esp, ebp
pop ebp
ret 4
Function at 0x49d8a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004c6980
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x49d8ee
push ebx
call fcn.004c5d15
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.kernel32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x49d923
push 0x36
push 0x4011275
push 6
call fcn.004c5d1b
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x49d93f
push eax
mov ebx, eax
call fcn.004885b1
inc eax
push eax
call fcn.004c5d0f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x49d944
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x49d955
push ebx
call fcn.004c5d15
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4b0e34
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x4b0e3e
add dword [esp], 5
retf

Function at 0x4b0ec9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor eax, eax
cmp word [ecx], 0x5a4d
jne 0x4b0f49
dec esp
arpl word [ecx + 0x3c], ax
dec ecx
add eax, ecx
inc ecx
cmp dword [eax], 0x4550
jne 0x4b0f49
inc ebp
mov eax, dword [eax + 0x88]
inc ebp
test eax, eax
je 0x4b0f49
dec edx
lea edi, [ecx + eax]
inc esp
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x14]
test esi, esi
dec esi
lea edx, [ecx + eax]
je 0x4b0f49
movzx ebx, byte [edx]
inc ebp
xor ebx, ebx
inc ebp
mov ecx, dword [edx]
dec ecx
add ecx, ecx
inc ecx
cmp byte [ecx], bl
jne 0x4b0f3a
test bl, bl
je 0x4b0f4d
dec eax
mov eax, edx
jmp 0x4b0f26
inc ebp
test al, al
je 0x4b0f4d
dec eax
add eax, 1
dec ecx
mov eax, eax
dec ecx
sub eax, edx
inc edi
movzx eax, byte [eax + ecx]
inc esp
cmp al, byte [eax]
je 0x4b0f21
inc ecx
add ebx, 1
dec ecx
add edx, 4
inc ecx
cmp ebx, esi
jne 0x4b0f0d
xor eax, eax
pop ebx
pop esi
pop edi
ret
inc esp
cmp esi, ebx
je 0x4b0f47
mov edx, dword [edi + 0x24]
dec esi
lea eax, [ecx + ebx*2]
mov eax, dword [edi + 0x1c]
inc ecx
movzx edx, word [eax + edx]
dec eax
lea edx, [ecx + edx*4]
mov eax, dword [edx + eax]
dec eax
add eax, ecx
pop ebx
pop esi
pop edi
ret

Function at 0x4b2e94
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x4b2e9e
add dword [esp], 5
retf

Function at 0x4b2fd7
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x4b2fe1
add dword [esp], 5
retf

Function at 0x4b354e
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0x33
call 0x4b3558
add dword [esp], 5
retf
Function at 0x4b5da3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4b5de8
push 0x59
push 0x4011389
push 6
call fcn.004c5d1b
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004c86b0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b5e4b
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004c67d0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.user32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4b5e79
push 0xfb
push 0x4011389
push 6
call fcn.004c5d1b
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004c86b0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b5edc
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004c67d0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.user32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4b5f0a
push 0x19d
push 0x4011389
push 6
call fcn.004c5d1b
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004c86b0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b5f6d
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004c67d0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4b5f75
mov esp, ebp
pop ebp
ret

Function at 0x4c70f0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004d75f7
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4c715a
push esi
lea edi, [eax + 0x400]
call fcn.004d7620
push edi
call fcn.004d75f7
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4c712a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4c7176
push ecx
push esi
call fcn.004c9d40
add esp, 8
mov ebx, eax
push esi
call fcn.004d7620
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4c74b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret
Function at 0x4c7cc0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.004c6070
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x4c7d17
push ebx
push edi
call fcn.004c6180
push esi
mov ebx, esi
call fcn.004c6070
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x4c7cee
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4c7d60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4c7df2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4c7de4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4c7ddc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4c7da5
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4da251
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 0x4da293
call fcn.004dd320
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4da293
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4da28a
xor eax, eax
jmp 0x4da29b
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004da2a1
pop edi
pop esi
pop ebx
ret 4
Function at 0x4dafa3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4debe4
call fcn.004ccc14
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004dd320
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4dafe2
call fcn.004dd320
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4daff0
push edi
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4daffe
or eax, 0xffffffff
jmp 0x4db0e6
mov ecx, esi
call fcn.004daf19
mov dword [ebp - 0x14], eax
call fcn.004d8898
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4db035
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x4db035
push edi
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004d884c
push dword [ebp - 0x14]
call fcn.004d837e
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004dacb1
cmp eax, edi
je 0x4db0a8
test byte [esi + 0x24], 0x10
je 0x4db076
push 4
mov ecx, esi
pop ebx
call fcn.004d7d7e
test ah, 1
je 0x4db06e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004da3a3
cmp dword [esi + 0x1c], edi
je 0x4db0a8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004d7db2
jmp 0x4db0a8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4db0bc
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4db0d5
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4db0d5
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004daf53
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4e1a60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8a561c]
xor edx, edx
cmp eax, edx
jne 0x4e1a86
xor eax, eax
mov byte [eax + 0x8a551c], al
inc eax
cmp eax, 0x100
jl 0x4e1a6e
mov dword [0x8a561c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8a551c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e1b17
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e1aea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e1ab8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e1b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e1be3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e1bca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e8580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51560e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004e8ea0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x836564
call fcn.00506ce5
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4e8613
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00506ce5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4e860c
push 0
mov ecx, eax
call fcn.004df690
mov dword [esi + 0xc], eax
jmp 0x4e8615
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4e8615
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x509372
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5093aa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA_1]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005073ff
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005073d7
jmp 0x5093b6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50aa64
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 0x50aaa6
call fcn.00510564
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x50aaa6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x50aa9d
xor eax, eax
jmp 0x50aaae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050aab4
pop edi
pop esi
pop ebx
ret 4

Function at 0x510a94
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_1]
cmp dword [esp + 0x10], 0
jne 0x510ac2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x510ae0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005109fa
jmp 0x510ae0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x510ae0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005109fa
test edi, edi
mov eax, edi
jne 0x510aca
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x100023c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x68], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x100023de
inc ebx
push edi
je 0x10002437
pop eax
cmp dword [0x100153f0], 0
je 0x100023fc
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0x10003550
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov word [ebp - 0x64], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x62]
rep stosd dword es:[edi], eax
push 0x62
lea ecx, [ebp - 0x64]
push ecx
push 0x10015906
call fcn.1000a540
add esp, 0xc
test eax, eax
je 0x10002434
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x68]
add ecx, 4
call fcn.10010320
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0x10002290
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
push 0x1f4c
push str.gdiplus.dll
call fcn.10009cb0
add esp, 8
test eax, eax
jne 0x1000246d
mov ecx, dword [0x10015004]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002448
mov edx, 1
test edx, edx
je 0x10002515
mov ecx, dword [ebp - 0x68]
add ecx, 0x70
call fcn.10004cd0
mov eax, dword [0x10015010]
push eax
push 0x1f40
mov ecx, dword [ebp - 0x68]
add ecx, 0x70
call fcn.10004b20
test eax, eax
je 0x10002503
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x184], 0
je 0x100024bf
mov edx, dword [ebp - 0x68]
push edx
push 0
push 0x10003550
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov ecx, dword [ebp - 0x68]
call fcn.10002ee0
test eax, eax
je 0x100024e0
push 0
mov eax, dword [0x1001601c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10002503
mov ecx, dword [ebp - 0x68]
add ecx, 0x70
call fcn.10004cd0
push 0
push 0
push 0x5b6
mov ecx, dword [0x10016030]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
jmp 0x10002515
mov edx, dword [0x10015004]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000246d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002dd0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
mov dword [ebp - 0x204], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x10002df4
inc ebx
push edi
je 0x10002e4d
pop eax
mov byte [ebp - 0x100], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100140d4
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov byte [ebp - 0x200], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [0x1001501c]
sbb al, 0x50
add dword [eax], edx
push edx
lea eax, [ebp - 0x100]
push eax
push str._s_08x.ini
lea ecx, [ebp - 0x200]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x200]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10015278
call fcn.1000a900
add esp, 4
mov ecx, dword [ebp - 0x204]
call fcn.10003500
push 0x10015906
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10015806
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10015706
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10015a06
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10015406
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x1001601c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002ffa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x10002efe
inc ebx
push edi
je 0x10002f57
pop eax
mov eax, 1
test eax, eax
je 0x100030e1
mov dword [ebp - 8], 0
xor ecx, ecx
mov dword [ebp - 4], ecx
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x70
call fcn.10005840
test eax, eax
jne 0x10002f30
jmp 0x100030e1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x7532
ja 0x10002f6c
cmp dword [ebp - 0x10], 0x7532
je 0x1000309d
mov ecx, dword [ebp - 0x10]
sub ecx, 0x1f41
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x13
ja case.0x10002f65.11
invalid
mov edx, dword [ebp - 0x10]
jmp dword [edx*4 + 0x100030ed]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x14], 0x7534
cmp dword [ebp - 0x14], 0
je 0x100030a9
sub dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
je 0x100030b7
jmp case.0x10002f65.11
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x100026d0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov edx, dword [ebp - 4]
push edx
push 0
push 0x10002520
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov eax, dword [ebp - 4]
push eax
push 0
push 0x100025a0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x10002620
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov edx, dword [ebp - 4]
push edx
push 0
push 0x10002750
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov eax, dword [ebp - 4]
push eax
push 0
push 0x10002800
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0x10002880
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov edx, dword [ebp - 8]
push edx
push 0
push 0x100029d0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov eax, dword [ebp - 8]
push eax
push 0
push 0x10002a90
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0x10002ba0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0x10002c50
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.0x10002f65.11
mov ecx, dword [ebp - 0xc]
call fcn.10002dd0
xor eax, eax
jmp 0x100030e6
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10003730
xor eax, eax
jmp 0x100030e6
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10003730
xor eax, eax
jmp 0x100030e6
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x70
call fcn.10004d80
test eax, eax
jne 0x100030dc
jmp 0x100030e1
jmp 0x10002eff
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret