joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41300f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
inc dword [ebp + 0xc]
lea eax, [ebp - 0x348]
push str._s
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x413158
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x244], 0x10
je 0x4130c5
cmp byte [ebp - 0x218], 0x2e
je 0x413142
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x4283c0
push eax
call edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0041300f
add esp, 0x20
test eax, eax
je 0x413142
cmp dword [ebp + 0xc], 2
jg 0x413142
xor esi, esi
inc esi
jmp 0x41315a
cmp dword [ebp + 0x10], 0
je 0x4130f5
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp + 0x14], eax
jge 0x413142
sub eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp + eax - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x413142
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4283c8
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413065
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x413662
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004127aa
pop ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.0041251e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop esi
ret

Function at 0x413eb1
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
mov edi, 0x413e51
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call esi
cmp dword [ebp - 0xc], ebx
jne 0x413ef3
cmp dword [ebp - 4], ebx
je 0x413ef3
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
Function at 0x414455
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
and dword [ebp - 4], 0
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414489
xor eax, eax
jmp 0x4144ce
push 0x258
lea eax, [ebp - 0x260]
push eax
push 0x42d2b8
call fcn.00411df4
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x414873
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2810
call fcn.00420220
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0x14]
mov esi, eax
lea eax, [ebp - 0x2810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00420090
add esp, 0xc
push dword [ebp + 0x10]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
lea eax, [ebp - 0x2810]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
leave
ret
Function at 0x41576c
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x94
push ebx
push edi
push 0x1f
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x20], bl
pop ecx
lea edi, [ebp - 0x1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x70]
push eax
mov dword [ebp + 0x70], ebx
call fcn.00414fec
test al, al
pop ecx
je 0x4157af
push 0x80
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4157b6
xor eax, eax
jmp 0x415874
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
jne 0x4157ce
xor eax, eax
jmp 0x415873
mov eax, dword [esi + 0xc]
cmp dword [eax], ebx
je 0x415870
xor edi, edi
cmp edi, 0x28
jge 0x415870
movsx ecx, word [esi + 0xa]
push ecx
push dword [edi + eax]
lea eax, [ebp + 0x64]
push eax
call fcn.0041fd50
push dword [ebp + 0x64]
call fcn.00413543
add esp, 0x10
test al, al
je 0x415861
mov al, byte [ebp + 0x64]
cmp al, byte [ebp + 0x70]
jne 0x415861
push 1
call fcn.00415347
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004201a8
call fcn.00412015
and eax, 7
add eax, 6
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00411f79
add esp, 0xc
push ebx
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x64]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0x7c]
push 0x428d9c
push dword [ebp + 0x7c]
push 0x428710
call fcn.004155e9
add esp, 0x20
mov eax, dword [esi + 0xc]
add edi, 4
cmp dword [edi + eax], ebx
jne 0x4157db
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x418813
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x418827
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419ac3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x14]
xor edx, edx
cmp edi, edx
je 0x419bdd
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
push ebx
push esi
mov dword [ebp - 4], edx
je 0x419b01
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx cx, bl
mov word [ebp - 4], cx
add edi, 7
shr eax, 3
shr edi, 3
xor esi, esi
test edi, edi
mov dword [ebp - 0xc], eax
jle 0x419bdb
lea eax, [edi - 1]
cmp esi, eax
je 0x419b32
mov eax, dword [ebp + 0x10]
movzx ax, byte [esi + eax]
xor ecx, ecx
mov ch, byte [ebp - 4]
xor eax, ecx
add edx, 8
jmp 0x419b62
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 8], 8
je 0x419b44
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [esi + eax]
mov ebx, dword [ebp - 4]
mov cl, 8
sub cl, byte [ebp - 8]
shr al, cl
mov ecx, dword [ebp - 8]
shl ebx, cl
movzx ax, al
or eax, ebx
add edx, ecx
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
setne cl
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp edx, 8
setge al
test ecx, eax
jne 0x419b96
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
sete cl
xor ebx, ebx
test edx, edx
setg bl
test ebx, ecx
je 0x419bd2
push 8
pop eax
cmp edx, eax
mov dword [ebp - 8], eax
jg 0x419ba3
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
mov cl, dl
sub cl, byte [ebp - 8]
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 8]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 8]
sar eax, cl
mov ecx, dword [ebp - 0xc]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov byte [ecx + eax], bl
jmp 0x419b72
inc esi
cmp esi, edi
jl 0x419b1a
pop esi
pop ebx
pop edi
leave
ret

Function at 0x41a427
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x41a4bb
push ebx
push edi
push esi
call fcn.0040fb14
pop ecx
mov ebx, eax
push ebx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4283c8
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 4]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
push ebx
call fcn.0040fb5b
push esi
push str.Higher:__x_n
call fcn.00420f1d
push edi
push str.Lower:__x_n
call fcn.00420f1d
mov ecx, dword [ebp + 0xc]
mov eax, esi
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
movzx eax, si
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
mov eax, edi
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
movzx eax, di
add esp, 0x14
mov dword [ecx], eax
xor eax, eax
pop edi
inc eax
pop ebx
pop esi
leave
ret
Function at 0x41a5c9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
push 0x41
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x210], bl
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
push 0x41
pop ecx
mov byte [ebp - 0x108], bl
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041a4f5
test eax, eax
pop ecx
jne 0x41a60f
xor al, al
jmp 0x41a64e
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.0041320a
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x108]
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x41ccea
Capabilities:
Get geographical location

Disassembly:
push edi
mov edi, dword [esp + 8]
push 0x428458
push edi
call fcn.00420390
test eax, eax
pop ecx
pop ecx
je 0x41ce9b
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.PSTN_BALANCE
push edi
mov byte [eax], 0
lea ebx, [eax + 1]
call esi
test eax, eax
je 0x41ce93
push str.FULLNAME
push edi
call esi
test eax, eax
jne 0x41cd3f
push ebx
push 0x457fcc
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x41ce93
push str.BIRTHDAY
push edi
call esi
test eax, eax
je 0x41ce93
push 0x4291e0
push edi
call esi
test eax, eax
jne 0x41cd83
mov bl, byte [ebx]
cmp bl, 0x4d
jne 0x41cd6e
mov byte [0x4580d5], 1
jmp 0x41ce93
cmp bl, 0x46
jne 0x41ce93
mov byte [0x4580d5], 2
jmp 0x41ce93
push str.COUNTRY
push edi
call esi
test eax, eax
jne 0x41cd9c
push 3
push ebx
push 0x4580d9
jmp 0x41ce73
push str.IPCOUNTRY
push edi
call esi
test eax, eax
jne 0x41cdcf
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 3
push ebx
mov esi, 0x4580dc
push esi
call edi
push esi
call fcn.0041da47
pop ecx
push 2
push esi
push 0x456379
call edi
jmp 0x41ce93
push str.CITY
push edi
call esi
test eax, eax
jne 0x41cde8
push 0x20
push ebx
push 0x4580ff
jmp 0x41ce73
push str.PHONE_HOME
push edi
call esi
test eax, eax
jne 0x41cdfe
push 0x10
push ebx
push 0x45811f
jmp 0x41ce73
push str.PHONE_OFFICE
push edi
call esi
test eax, eax
jne 0x41ce14
push 0x10
push ebx
push 0x45812f
jmp 0x41ce73
push str.PHONE_MOBILE
push edi
call esi
test eax, eax
jne 0x41ce2a
push 0x10
push ebx
push 0x45813f
jmp 0x41ce73
push str.HOMEPAGE
push edi
call esi
test eax, eax
jne 0x41ce43
push 0x100
push ebx
push 0x45814f
jmp 0x41ce73
push str.ABOUT
push edi
call esi
test eax, eax
jne 0x41ce5c
push 0x100
push ebx
push 0x45824f
jmp 0x41ce73
push str.MOOD_TEXT
push edi
call esi
test eax, eax
jne 0x41ce7b
push 0x100
push ebx
push 0x45834f
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x41ce93
push str.TIMEZONE
push edi
call esi
test eax, eax
jne 0x41ce99
push ebx
call fcn.0042046e
pop ecx
mov dword [0x458450], eax
inc dword [0x4586d4]
pop esi
pop ebx
pop edi
ret
Function at 0x41d7db
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push edi
push 0x3f
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x100], bl
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.SkypeControlAPIAttach
mov byte [0x446240], 1
mov byte [0x457e00], 1
stosb byte es:[edi], al
call esi
push str.SkypeControlAPIDiscover
mov dword [0x457eac], eax
call esi
mov dword [0x457eb0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x40
call dword [0x455a58]
cmp dword [0x457eac], ebx
mov dword [0x457e20], eax
je 0x41d920
cmp dword [0x457eb0], ebx
je 0x41d920
push ebx
push ebx
push ebx
push 0x41d657
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41d874
push 0xa
call esi
cmp dword [0x457e1c], ebx
je 0x41d870
push ebx
push 0x3e8
push ebx
push ebx
push dword [0x457e1c]
push dword [0x457eb0]
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
xor edi, edi
jmp 0x41d8a9
cmp edi, 0x64
jge 0x41d8e1
push 0xa
inc edi
call esi
cmp dword [0x457eb4], ebx
je 0x41d89f
jmp 0x41d8e1
lea eax, [ebp - 0x100]
push eax
push dword [0x4571b8]
call fcn.00412a02
test eax, eax
pop ecx
pop ecx
jne 0x41d8d2
push ebx
call fcn.0040b89b
pop ecx
push ebx
call fcn.00412f02
mov dword [esp], 0x2710
call esi
cmp byte [0x4606e0], bl
jne 0x41d8b3
push dword [0x457e20]
push 0x457e28
call dword [sym.imp.USER32.dll_UnregisterClassA]
push dword [0x457e20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x457e1c]
cmp eax, ebx
mov dword [0x457e20], ebx
je 0x41d920
push ebx
push ebx
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 0x100]
push eax
push dword [0x4571b8]
call fcn.00412a02
test eax, eax
pop ecx
pop ecx
jne 0x41d93f
push ebx
call fcn.0040b89b
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e54a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [esi], eax
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov dword [esi + 0xac], ebx
mov dword [esi + 0x10], 0x64
mov dword [esi + 0x14], ebx
mov byte [esi + 0x27], bl
push dword [eax + 4]
call fcn.0041c061
mov edi, eax
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0041c0b5
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x41e5bf
call fcn.0041293a
mov ecx, dword [0x458450]
sub ecx, dword [edi + 8]
lea eax, [eax + ecx - 0x15180]
cmp eax, 0x4f1a00
ja 0x41e5bf
cmp dword [ebp + 8], 3
jb 0x41e5bf
mov byte [esi + 0x24], bl
jmp 0x41e5c3
mov byte [esi + 0x24], 1
cmp edi, ebx
je 0x41e5ef
call fcn.0041293a
mov ecx, dword [0x458450]
sub ecx, dword [edi + 8]
lea eax, [eax + ecx - 0x15180]
cmp eax, 0x7080
ja 0x41e5ef
cmp dword [ebp + 8], 0x64
jbe 0x41e5ef
mov byte [esi + 0x25], 1
jmp 0x41e5f2
mov byte [esi + 0x25], bl
cmp edi, ebx
je 0x41e618
call fcn.0041293a
mov ecx, dword [0x458450]
sub ecx, dword [edi + 8]
lea eax, [eax + ecx - 0x15180]
cmp eax, 0x5dc
ja 0x41e618
mov byte [esi + 0x26], 1
jmp 0x41e61b
mov byte [esi + 0x26], bl
mov eax, dword [esi]
push dword [eax + 4]
lea eax, [ebp - 0x40]
push 0x4296a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x40]
push eax
call fcn.0041b5b0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
push 0x7d0
jmp 0x41e658
lea eax, [ebp - 0x40]
push eax
call fcn.0041b5b0
mov dword [esp], 0x1388
call edi
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0041b770
cmp eax, ebx
pop ecx
mov dword [esi + 4], eax
je 0x41e648
mov ecx, dword [eax + 0xc]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x18], ebx
push dword [eax + 0xc]
call fcn.0041b89a
cmp eax, ebx
pop ecx
je 0x41e68b
mov eax, dword [eax + 8]
mov dword [esi + 0x18], eax
mov ecx, esi
call fcn.0041e3be
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], 0x2710
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x41e71e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
je 0x41e7ed
push 0x428720
push dword [ebp + 8]
call fcn.00412073
test eax, eax
pop ecx
pop ecx
jne 0x41e7ed
cmp byte [ebp + 0xc], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov byte [ebp - 0x400], al
mov ecx, 0xff
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x41e78a
mov ecx, ebx
call fcn.0041e6a5
call esi
cmp eax, dword [ebx + 0x14]
jae 0x41e78a
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e776
push dword [ebp + 8]
mov eax, dword [ebx + 4]
push dword [eax]
lea eax, [ebp - 0x400]
push str.CHATMESSAGE__s__s
push 0x3e8
push eax
call fcn.00420f4e
lea eax, [ebp - 0x400]
push eax
call fcn.0041b5b0
add esp, 0x18
call esi
push eax
call fcn.004201a8
cmp byte [ebp + 0xc], 0
pop ecx
je 0x41e7eb
call fcn.004201b2
cdq
mov ecx, 0x190
idiv ecx
push dword [ebp + 8]
mov edi, edx
add edi, dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
imul edi, eax
call esi
add edi, eax
mov dword [ebx + 0x14], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x420fca
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x429798
call fcn.0042076c
mov edi, 0x94
mov eax, edi
call fcn.00420220
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4608f0], ecx
mov eax, dword [esi + 4]
mov dword [0x4608fc], eax
mov edx, dword [esi + 8]
mov dword [0x460900], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4608f4], esi
cmp ecx, 2
je 0x42102a
or esi, 0x8000
mov dword [0x4608f4], esi
shl eax, 8
add eax, edx
mov dword [0x4608f8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x421065
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421065
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42107d
cmp eax, 0x20b
je 0x42106a
mov dword [ebp - 0x1c], esi
jmp 0x421091
cmp dword [ecx + 0x84], 0xe
jbe 0x421065
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42108b
cmp dword [ecx + 0x74], 0xe
jbe 0x421065
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00423fcd
pop ecx
test eax, eax
jne 0x4210bd
cmp dword [0x4608d0], 1
jne 0x4210aa
call fcn.00423782
push 0x1c
call fcn.0042360b
push 0xff
call fcn.004217f5
pop ecx
pop ecx
call fcn.00423f2b
mov dword [ebp - 4], esi
call fcn.00423d80
test eax, eax
jge 0x4210d6
push 0x1b
call fcn.00420fa5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x461ed0], eax
call fcn.00423c5e
mov dword [0x4608c8], eax
call fcn.00423bbc
test eax, eax
jge 0x4210fc
push 8
call fcn.00420fa5
pop ecx
call fcn.00423989
test eax, eax
jge 0x42110d
push 9
call fcn.00420fa5
pop ecx
push 1
call fcn.00421825
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x421123
push eax
call fcn.00420fa5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042392c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x421144
movzx eax, word [ebp - 0x40]
jmp 0x421147
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040cace
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x421165
push edi
call fcn.00421950
call fcn.00421972
jmp 0x421197
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004207a7
ret
Function at 0x42188f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x460930], esi
push edi
jne 0x4218af
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x46092c], esi
mov byte [0x460928], al
jne 0x421915
mov ecx, dword [0x461ec8]
test ecx, ecx
je 0x4218f6
mov eax, dword [0x461ec4]
sub eax, 4
cmp eax, ecx
jmp 0x4218ef
mov eax, dword [eax]
test eax, eax
je 0x4218e1
call eax
mov eax, dword [0x461ec4]
sub eax, 4
cmp eax, dword [0x461ec8]
mov dword [0x461ec4], eax
jae 0x4218d9
mov eax, 0x42c02c
mov esi, 0x42c034
cmp eax, esi
mov edi, eax
jae 0x421915
mov eax, dword [edi]
test eax, eax
je 0x42190e
call eax
add edi, 4
cmp edi, esi
jb 0x421906
mov eax, 0x42c038
mov esi, 0x42c03c
cmp eax, esi
mov edi, eax
jae 0x421934
mov eax, dword [edi]
test eax, eax
je 0x42192d
call eax
add edi, 4
cmp edi, esi
jb 0x421925
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x42194e
push dword [ebp + 8]
mov dword [0x460930], 1
call fcn.004217f5
pop ebp
ret

Function at 0x421b2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x421b4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425199
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x421b6d
test byte [esp + 8], 2
je 0x421b6d
mov dword [0x4608e4], 0xd
mov dword [0x4608e8], 5
jmp 0x421b48
xor eax, eax
ret
Function at 0x4229c2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00420220
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x422a5d
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4608f0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x422a5d
cmp eax, 1
je 0x422a7e
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x422a5d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x422a2a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x422a59
xor eax, eax
inc eax
jmp 0x422a9d
cmp edi, eax
jae 0x422a61
xor eax, eax
jmp 0x422a9d
cmp eax, esi
jae 0x422a68
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4608f0]
jmp 0x422a81
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret