joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411dfa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411e1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041449d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x411e3d
test byte [esp + 8], 2
je 0x411e3d
call fcn.00414510
mov dword [eax], 0xd
call fcn.00414519
mov dword [eax], 5
jmp 0x411e16
xor eax, eax
ret

Function at 0x416b39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44a260
cmp edx, dword [eax]
je 0x416b5b
add eax, 8
inc ecx
cmp eax, 0x44a2f0
jl 0x416b4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44a260]
jne 0x416c89
mov eax, dword [0x4675c0]
cmp eax, 1
je 0x416c63
test eax, eax
jne 0x416b8c
cmp dword [0x449e24], 1
je 0x416c63
cmp edx, 0xfc
je 0x416c89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416bc3
lea eax, [ebp - 0x1a4]
push 0x43e71c
push eax
call fcn.00415140
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417920
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x416c06
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417920
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43e718
push edi
call fcn.00419890
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x43e6fc
push eax
call fcn.00415140
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00415150
lea eax, [ebp - 0xa0]
push 0x43e6f8
push eax
call fcn.00415150
push dword [esi + 0x44a264]
lea eax, [ebp - 0xa0]
push eax
call fcn.00415150
push 0x12010
lea eax, [ebp - 0xa0]
push 0x43e6d0
push eax
call fcn.004197fe
add esp, 0x2c
pop edi
jmp 0x416c89
lea eax, [ebp + 8]
lea esi, [esi + 0x44a264]
push 0
push eax
push dword [esi]
call fcn.00417920
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x41de70
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x41df20
dec eax
je 0x41def9
dec eax
je 0x41dea5
xor eax, eax
add esp, 0x94
ret
mov ecx, dword [esp + 4]
cmp ecx, 3
jne 0x41deba
mov eax, 4
add esp, 0x94
ret
cmp ecx, 4
jne 0x41decb
mov eax, 5
add esp, 0x94
ret
cmp ecx, 5
mov eax, 6
jne 0x41df25
mov eax, dword [esp + 8]
sub eax, 0
je 0x41dee1
dec eax
je 0x41deed
mov eax, 6
add esp, 0x94
ret
mov eax, 8
add esp, 0x94
ret
mov eax, dword [esp + 8]
test eax, eax
jne 0x41df0d
mov eax, 2
add esp, 0x94
ret
sub eax, 0x5a
neg eax
sbb eax, eax
and al, 0xfc
add eax, 7
add esp, 0x94
ret
mov eax, 1
add esp, 0x94
ret
Function at 0x41fac0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x1c]
sub eax, esi
test eax, eax
jle 0x41fb19
mov ecx, dword [edi + 0xc]
push 0
push eax
lea eax, [esi + ebx]
push eax
push ecx
call ebp
cmp eax, 0xffffffff
je 0x41fb11
test eax, eax
je 0x41fafb
add esi, eax
jmp 0x41fad7
push 0
push 0x44b304
push 0x44b2fc
push 0
call fcn.0041ee20
add esp, 0x10
mov dword [esp + 0x10], 0xffffd8ec
push 0
call fcn.0041276a
add esp, 4
mov dword [edi + 0x14c], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x41fb40
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
mov dword [esp + 4], 0x3e8
test eax, eax
jle 0x41fb54
mov dword [esp + 4], eax
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 4]
push 4
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
sbb eax, eax
and eax, 3
add eax, 0xfffffffd
ret 4
Function at 0x4201b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x13c
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov edi, dword [ebx + 0x1c8]
lea eax, [ebx + 0x158]
xor esi, esi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x4738], 1
cmp dword [ebx + 0x178], esi
je 0x420256
mov eax, dword [ebx + 0x174]
mov ebp, dword [eax]
mov eax, dword [ebx + 0x178]
dec eax
je 0x42021f
mov ecx, dword [ebx + 0x174]
lea edx, [eax*4]
push edx
lea eax, [ecx + 4]
push eax
push ecx
call fcn.00412060
add esp, 0xc
mov ecx, dword [ebx + 0x178]
dec ecx
cmp ebp, esi
mov dword [ebx + 0x178], ecx
je 0x4201eb
cmp dword [ebp], esi
jne 0x420261
push ebp
call fcn.0042d16c
mov eax, dword [ebx + 0xc]
add esp, 4
cmp eax, 0xffffffff
je 0x42024d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0xc], 0xffffffff
jmp 0x4201eb
mov dword [edi + 0x4730], esi
jmp 0x42036c
mov edx, edi
xor ecx, ecx
mov dword [edi + 0x4730], 1
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov eax, dword [ebp]
cmp eax, 0x4710
jle 0x4202b0
push eax
push 0x4710
lea eax, [esp + 0x28]
push str.Max:_d__clen:_d
push eax
call fcn.00411d7c
push esi
lea ecx, [esp + 0x34]
push str.too_big
push ecx
push esi
call fcn.0041ee20
add esp, 0x20
mov ecx, dword [ebp]
mov edi, dword [edi + 0x18]
mov edx, ecx
lea esi, [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
mov eax, dword [ebp]
lea edi, [esi + 0x14]
mov dword [edi], eax
call fcn.0042d16c
push 0
call fcn.0041276a
add esp, 8
mov dword [ebx + 0x14c], eax
push 0x4679f0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [ebx + 0xc]
push 0
push esi
lea ecx, [esp + 0x1c]
push 0
mov ebp, 1
push ecx
push ebp
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x42036c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x42036c
cmp eax, 0x2744
jle 0x42033b
cmp eax, 0x2746
jg 0x42033b
mov dword [esi + 0x4730], 0
jmp 0x420368
push eax
mov eax, dword [esi + 0x4740]
push eax
lea ecx, [esp + 0x28]
push str._d_send_err___d_n
push ecx
call fcn.00411d7c
push 0
lea edx, [esp + 0x34]
push str.kfskd
push edx
push 0
call fcn.0041ee20
add esp, 0x20
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
Function at 0x4210d0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x4679f4]
mov edx, dword [0x4679f8]
push esi
mov ecx, eax
xor esi, esi
sub ecx, edx
jne 0x421159
cmp eax, 0x14
jge 0x421159
mov eax, dword [0x467a00]
push esi
cmp eax, esi
jne 0x421106
call fcn.0041276a
add esp, 4
mov dword [0x467a00], eax
mov eax, esi
pop esi
pop ecx
ret
call fcn.0041276a
mov ecx, dword [0x467a00]
add esp, 4
sub eax, ecx
cmp eax, 2
jl 0x42115f
cmp ecx, esi
je 0x42115f
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push esi
push eax
push 0x421440
push esi
push esi
mov dword [0x467a00], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x421151
push 0x4679f4
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, esi
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret
mov dword [0x467a00], esi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4216d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x134
push ebx
push esi
mov esi, dword [esp + 0x140]
push edi
mov edx, esi
xor ecx, ecx
mov edi, dword [esi + 0x4748]
lea eax, [esi + 0x14]
xor ebx, ebx
mov dword [eax], 0x4710
mov dword [edx], ecx
push ebx
push esi
mov dword [edx + 4], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push eax
mov eax, dword [esi + 0x4740]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x4217b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4217b3
cmp eax, 0x2744
jle 0x421788
cmp eax, 0x2746
jg 0x421788
lea ecx, [edi + 8]
mov dword [esi + 0x4734], 1
push ecx
mov dword [esi + 0x4730], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp edi, ebx
je 0x421779
mov ecx, edi
call fcn.0041f2c0
push edi
call fcn.0042d16c
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x134
ret
mov edx, dword [esi + 0x4740]
push eax
push edx
lea eax, [esp + 0x1c]
push str._d_recv_err___d_n
push eax
call fcn.00411d7c
push ebx
lea ecx, [esp + 0x28]
push str.kfskd
push ecx
push ebx
call fcn.0041ee20
add esp, 0x20
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x134
ret
Function at 0x422ba0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x422c8b
dec eax
je 0x422c5a
dec eax
je 0x422bde
xor eax, eax
mov dword [0x467a70], eax
add esp, 0x94
ret
mov ecx, dword [esp + 4]
cmp ecx, 3
jne 0x422bf8
mov eax, 4
mov dword [0x467a70], eax
add esp, 0x94
ret
cmp ecx, 4
jne 0x422c0e
mov eax, 5
mov dword [0x467a70], eax
add esp, 0x94
ret
cmp ecx, 5
mov eax, 6
jne 0x422c90
mov eax, dword [esp + 8]
sub eax, 0
je 0x422c27
dec eax
je 0x422c49
dec eax
je 0x422c38
mov eax, 6
mov dword [0x467a70], eax
add esp, 0x94
ret
mov eax, 9
mov dword [0x467a70], eax
add esp, 0x94
ret
mov eax, 8
mov dword [0x467a70], eax
add esp, 0x94
ret
mov eax, dword [esp + 8]
test eax, eax
jne 0x422c73
mov eax, 2
mov dword [0x467a70], eax
add esp, 0x94
ret
sub eax, 0x5a
neg eax
sbb eax, eax
and al, 0xfc
add eax, 7
mov dword [0x467a70], eax
add esp, 0x94
ret
mov eax, 1
mov dword [0x467a70], eax
add esp, 0x94
ret

Function at 0x422f30
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
test eax, eax
je 0x422f49
push esi
call fcn.00412846
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x90000080
push 3
push 0
push 3
push closesocket
push esi
call ebp
cmp eax, 0xffffffff
je 0x422f77
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call fcn.00435bb4
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x422f9e
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x422fb2
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x422fc9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push 0
push 0x90000080
push 2
push 0
push 3
push 0xc0000000
push esi
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x423017
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push 0
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x423750
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x388
push ebx
push ebp
push esi
mov esi, dword [esp + 0x398]
mov ebx, ecx
push edi
lea eax, [esi + 0x14]
lea ecx, [esp + 0x26c]
push eax
push 0x446f04
push ecx
call fcn.00411d7c
add esp, 0xc
lea edx, [esp + 0x26c]
push 0
push 0x10000080
push 3
push 0
push 3
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4237b2
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x388
ret 4
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 0xfc]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x134]
mov ecx, 0x46
push edx
lea edi, [esp + 0x20]
push 0
push 0
rep movsd dword es:[edi], dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edi, [ebx + 0x101]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x39c]
not ecx
dec ecx
lea edi, [ecx + eax + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0xfc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
lea ecx, [esp + 0x10]
push edi
push ecx
push 0x250
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x24], edi
call fcn.00423a90
cmp dword [esp + 0x10], 0x250
je 0x423866
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x388
ret 4
push 0x7530
call fcn.0042d143
add esp, 4
mov esi, eax
mov dword [esp + 0x14], edi
jmp 0x42387d
xor edi, edi
lea ecx, [esp + 0x18]
push edi
push ecx
push 0x7530
push esi
push ebp
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4238db
lea edx, [esp + 0x10]
push 0
push edx
mov edi, eax
push eax
mov eax, dword [ebx + 0xfc]
push esi
push eax
mov ecx, ebx
mov dword [esp + 0x24], 0
call fcn.00423a90
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add edx, eax
cmp eax, edi
mov dword [esp + 0x14], edx
jne 0x4238d9
cmp dword [esp + 0x18], 0x7530
je 0x42387b
xor edi, edi
push esi
call fcn.0042d16c
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0xfc]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
mov dword [esp + 0x268], ecx
mov dword [esp + 0x10], edi
push edi
push edi
push edx
push eax
call esi
mov eax, dword [ebx + 0xfc]
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x24]
push 0x250
push edx
push eax
mov ecx, ebx
call fcn.00423a90
mov ecx, dword [ebx + 0xd0]
mov edx, dword [ebx + 0xfc]
push edi
push edi
push ecx
push edx
call esi
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0x44]
add eax, 0x250
lea ecx, [esp + 0x10]
add edx, eax
mov eax, dword [ebx + 0xfc]
mov dword [ebx + 0x44], edx
push edi
push ecx
lea edx, [ebx + 4]
push 0x44
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x24], edi
call fcn.00423a90
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x388
ret 4
Function at 0x423a90
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov dword [esp + 0x10], ecx
push ebp
call fcn.0042d143
mov esi, dword [esp + 0x20]
mov ecx, ebp
mov ebx, eax
mov eax, ecx
mov edi, ebx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
jbe 0x423adb
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + 0x100]
mov cl, byte [eax + ebx]
add cl, dl
mov byte [eax + ebx], cl
inc eax
cmp eax, ebp
jb 0x423ac4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push eax
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call fcn.0042d16c
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x426200
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
mov edx, dword [edi + 0x158]
push 0
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42622b
pop edi
pop esi
ret 8
mov eax, dword [edi + 0x154]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x42624d
xor ecx, ecx
test eax, eax
jbe 0x42624d
mov dl, byte [ecx + esi]
xor dl, 0x10
mov byte [ecx + esi], dl
inc ecx
cmp ecx, eax
jb 0x42623f
pop edi
pop esi
ret 8

Function at 0x426260
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
sub esp, 0x68
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x154]
test eax, eax
je 0x4262d2
mov esi, dword [esp + 0x7c]
push ebx
push esi
call fcn.0042d143
mov ebx, eax
add esp, 4
xor eax, eax
test esi, esi
mov dword [esp + 0x10], eax
jbe 0x4262a6
mov ebp, dword [esp + 0x7c]
mov cl, byte [eax + ebp]
xor cl, 0x10
mov byte [eax + ebx], cl
mov eax, dword [esp + 0x10]
inc eax
cmp eax, esi
mov dword [esp + 0x10], eax
jb 0x426290
mov eax, dword [edi + 0x158]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push ebx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov ebp, eax
call fcn.0042d16c
add esp, 4
pop ebx
jmp 0x4262fa
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [edi + 0x158]
lea ecx, [esp + 0xc]
push 0
push ecx
push esi
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x426378
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x42634b
mov ecx, dword [edi + 0x158]
cmp eax, 0x6f8
push ecx
push ebp
push esi
je 0x426332
mov edx, dword [esp + 0x18]
push eax
push edx
add edi, 0x174
push esi
push edi
push str.Write__s_Len_Error:____d__d__d__d__d__d
jmp 0x426368
mov edx, dword [esp + 0x18]
push 0x6f8
push edx
add edi, 0x174
push esi
push edi
push str.Write__s_Len_Error_U:____d__d__d__d__d__d
jmp 0x426368
mov ecx, dword [edi + 0x158]
mov edx, dword [esp + 0xc]
push ecx
push ebp
push esi
push 8
push edx
add edi, 0x174
push esi
push edi
push str.Write__s_Len_Error_M:____d__d__d__d__d__d
lea eax, [esp + 0x30]
push eax
call fcn.00411d7c
add esp, 0x24
or eax, 0xffffffff
pop edi
pop esi
pop ebp
add esp, 0x68
ret 8
Function at 0x426390
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
sub eax, 0
mov esi, ecx
je 0x426429
dec eax
je 0x42640e
dec eax
jne 0x426444
mov eax, dword [esi + 0x158]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 0x158]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push closesocket
push ecx
mov dword [esp + 0x24], closesocket
call edi
mov ecx, dword [esi + 0x158]
lea edx, [esp + 8]
push 0
push edx
lea eax, [esp + 0x1c]
push 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x158]
push 2
push 0
push edx
push eax
call edi
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x158]
push 1
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x158]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 8

Function at 0x427ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push esi
push edi
jmp 0x427eae
xor ecx, ecx
xor eax, eax
mov cl, byte [0x4647cc]
mov al, byte [0x4647c5]
shl ecx, 8
add ecx, eax
xor eax, eax
shl ecx, 8
mov al, byte [0x4647c2]
add ecx, eax
xor eax, eax
shl ecx, 8
mov al, byte [0x4647bf]
lea esi, [ecx + eax]
jmp 0x427ede
call fcn.00428010
movzx edi, ax
shl edi, 0x10
call fcn.00428010
movzx eax, ax
or edi, eax
mov dword [ebp - 0x1b0], edi
jmp 0x427efc
sub esi, 0xc5c10
jmp 0x427f05
mov dword [ebp - 0x1b4], esi
jmp 0x427f0e
mov eax, dword [ebp - 0x1b0]
xor dword [ebp - 0x1b4], eax
jmp 0x427f1d
cmp byte [0x4647a8], 0
je 0x427f73
jmp 0x427f29
call fcn.004280a0
jmp 0x427f31
mov byte [0x4647a8], 0
jmp 0x427f3b
call fcn.00428010
movzx esi, ax
shl esi, 0x10
call fcn.00428010
movzx eax, ax
add esi, eax
mov dword [0x46ddf0], esi
jmp 0x427f59
call fcn.00428010
movzx esi, ax
shl esi, 0x10
call fcn.00428010
movzx eax, ax
add eax, esi
mov dword [0x46ddf8], eax
jmp 0x427f76
mov eax, dword [0x4647ac]
test eax, eax
je 0x427fac
jmp 0x427f82
mov dword [ebp - 0x1b8], eax
jmp 0x427f8b
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x1bc]
push eax
push ecx
push 0
call fcn.00428150
add esp, 0xc
jmp 0x427fa6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
jmp 0x427faf
xor esi, esi
jmp 0x427fb4
inc esi
mov dword [ebp - 0x1b8], esi
jmp 0x427fbe
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x1bc]
push eax
push ecx
push 0
call fcn.00428150
add esp, 0xc
jmp 0x427fd9
test eax, eax
je 0x427feb
cmp esi, 3
jl 0x427fb1
jmp 0x427fe5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
jmp 0x427fee
mov ecx, dword [ebp - 0x1b8]
mov dword [0x4647ac], ecx
jmp 0x427ffd
jmp 0x428000
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4285f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
push edi
jmp 0x4285fb
push str.Microdog_Mutex_Object
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
jmp 0x42860f
test esi, esi
jne 0x42861e
mov eax, 0xea60
pop edi
pop esi
mov esp, ebp
pop ebp
ret
jmp 0x428621
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42865a
cmp eax, 0x80
je 0x42865a
cmp eax, 0x102
je 0x4286a0
mov edi, dword [ebp - 4]
test edi, edi
je 0x42864f
push esi
call fcn.004285d0
add esp, 4
jmp 0x428652
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
jmp 0x42865d
push 0
push 0x4000000
push 0
push 0
push 0
push 0
push str..TDMD.VXD
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x42867a
cmp eax, 0xffffffff
jne 0x428689
jmp 0x428682
mov edi, 0x7530
jmp 0x428642
jmp 0x42868c
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x428694
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x42869c
xor edi, edi
jmp 0x428642
jmp 0x4286a3
mov edi, 0xc350
jmp 0x428642
Function at 0x42b890
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004129b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42b95b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42b95b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42b90e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42b919
or bh, 8
and edi, 0x8000000
je 0x42b934
mov eax, dword [0x46f21c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42b95b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret