joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002950
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_j_]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10002970
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x1001fc58], ecx
mov dword [ebp - 8], 0
jbe 0x10002b4a
mov ebx, dword [0x1001a418]
lea ecx, [esi + 0xa]
mov esi, dword [0x1001a414]
mov dword [ebp - 4], ecx
cmp ecx, ebx
jae 0x10002a88
cmp esi, ecx
ja 0x10002a88
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [0x1001a41c]
jne 0x10002a74
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x10002b5b
mov edx, dword [0x1001a41c]
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002a74
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10002a55
xor eax, eax
jmp 0x10002a57
add eax, edx
cmp eax, ecx
jae 0x10002a5d
mov eax, ecx
push eax
mov ecx, 0x1001a414
call fcn.10003460
mov ebx, dword [0x1001a418]
mov esi, dword [0x1001a414]
imul edi, edi, 0x105
add edi, esi
test ebx, ebx
je 0x10002b1c
mov esi, edi
jmp 0x10002b06
mov edi, dword [0x1001a41c]
cmp ebx, edi
jne 0x10002aff
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x10002b5b
mov edx, edi
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002aff
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10002ae0
xor eax, eax
jmp 0x10002ae2
add eax, edx
cmp eax, ecx
jae 0x10002ae8
mov eax, ecx
push eax
mov ecx, 0x1001a414
call fcn.10003460
mov ebx, dword [0x1001a418]
mov esi, dword [0x1001a414]
test ebx, ebx
je 0x10002b1c
mov esi, dword [ebp - 4]
mov edi, ebx
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [0x1001a418]
mov esi, dword [0x1001a414]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ebx, 0x105
mov dword [0x1001a418], ebx
movzx edx, byte [edx + 8]
inc eax
add ecx, 0x105
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x100029d8
pop edi
pop esi
mov dword [0x1001fc48], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10002b70
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jv]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10002b90
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x1001fc5c], ecx
mov dword [ebp - 8], 0
jbe 0x10002d7a
mov edi, dword [0x1001a428]
lea eax, [esi + 0xa]
mov esi, dword [0x1001a424]
mov dword [ebp - 4], eax
cmp eax, edi
jae 0x10002cc1
cmp esi, eax
ja 0x10002cc1
mov ecx, eax
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [0x1001a42c]
jne 0x10002c96
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x10002d8b
mov edx, dword [0x1001a42c]
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002c96
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x10002c77
xor eax, eax
jmp 0x10002c79
add eax, edx
cmp eax, ecx
jae 0x10002c7f
mov eax, ecx
push eax
mov ecx, 0x1001a424
call fcn.10003550
mov edi, dword [0x1001a428]
mov esi, dword [0x1001a424]
mov eax, ebx
shl eax, 6
add eax, esi
add eax, ebx
test edi, edi
je 0x10002cb9
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x1001a428]
mov esi, dword [0x1001a424]
mov eax, dword [ebp - 4]
jmp 0x10002d55
mov ebx, dword [0x1001a42c]
cmp edi, ebx
jne 0x10002d3b
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x10002d8b
mov edx, ebx
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002d38
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x10002d19
xor eax, eax
jmp 0x10002d1b
add eax, edx
cmp eax, ecx
jae 0x10002d21
mov eax, ecx
push eax
mov ecx, 0x1001a424
call fcn.10003550
mov edi, dword [0x1001a428]
mov esi, dword [0x1001a424]
mov eax, dword [ebp - 4]
test edi, edi
je 0x10002d55
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x1001a428]
mov esi, dword [0x1001a424]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add edi, 0x41
mov dword [0x1001a428], edi
movzx edx, byte [edx + 8]
inc ecx
add eax, 0x41
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp ecx, edx
jl 0x10002bf8
pop edi
pop esi
mov dword [0x1001fc4c], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10002da0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10002dc0
mov cl, byte [eax + str.r_jj]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10002dc0
movzx edx, byte [esi + 4]
push edx
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xa
ja case.default.0x10002dfc
jmp dword [eax*4 + 0x10002e6c]
mov ecx, 0xe
jmp 0x10002e4e
mov ecx, 0xf
jmp 0x10002e4e
mov ecx, 0x10
jmp 0x10002e4e
mov ecx, 0x11
jmp 0x10002e4e
mov ecx, 0x12
jmp 0x10002e4e
mov ecx, 0x13
jmp 0x10002e4e
mov ecx, 0x14
jmp 0x10002e4e
mov ecx, 0x16
jmp 0x10002e4e
mov ecx, 0x18
jmp 0x10002e4e
mov ecx, 0x19
jmp 0x10002e4e
mov ecx, 0x15
push 0x1388
call fcn.100059b0
push eax
push 2
mov eax, 0x1001f700
call fcn.1000ab50
add esp, 0xc
pop ecx
ret

Function at 0x10002ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x1001fc74], 1
push edi
je 0x10002f48
mov ecx, dword [0x1001a3f4]
mov dword [0x1001fc3c], ebx
mov dword [0x1001fc40], ebx
mov dword [0x1001fc44], ebx
mov dword [0x1001fc48], ebx
mov dword [0x1001fc4c], ebx
mov dword [0x1001fc50], ebx
mov dword [0x1001fc54], ebx
mov dword [0x1001fc58], ebx
mov dword [0x1001fc5c], ebx
cmp ecx, dword [0x1001a3f8]
je 0x10002f0c
mov dword [0x1001a3f8], ecx
mov ecx, dword [0x1001a404]
cmp ecx, dword [0x1001a408]
je 0x10002f20
mov dword [0x1001a408], ecx
mov ecx, dword [0x1001a414]
cmp ecx, dword [0x1001a418]
je 0x10002f34
mov dword [0x1001a418], ecx
mov ecx, dword [0x1001a424]
cmp ecx, dword [0x1001a428]
je 0x10002f48
mov dword [0x1001a428], ecx
mov word [ebp - 0x3c], 0x38c1
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x10002f62
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x1001f4ac]
mov edx, dword [0x10013724]
mov byte [ebp - 0x3a], al
mov eax, dword [0x1001fc74]
mov dword [ebp - 0x38], eax
mov eax, dword [0x10013728]
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call fcn.1000ad00
push 0x100
mov esi, eax
push ebx
mov ecx, 9
lea edi, [ebp - 0x28]
push 0x10025060
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x100123f0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10002fb0
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
push ecx
push edx
push 0x10025060
push ebx
mov ecx, 0x1001a440
call fcn.10005210
movzx ecx, byte [ebp - 0x3b]
add esp, 0x18
lea edx, [ebp - 0x3c]
call fcn.10001850
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000da3b
mov esp, ebp
pop ebp
ret
Function at 0x10003ad0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x1001fbcc]
test eax, eax
je 0x10003b43
mov ecx, dword [eax]
cmp ecx, dword [0x1001fbe0]
jne 0x10003aef
mov dl, byte [0x1001fbe4]
cmp dl, byte [eax + 4]
je 0x10003b43
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003b10
mov cl, byte [eax + 0x100113f0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10003b10
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
call fcn.1000a730
mov eax, dword [0x1001fbc8]
test eax, eax
je 0x10003bb3
mov edx, dword [eax]
cmp edx, dword [0x1001fbd8]
jne 0x10003b61
mov cl, byte [0x1001fbdc]
cmp cl, byte [eax + 4]
je 0x10003bb3
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003b80
mov dl, byte [eax + 0x100114f0]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10025060], dl
inc eax
cmp eax, 0x100
jb 0x10003b80
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
call fcn.1000a730
mov eax, dword [0x1001fbc4]
test eax, eax
je 0x10003bf0
mov ecx, dword [eax]
cmp ecx, dword [0x1001fbd0]
jne 0x10003bd1
mov dl, byte [0x1001fbd4]
cmp dl, byte [eax + 4]
je 0x10003bf0
mov eax, 0x11
call fcn.1000adc0
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
call fcn.1000a730
pop ecx
ret
Function at 0x10004ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x1001a3f4]
mov dword [ebp - 0x48], eax
xor al, al
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x25], al
cmp edi, dword [0x1001a3f8]
je 0x10004dfe
mov ebx, dword [ebp - 0x38]
mov ecx, 4
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp - 0x44], ecx
cmp byte [edi], 0
jne 0x10004dcf
test al, al
jne 0x10004d55
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x30]
lea ebx, [ebp - 0x2c]
call fcn.10004e60
test al, al
je 0x10004dfe
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 0x25], 1
mov esi, dword [edi + 4]
mov eax, dword [ebx + 0x34]
mov edx, esi
sub edx, eax
push edx
push eax
push ebx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x10004dcc
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
push 0
sub ecx, dword [ebx + 0x34]
push 0
add ecx, esi
mov esi, dword [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10004dcc
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004dcc
mov edx, dword [ebp - 0x44]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
cmp ecx, 4
jb 0x10004e13
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10004dcc
sub ecx, 4
add eax, 4
jmp 0x10004db8
mov al, byte [ebp - 0x25]
add edi, 0x48
cmp edi, dword [0x1001a3f8]
jne 0x10004d23
test al, al
je 0x10004dfe
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000da3b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x34]
lea esi, [edi + 0x28]
mov edi, dword [ebp - 0x40]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1000da3b
mov esp, ebp
pop ebp
ret 4
Function at 0x10004e60
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push closesocket
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004eb3
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10004ec6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000da3b
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push 0
push eax
push ecx
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x10004efd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000da3b
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10004f3b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004f34
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004f34
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x10004f5b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000da3b
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x44]
mov dword [ebx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000da3b
mov esp, ebp
pop ebp
ret 8
Function at 0x100050f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001a658]
push ebx
push esi
push edi
test eax, eax
js 0x100051fd
cmp eax, 1
jge 0x100051fd
mov esi, eax
imul esi, esi, 0x214
add esi, 0x1001a444
push str.Logs
inc eax
lea ebx, [esi + 4]
push 0x100
mov dword [0x1001a658], eax
push ebx
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x100051fd
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push ebx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.log
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x100051d8
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000da3b
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100051fd
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000da3b
mov esp, ebp
pop ebp
ret
Function at 0x10005210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x1000544d
cmp eax, dword [ecx + 0x218]
jge 0x1000544d
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x1000544d
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x10005296
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x10005296
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10005353
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.log
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x1000531d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000da3b
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10005353
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000da3b
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
xor ecx, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100053e0
sub eax, edi
test eax, eax
jle 0x1000541d
lea ecx, [ecx]
mov dl, byte [ebp + ecx - 0x408]
xor dl, 0xe1
add dl, 0x12
lea eax, [ebp - 0x408]
mov byte [ebp + ecx - 0x408], dl
inc ecx
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005410
sub eax, edi
cmp ecx, eax
jl 0x100053f0
lea eax, [ebp - 0x408]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005426
push 0
sub eax, edx
lea ecx, [ebp - 0x81c]
push ecx
push eax
mov eax, dword [esi + 0x210]
lea edx, [ebp - 0x408]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000da3b
mov esp, ebp
pop ebp
ret
Function at 0x10005490
Capabilities:
Create thread

Disassembly:
cmp dword [0x1001fc68], 0
je 0x100054d6
mov eax, dword [0x1001fc00]
push 0x10024d2c
mov dword [0x1001a660], eax
xor eax, eax
push eax
push 0x1001a65c
push 0x100055c0
push eax
push eax
mov dword [0x1001a668], eax
mov dword [0x1001a66c], eax
mov dword [0x1001a670], eax
mov dword [0x1001a674], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001a664], eax
ret

Function at 0x100054e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp dword [0x1001fc88], 0
je 0x100054fd
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x1001fc88]
cmp eax, dword [ecx]
jne case.0x10005533.0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi*4 + 0x1001a668]
cmp eax, 0x1388
jb 0x10005528
call edi
mov dword [esi*4 + 0x1001a668], eax
mov dword [esi*4 + 0x1001a670], 0
mov eax, dword [0x1001fc6c]
pop edi
cmp eax, 5
ja case.default.0x10005533
jmp dword [eax*4 + 0x100055a0]
inc dword [esi*4 + 0x1001a670]
cmp dword [esi*4 + 0x1001a670], 0x19
jmp 0x1000558d
inc dword [esi*4 + 0x1001a670]
cmp dword [esi*4 + 0x1001a670], 0x14
jmp 0x1000558d
inc dword [esi*4 + 0x1001a670]
cmp dword [esi*4 + 0x1001a670], 0xf
jmp 0x1000558d
inc dword [esi*4 + 0x1001a670]
cmp dword [esi*4 + 0x1001a670], 0xa
jmp 0x1000558d
inc dword [esi*4 + 0x1001a670]
cmp dword [esi*4 + 0x1001a670], 5
jbe case.0x10005533.0
push 0
push 0
push 9
call fcn.10003010
add esp, 0xc
ret

Function at 0x10005770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100057e3
lea ecx, [ebp - 8]
push ecx
push 0x1001fdac
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.LangSelection
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100057d9
push 0x100138a4
push 0x10
push 0x1001fdac
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret