joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435964
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x435985
jl 0x43597c
test edi, edi
jne 0x435985
xor eax, eax
xor edx, edx
jmp 0x435a46
cmp dword [ebx + 0x38], 0
je 0x43599a
push eax
push edi
push dword [ebp + 8]
call fcn.00415f10
jmp 0x435a46
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4359e1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4359e1
cmp eax, edi
jb 0x4359bb
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00484660
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4359e7
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x435a3b
mov ecx, ebx
call fcn.004352d8
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x435a26
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004963cd
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x435a3b
jmp 0x4359f9
test edx, edx
je 0x435a3b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004963cd
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x44b027
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00495543
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44b066
sub eax, 1
je 0x44b061
sub eax, 1
je 0x44b05d
xor eax, eax
leave
ret
push 3
jmp 0x44b068
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x44c3e3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44c422
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44c422
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44c422
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44c422
cmp dword [ecx + 0x74], 0xe
jbe 0x44c422
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44c810
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d901c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0049fa23
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x44c875
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x44c875
lea eax, [esp]
push eax
call dword [0x4d9084]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044be2b
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.0044be2b
add esp, 0x108
ret
Function at 0x44cbc0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4d901c]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [0x4dc5d8]
mov ecx, eax
inc eax
mov dword [0x4dc5d8], eax
test ecx, ecx
je 0x44cbfc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0044be2b
add esp, 0x194
ret
push ebx
mov ebx, dword [esp + 0x19c]
mov dword [fcn.00495186], 0x495186
mov dword [fcn.0048e333], 0x48e333
mov dword [fcn.004971e9], 0x4971e9
mov dword [0x4d9084], 0x4b5b8d
mov dword [fcn.0048ea0c], 0x48ea0c
test bl, 1
je 0x44cc44
call fcn.00452fa0
test eax, eax
je 0x44cc7e
test bl, 2
je 0x44cc75
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44cc7e
mov eax, dword [esp + 4]
cmp al, 2
jne 0x44cc99
shr eax, 8
cmp al, 2
jne 0x44cc99
call fcn.00454ac0
test eax, eax
jne 0x44cc7e
call fcn.0044c3e0
test eax, eax
je 0x44cca1
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0044be2b
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x44cc7e
mov eax, dword [0x4dc61c]
test bl, 4
mov ecx, 1
mov dword [0x4dc5dc], ebx
cmovne eax, ecx
mov ecx, dword [esp + 0x194]
pop ebx
mov dword [0x4dc61c], eax
xor ecx, esp
xor eax, eax
call fcn.0044be2b
add esp, 0x194
ret
Function at 0x45d690
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
push ebx
push edi
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x1c]
cmp eax, dword [edi + 0x158]
push dword [esp + 0x1c]
sete cl
lea ecx, [ecx*4 + 0x154]
push dword [ecx + edi]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45d716
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x45d6e8
mov ecx, dword [esp + 0x20]
lea eax, [ebx + 0x52]
pop esi
pop edi
pop ebx
mov dword [ecx], 0
ret
push esi
push edi
call fcn.00450a40
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0045d070
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x85fc], esi
mov eax, 0x37
pop esi
pop edi
mov dword [ecx], ebx
pop ebx
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop edi
mov dword [ecx], ebx
pop ebx
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5c0]
test esi, esi
je 0x45d9ec
mov eax, dword [edi + 0x44]
test eax, eax
je 0x45d9ec
push 0x45eb60
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
push ecx
mov dword [esp + 0x14], 0
push dword [eax + 0x30]
call fcn.00467270
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x45d9f5
mov dword [edi + 0x5c0], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45d9ff
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x45da24
push esi
call fcn.004529e0
add esp, 4
test eax, eax
jne 0x45da38
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x45d9ec
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x45f1e0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [esi]
test bl, bl
je 0x45f291
mov cl, byte [edi]
test cl, cl
je 0x45f291
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x45f20a
jmp dword [eax*4 + 0x45f2b8]
mov bl, 0x41
jmp case.default.0x45f20a
mov bl, 0x42
jmp case.default.0x45f20a
mov bl, 0x43
jmp case.default.0x45f20a
mov bl, 0x44
jmp case.default.0x45f20a
mov bl, 0x45
jmp case.default.0x45f20a
mov bl, 0x46
jmp case.default.0x45f20a
mov bl, 0x47
jmp case.default.0x45f20a
mov bl, 0x48
jmp case.default.0x45f20a
mov bl, 0x49
jmp case.default.0x45f20a
mov bl, 0x4a
jmp case.default.0x45f20a
mov bl, 0x4b
jmp case.default.0x45f20a
mov bl, 0x4c
jmp case.default.0x45f20a
mov bl, 0x4d
jmp case.default.0x45f20a
mov bl, 0x4e
jmp case.default.0x45f20a
mov bl, 0x4f
jmp case.default.0x45f20a
mov bl, 0x50
jmp case.default.0x45f20a
mov bl, 0x51
jmp case.default.0x45f20a
mov bl, 0x52
jmp case.default.0x45f20a
mov bl, 0x53
jmp case.default.0x45f20a
mov bl, 0x54
jmp case.default.0x45f20a
mov bl, 0x55
jmp case.default.0x45f20a
mov bl, 0x56
jmp case.default.0x45f20a
mov bl, 0x57
jmp case.default.0x45f20a
mov bl, 0x58
jmp case.default.0x45f20a
mov bl, 0x59
jmp case.default.0x45f20a
mov bl, 0x5a
push ecx
call fcn.0045f490
add esp, 4
cmp bl, al
jne 0x45f291
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x45f1f5
movzx eax, byte [esi]
push eax
call fcn.0045f490
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.0045f490
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x45f320
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [edi]
test bl, bl
je 0x45f3e6
nop word [eax + eax]
mov cl, byte [ebp]
test cl, cl
je 0x45f3e6
test esi, esi
je 0x45f3ea
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x45f35e
jmp dword [eax*4 + 0x45f41c]
mov bl, 0x41
jmp case.default.0x45f35e
mov bl, 0x42
jmp case.default.0x45f35e
mov bl, 0x43
jmp case.default.0x45f35e
mov bl, 0x44
jmp case.default.0x45f35e
mov bl, 0x45
jmp case.default.0x45f35e
mov bl, 0x46
jmp case.default.0x45f35e
mov bl, 0x47
jmp case.default.0x45f35e
mov bl, 0x48
jmp case.default.0x45f35e
mov bl, 0x49
jmp case.default.0x45f35e
mov bl, 0x4a
jmp case.default.0x45f35e
mov bl, 0x4b
jmp case.default.0x45f35e
mov bl, 0x4c
jmp case.default.0x45f35e
mov bl, 0x4d
jmp case.default.0x45f35e
mov bl, 0x4e
jmp case.default.0x45f35e
mov bl, 0x4f
jmp case.default.0x45f35e
mov bl, 0x50
jmp case.default.0x45f35e
mov bl, 0x51
jmp case.default.0x45f35e
mov bl, 0x52
jmp case.default.0x45f35e
mov bl, 0x53
jmp case.default.0x45f35e
mov bl, 0x54
jmp case.default.0x45f35e
mov bl, 0x55
jmp case.default.0x45f35e
mov bl, 0x56
jmp case.default.0x45f35e
mov bl, 0x57
jmp case.default.0x45f35e
mov bl, 0x58
jmp case.default.0x45f35e
mov bl, 0x59
jmp case.default.0x45f35e
mov bl, 0x5a
push ecx
call fcn.0045f490
add esp, 4
cmp bl, al
jne 0x45f3e6
mov bl, byte [edi + 1]
inc edi
dec esi
inc ebp
test bl, bl
jne 0x45f340
test esi, esi
jne 0x45f3f4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
movzx eax, byte [edi]
push eax
call fcn.0045f490
movzx ecx, byte [ebp]
mov bl, al
push ecx
call fcn.0045f490
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x45f490
Capabilities:
Parse pe header

Disassembly:
mov cl, byte [esp + 4]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x45f49f
jmp dword [eax*4 + 0x45f4f8]
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, cl
ret
Function at 0x45f560
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0x10]
cmp esi, 1
jb 0x45f60e
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
sub edi, edx
nop dword [eax]
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x45f58d
jmp dword [eax*4 + 0x45f610]
mov cl, 0x41
jmp case.default.0x45f58d
mov cl, 0x42
jmp case.default.0x45f58d
mov cl, 0x43
jmp case.default.0x45f58d
mov cl, 0x44
jmp case.default.0x45f58d
mov cl, 0x45
jmp case.default.0x45f58d
mov cl, 0x46
jmp case.default.0x45f58d
mov cl, 0x47
jmp case.default.0x45f58d
mov cl, 0x48
jmp case.default.0x45f58d
mov cl, 0x49
jmp case.default.0x45f58d
mov cl, 0x4a
jmp case.default.0x45f58d
mov cl, 0x4b
jmp case.default.0x45f58d
mov cl, 0x4c
jmp case.default.0x45f58d
mov cl, 0x4d
jmp case.default.0x45f58d
mov cl, 0x4e
jmp case.default.0x45f58d
mov cl, 0x4f
jmp case.default.0x45f58d
mov cl, 0x50
jmp case.default.0x45f58d
mov cl, 0x51
jmp case.default.0x45f58d
mov cl, 0x52
jmp case.default.0x45f58d
mov cl, 0x53
jmp case.default.0x45f58d
mov cl, 0x54
jmp case.default.0x45f58d
mov cl, 0x55
jmp case.default.0x45f58d
mov cl, 0x56
jmp case.default.0x45f58d
mov cl, 0x57
jmp case.default.0x45f58d
mov cl, 0x58
jmp case.default.0x45f58d
mov cl, 0x59
jmp case.default.0x45f58d
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x45f60d
sub esi, 1
jne 0x45f580
pop edi
pop esi
ret
Function at 0x4692d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x469462
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x46944c
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x46931f
lea ebp, [eax + 0xe]
jmp 0x46932b
cmp eax, 0x17
jne 0x4693d9
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4693d9
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4693d9
cmp eax, ebp
jb 0x4693d9
push 0x20
call dword [0x4d9078]
mov esi, eax
add esp, 4
test esi, esi
je 0x469441
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4d9078]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x469430
push ebp
push dword [edi + 0x18]
push eax
call fcn.00484660
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4693c5
push eax
call dword [0x4d9084]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x469416
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4693d5
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x469312
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4693f8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x469448
push ebx
call fcn.00469280
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x4d907c]
push esi
call dword [0x4d907c]
add esp, 8
jmp 0x4693e8
push esi
mov ebp, 8
call dword [0x4d907c]
add esp, 4
jmp 0x4693e8
mov ebp, 8
jmp 0x4693e8
test ebx, ebx
jne 0x469458
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x469730
Capabilities:
Create udp socket

Disassembly:
mov ecx, dword [0x4d9094]
cmp ecx, 0xffffffff
jne 0x469777
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x46975c
xor ecx, ecx
xor eax, eax
test ecx, ecx
mov dword [0x4d9094], ecx
setg al
ret
push eax
push 0
mov dword [0x4d9094], 1
call fcn.0045d7f0
mov ecx, dword [0x4d9094]
add esp, 8
xor eax, eax
test ecx, ecx
setg al
ret
Function at 0x469780
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c8], 2
jne 0x4697dc
mov ecx, dword [0x4d9094]
cmp ecx, 0xffffffff
jne 0x4697d4
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4697b9
xor ecx, ecx
xor eax, eax
test ecx, ecx
mov dword [0x4d9094], ecx
setg al
ret
push eax
push 0
mov dword [0x4d9094], 1
call fcn.0045d7f0
mov ecx, dword [0x4d9094]
add esp, 8
xor eax, eax
test ecx, ecx
setg al
ret
mov eax, 1
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x154]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4774fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0045d070
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.004770c0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4775f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebp, dword [eax + 0x128]
jne 0x477740
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x47762b
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
jmp 0x47762d
mov eax, ebx
cmp eax, edi
jae 0x477641
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x477641
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4776ab
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4776ab
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4776ab
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4776ab
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4776ab
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4776ab
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
mov dword [edi], ebx
push eax
lea eax, [ebp + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.004771c0
add esp, 0x10
push 0
push 3
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4776ff
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0045d070
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb3]
push eax
push ebx
call fcn.00477520
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push 0
push 2
push eax
push dword [ebx + 0x154]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x47773d
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0045d070
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x478b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x4d901c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
lea eax, [esp + 4]
push ebp
push esi
push edi
mov esi, dword [ebx + 0x4d0]
mov edi, dword [ebx]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x478bc5
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00484660
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x478c00
push str.Received_too_short_packet
push edi
call fcn.0045d070
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044be2b
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x478c21
jmp dword [ecx*4 + 0x478d24]
cmp edx, 4
jle case.0x478c21.4
mov ebp, dword [esi + 0x15c]
movzx ecx, byte [ebp + 2]
movzx eax, byte [ebp + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x478c21.4
lea eax, [edx - 4]
push eax
lea eax, [ebp + 4]
push eax
push 1
push ebx
call fcn.0045cdf0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x478c7f
push 5
push esi
call fcn.004795a0
add esp, 8
mov eax, ebp
jmp 0x478be7
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.004661b0
jmp 0x478cfa
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x4be1ec
push edi
call fcn.0045d140
jmp 0x478cfa
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.004788d0
add esp, 0xc
test eax, eax
je case.0x478c21.4
jmp 0x478be7
push str.Internal_error:_Unexpected_packet
push 0x4be9e4
push edi
call fcn.0045d070
add esp, 0xc
push ebx
call fcn.004663f0
add esp, 4
test eax, eax
je 0x478be5
push 5
push esi
call fcn.004795a0
add esp, 8
mov eax, 0x2a
jmp 0x478be7
Function at 0x47f220
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x47f255
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8003
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [esp + 0x18]
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47f260
sub ecx, edx
push ecx
call fcn.00451200
add esp, 4
push 0
push eax
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [esp + 4]
push 0
push eax
push 0
push 2
push dword [esp + 0x1c]
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x10
jne 0x47f2b9
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0x1c]
push 2
push dword [esp + 0x1c]
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x47f2c9
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x47f2da
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret