joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466197
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x628aac], 0
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
jne 0x4661ef
test eax, eax
jne 0x4661bd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00447870
pop esi
ret 0xc
cmp eax, 1
jne 0x466312
cmp dword [esi + 0x30], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
mov ecx, esi
jne 0x4661e6
call fcn.004478b0
pop esi
ret 0xc
call fcn.00447920
pop esi
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
shr ebp, 4
push edi
test eax, eax
jne 0x466249
test ebp, ebp
je 0x46630f
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea ecx, [ecx]
dec ebp
cmp dword [esi + 0x30], 0
jne 0x466228
mov eax, dword [0x551e10]
push eax
push edi
push ebx
mov ecx, esi
call fcn.00465c10
jmp 0x466238
mov ecx, dword [0x551e24]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.00465ed0
add edi, 0x10
add ebx, 0x10
test ebp, ebp
jne 0x466210
pop edi
pop ebp
pop ebx
pop esi
ret 0xc
cmp eax, 1
jne 0x46630f
cmp dword [esi + 0x30], 0
jne 0x4662bb
test ebp, ebp
je 0x46630f
mov ebx, dword [esp + 0x14]
lea edi, [esi + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor dword [edi], edx
mov ecx, dword [eax + 4]
xor dword [esi + 0x14], ecx
mov edx, dword [eax + 8]
xor dword [esi + 0x18], edx
mov eax, dword [eax + 0xc]
xor dword [esi + 0x1c], eax
mov ecx, dword [0x551e10]
push ecx
push edi
push edi
mov ecx, esi
dec ebp
call fcn.00465c10
mov edx, dword [edi]
add dword [esp + 0x18], 0x10
mov dword [ebx], edx
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov ecx, dword [edi + 8]
mov dword [ebx + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [ebx + 0xc], edx
add ebx, 0x10
test ebp, ebp
jne 0x466267
pop edi
pop ebp
pop ebx
pop esi
ret 0xc
test ebp, ebp
je 0x46630f
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [0x551e24]
push eax
push edi
push ebx
mov ecx, esi
dec ebp
call fcn.00465ed0
mov ecx, dword [esi + 0x10]
xor dword [edi], ecx
mov edx, dword [esi + 0x14]
xor dword [edi + 4], edx
mov eax, dword [esi + 0x18]
xor dword [edi + 8], eax
mov ecx, dword [esi + 0x1c]
xor dword [edi + 0xc], ecx
mov edx, dword [ebx]
mov dword [esi + 0x10], edx
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 0x18], ecx
mov edx, dword [ebx + 0xc]
add edi, 0x10
add ebx, 0x10
mov dword [esi + 0x1c], edx
test ebp, ebp
jne 0x4662c7
pop edi
pop ebp
pop ebx
pop esi
ret 0xc

Function at 0x467440
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x467461
mov dword [esi + 4], 0x3ea
pop esi
ret 8
Function at 0x467550
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
movd mm3, edi
movd mm4, ebx
movd mm5, esi
movd mm6, ebp
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebp, dword [ebp + 0x10]
sub esp, 4
cmp ebp, 0
je 0x4675c0
mov dword [esp], ebp
movzx edx, byte [ecx + 1]
lea ebp, [ecx + 2]
movzx ecx, byte [ecx]
movzx eax, byte [ebp + ecx]
add edx, eax
and edx, 0xff
movzx ebx, byte [ebp + edx]
mov byte [ebp + ecx], bl
mov byte [ebp + edx], al
inc ecx
and ecx, 0xff
add eax, ebx
and eax, 0xff
movzx ebx, byte [ebp + eax]
movzx eax, byte [ebp + ecx]
xor bl, byte [esi]
inc esi
mov byte [edi], bl
inc edi
dec dword [esp]
jne 0x467582
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
movd ebp, mm6
movd esi, mm5
movd ebx, mm4
movd edi, mm3
mov esp, ebp
pop ebp
emms
ret 0xc
Function at 0x478d55
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
test ebp, ebp
je 0x478ee7
push ebx
push edi
mov edi, 0x10
sub edi, dword [esi + 0x28]
cmp edi, ebp
jb 0x478d70
mov edi, ebp
mov eax, dword [esi + 0x20]
mov ebx, dword [esp + 0x14]
add eax, dword [esi + 0x28]
push edi
push ebx
push eax
call fcn.0047edd0
add dword [esi + 0x28], edi
mov eax, dword [esi + 0x28]
add ebx, edi
add esp, 0xc
sub ebp, edi
mov dword [esp + 0x14], ebx
cmp eax, 0x10
jne 0x478edd
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 8]
mov dword [esi + 0x28], 0
mov edx, dword [ecx]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 4]
add eax, 0x10
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x14]
mov dl, byte [edx + 0xf]
xor eax, eax
jmp 0x478dd0
mov ecx, dword [esi + 8]
mov bl, byte [ecx + eax + 0x10]
xor bl, byte [ecx + eax]
add ecx, eax
mov byte [ecx + 0x20], bl
mov edi, dword [esi + 0x20]
movzx edi, byte [edi + eax]
mov ecx, dword [esi + 0x14]
movzx edx, dl
xor edi, edx
movzx edx, byte [edi + 0x4e9738]
xor byte [ecx + eax], dl
mov dl, byte [ecx + eax]
add ecx, eax
inc eax
cmp eax, 0x10
jl 0x478dd0
xor dl, dl
xor ebx, ebx
xor eax, eax
lea esp, [esp]
mov ecx, dword [esi + 8]
movzx edx, dl
movzx edx, byte [edx + 0x4e9738]
xor byte [ecx + eax], dl
mov edx, dword [esi + 8]
add ecx, eax
mov cl, byte [ecx]
movzx ecx, cl
movzx ecx, byte [ecx + 0x4e9738]
xor byte [edx + eax + 1], cl
mov ecx, dword [esi + 8]
lea edx, [edx + eax + 1]
mov dl, byte [edx]
movzx edx, dl
movzx edx, byte [edx + 0x4e9738]
xor byte [ecx + eax + 2], dl
mov edx, dword [esi + 8]
lea ecx, [ecx + eax + 2]
mov cl, byte [ecx]
movzx ecx, cl
movzx ecx, byte [ecx + 0x4e9738]
xor byte [edx + eax + 3], cl
mov ecx, dword [esi + 8]
lea edx, [edx + eax + 3]
mov dl, byte [edx]
movzx edx, dl
movzx edx, byte [edx + 0x4e9738]
xor byte [ecx + eax + 4], dl
mov edx, dword [esi + 8]
lea ecx, [ecx + eax + 4]
mov cl, byte [ecx]
movzx ecx, cl
movzx ecx, byte [ecx + 0x4e9738]
xor byte [edx + eax + 5], cl
mov ecx, dword [esi + 8]
lea edx, [edx + eax + 5]
mov dl, byte [edx]
movzx edx, dl
movzx edx, byte [edx + 0x4e9738]
xor byte [ecx + eax + 6], dl
mov edx, dword [esi + 8]
lea ecx, [ecx + eax + 6]
mov cl, byte [ecx]
movzx ecx, cl
movzx ecx, byte [ecx + 0x4e9738]
xor byte [edx + eax + 7], cl
lea edx, [edx + eax + 7]
mov dl, byte [edx]
add eax, 8
cmp eax, 0x30
jl 0x478e10
add dl, bl
inc ebx
cmp ebx, 0x12
jl 0x478e07
test ebp, ebp
jne 0x478d62
pop edi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x47bf65
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x6264e4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047bea4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0047d050
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47bfb4
cmp dword [ebp - 0x1c], 5
jb 0x47bfcc
jmp 0x47bfc8
cmp dword [ebp - 0x10], 1
jne 0x47bfcc
cmp dword [ebp - 0x1c], 4
ja 0x47bfc8
jne 0x47bfcc
cmp dword [ebp - 0x18], 0
jbe 0x47bfcc
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4ec4a4
call fcn.0047bd57
test eax, eax
jge 0x47bfed
mov byte [0x629ac0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047d9e4
add ebp, 0x78
leave
ret

Function at 0x47d9e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6264e4]
jne 0x47d9ee
repz ret
jmp fcn.0048caa0
Function at 0x4813c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4813ff
cmp dword [ebp + 0x14], edi
je 0x4813ff
cmp ecx, edi
jne 0x481406
call fcn.0048209e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0047d285
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x48141a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x48143b
cmp ebx, 0xffffffff
je 0x48142a
push ebx
push edi
push ecx
call fcn.0047d050
add esp, 0xc
cmp esi, edi
je 0x4813e7
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4813e7
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x481457
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x48145e
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x48154f
test word [esi + 0xc], 0x10c
je 0x4814b2
mov eax, dword [esi + 4]
test eax, eax
je 0x4814b2
jl 0x4815b0
cmp ebx, eax
mov edi, ebx
jb 0x481483
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x481557
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047ceb9
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x481547
cmp ebx, dword [ebp - 0xc]
jb 0x48151f
cmp dword [ebp - 0xc], 0
je 0x4814dc
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4814d1
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4814d8
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4814e7
mov eax, closesocket
cmp ebx, eax
ja 0x4814e7
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x481583
push eax
push dword [ebp - 8]
push esi
call fcn.00493659
pop ecx
push eax
call fcn.0049355c
add esp, 0xc
test eax, eax
je 0x4815c2
cmp eax, 0xffffffff
je 0x4815b0
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x481547
push esi
call fcn.00492e7b
cmp eax, 0xffffffff
pop ecx
je 0x4815b4
cmp dword [ebp - 4], 0
je 0x481583
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x481466
mov eax, dword [ebp + 0x14]
jmp 0x481401
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x48156e
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0047d050
add esp, 0xc
call fcn.0048209e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4813f7
cmp dword [ebp + 0xc], 0xffffffff
je 0x481599
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0047d050
add esp, 0xc
call fcn.0048209e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4813f7
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x481401
or dword [esi + 0xc], 0x10
jmp 0x4815b4
Function at 0x48a0de
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x626748]
je 0x48a0f9
inc edi
cmp edi, 0x17
jb 0x48a0ea
cmp edi, 0x17
jae 0x48a279
push ebp
push 3
call fcn.004975dc
cmp eax, 1
pop ecx
je 0x48a245
push 3
call fcn.004975dc
test eax, eax
pop ecx
jne 0x48a12d
cmp dword [0x6261ec], 1
je 0x48a245
cmp ebx, 0xfc
je 0x48a278
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x628ef8
push ebp
call fcn.00481b36
add esp, 0xc
test eax, eax
je 0x48a163
push esi
push esi
push esi
push esi
push esi
call fcn.0047d167
add esp, 0x14
push 0x104
mov esi, 0x628f11
push esi
push 0
mov byte [0x629015], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48a1a7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00481b36
add esp, 0xc
test eax, eax
je 0x48a1a7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047d167
add esp, 0x14
push esi
call fcn.0047d2c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48a1ec
push esi
call fcn.0047d2c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x62920c
push 0x4ec894
sub ecx, eax
push ecx
push eax
call fcn.00481a83
add esp, 0x14
test eax, eax
je 0x48a1ec
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047d167
add esp, 0x14
jmp 0x48a1ee
xor esi, esi
push 0x4ed780
push ebx
push ebp
call fcn.00481eee
add esp, 0xc
test eax, eax
je 0x48a20e
push esi
push esi
push esi
push esi
push esi
call fcn.0047d167
add esp, 0x14
push dword [edi*8 + 0x62674c]
push ebx
push ebp
call fcn.00481eee
add esp, 0xc
test eax, eax
je 0x48a230
push esi
push esi
push esi
push esi
push esi
call fcn.0047d167
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004996f2
add esp, 0xc
jmp 0x48a278
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48a278
cmp ebp, 0xffffffff
je 0x48a278
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x62674c]
push dword [esi]
call fcn.0047d2c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4970e2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048ac8f
xor ebx, ebx
cmp dword [0x629920], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4971b8
push 0x4f1dd4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x497298
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f1dc8
push edi
call esi
cmp eax, ebx
je 0x497298
push eax
call fcn.0048ac21
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x629920], eax
call esi
push eax
call fcn.0048ac21
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x629924], eax
call esi
push eax
call fcn.0048ac21
mov dword [0x629928], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00481810
test eax, eax
pop ecx
pop ecx
je 0x497186
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047d167
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4971b8
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.0048ac21
cmp eax, ebx
pop ecx
mov dword [0x629930], eax
je 0x4971b8
push 0x4f1d70
push edi
call esi
push eax
call fcn.0048ac21
pop ecx
mov dword [0x62992c], eax
mov eax, dword [0x62992c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49723d
cmp dword [0x629930], ecx
je 0x49723d
push eax
call fcn.0048ac98
push dword [0x629930]
mov esi, eax
call fcn.0048ac98
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49723d
cmp edi, ebx
je 0x49723d
call esi
cmp eax, ebx
je 0x49720a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49720a
test byte [ebp - 0x18], 1
jne 0x49723d
lea eax, [ebp - 0x10]
push eax
call fcn.00481847
test eax, eax
pop ecx
je 0x497225
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047d167
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x497234
or dword [ebp + 0x10], 0x200000
jmp 0x497278
or dword [ebp + 0x10], 0x40000
jmp 0x497278
mov eax, dword [0x629924]
cmp eax, dword [ebp - 8]
je 0x497278
push eax
call fcn.0048ac98
cmp eax, ebx
pop ecx
je 0x497278
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x497278
mov eax, dword [0x629928]
cmp eax, dword [ebp - 8]
je 0x497278
push eax
call fcn.0048ac98
cmp eax, ebx
pop ecx
je 0x497278
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x629920]
call fcn.0048ac98
cmp eax, ebx
pop ecx
je 0x497298
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49729a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4996f2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048ac8f
xor ebx, ebx
cmp dword [0x629938], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4997c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4998a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f2824
push edi
call esi
cmp eax, ebx
je 0x4998a8
push eax
call fcn.0048ac21
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x629938], eax
call esi
push eax
call fcn.0048ac21
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x62993c], eax
call esi
push eax
call fcn.0048ac21
mov dword [0x629940], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00481810
test eax, eax
pop ecx
pop ecx
je 0x499796
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047d167
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4997c8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048ac21
cmp eax, ebx
pop ecx
mov dword [0x629948], eax
je 0x4997c8
push 0x4f1d70
push edi
call esi
push eax
call fcn.0048ac21
pop ecx
mov dword [0x629944], eax
mov eax, dword [0x629944]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49984d
cmp dword [0x629948], ecx
je 0x49984d
push eax
call fcn.0048ac98
push dword [0x629948]
mov esi, eax
call fcn.0048ac98
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49984d
cmp edi, ebx
je 0x49984d
call esi
cmp eax, ebx
je 0x49981a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49981a
test byte [ebp - 0x18], 1
jne 0x49984d
lea eax, [ebp - 0x10]
push eax
call fcn.00481847
test eax, eax
pop ecx
je 0x499835
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047d167
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x499844
or dword [ebp + 0x10], 0x200000
jmp 0x499888
or dword [ebp + 0x10], 0x40000
jmp 0x499888
mov eax, dword [0x62993c]
cmp eax, dword [ebp - 8]
je 0x499888
push eax
call fcn.0048ac98
cmp eax, ebx
pop ecx
je 0x499888
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x499888
mov eax, dword [0x629940]
cmp eax, dword [ebp - 8]
je 0x499888
push eax
call fcn.0048ac98
cmp eax, ebx
pop ecx
je 0x499888
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x629938]
call fcn.0048ac98
cmp eax, ebx
pop ecx
je 0x4998a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4998aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a0d03
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4a0d23
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4a0d5c
cmp eax, 2
jg 0x4a0d5c
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4f30d8
push 2
push eax
call fcn.00486136
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00486136
add esp, 0x20
xor eax, eax
ret
Function at 0x4a4b24
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4a4b58
cmp ebx, esi
jne 0x4a4b58
mov eax, dword [ebp + 0x7c]
call fcn.004a4b05
jmp 0x4a4cf5
cmp dword [ebp + 0x7c], edx
jle 0x4a4b6d
mov edi, dword [ebp + 0x7c]
call fcn.004a4ed1
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4a4b9d
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4a4bf4
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4a4bd0
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4a4bd0
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4a4bbe
cmp eax, dword [ebp - 0xa8]
jne 0x4a4bee
cmp dword [ebp - 0xa8], 0x40
jae 0x4a4bee
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4a4bf4
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4a4bfd
xor ebx, ebx
jmp 0x4a4c00
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4a4c1f
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4a4c24
jne 0x4a4c27
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4a4c80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4a4c5a
cmp eax, 0x2714
jne 0x4a4c84
cmp dword [ebp + 0x7c], 0
jle 0x4a4c03
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004a4ed1
push edx
push eax
call fcn.004a4ee7
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4a4c03
jmp 0x4a4c84
test eax, eax
jge 0x4a4c89
or eax, 0xffffffff
jmp 0x4a4cf5
jne 0x4a4c8f
xor eax, eax
jmp 0x4a4cf5
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4a4cc1
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a4cab
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a4cc1
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4a4cf3
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a4cdd
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a4cf3
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4a586c
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4a5879
jmp dword [eax*4 + 0x4a58d4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4a60fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4a6122
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4a6153
cmp dword [esi + 8], 0
jne 0x4a6143
push 0x4e1978
push dword [eax + 8]
call fcn.00483a6e
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4a6143
or eax, 0xffffffff
jmp 0x4a6179
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0048165e
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4a6161
cmp edi, dword [ebp + 0xc]
jbe 0x4a6177
test ebx, ebx
jne 0x4a6171
push dword [esi + 8]
call fcn.004816eb
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a6960
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret