joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b199
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4fa654]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42b1de
cmp byte [ebp - 0x19c], 2
jne 0x42b1d8
mov eax, dword [ebp - 0x19c]
shr eax, 8
cmp al, 2
je 0x42b1de
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 8]
inc dword [0x4ff460]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.004466c5
leave
ret 4

Function at 0x42b23b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x42b2a8
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x42b25e
xor al, al
jmp 0x42b2b3
mov cx, word [eax + 8]
mov word [esi], cx
mov ecx, dword [eax + 0xc]
xor edi, edi
cmp dword [ecx], edi
je 0x42b25a
mov eax, ecx
add eax, 4
inc edi
cmp dword [eax], 0
jne 0x42b270
test edi, edi
je 0x42b25a
mov eax, dword [0x5000c4]
xor edx, edx
div edi
cmp dword [0x5000c4], 0xffffffff
mov eax, dword [ecx + edx*4]
mov eax, dword [eax]
mov dword [esi + 4], eax
jne 0x42b2a0
and dword [0x5000c4], 0
jmp 0x42b2b1
inc dword [0x5000c4]
jmp 0x42b2b1
push 2
pop ecx
mov word [esi], cx
mov dword [esi + 4], eax
mov al, 1
pop edi
pop ebp
ret

Function at 0x42b2b6
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fa654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x42b2d7
push 6
pop eax
jmp 0x42b37c
mov eax, dword [esi + 4]
push edi
push 2
pop edi
cmp eax, edi
jne 0x42b2e8
push 6
push 1
jmp 0x42b2f4
cmp eax, 1
jne 0x42b378
push 0x11
push edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x42b36f
push 0x7f000001
mov word [ebp - 0x14], di
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x42b36a
cmp dword [esi + 4], 1
jne 0x42b357
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push dword [esi + 8]
mov dword [ebp - 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x42b365
push 0x7fffffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x42b374
call fcn.0042b38b
push 0xa
pop eax
jmp 0x42b37b
xor eax, eax
jmp 0x42b37b
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004466c5
leave
ret 4
Function at 0x42b39f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cdc79
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4fa654]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
mov eax, dword [0x4fa654]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
inc eax
cmp dword [esi + 4], eax
jne 0x42b4de
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x42b3fd
push 2
pop eax
jmp 0x42b4de
push 0x10
push ecx
push 0
push dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x42b4dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x42b439
push ebx
push dword [ebp + 0x10]
mov edx, esi
push 2
pop ecx
call fcn.0042b503
jmp 0x42b4de
lea eax, [esp + 0xc]
push eax
call fcn.00404d9c
and dword [esp + 0xd0], 0
lea eax, [esp + 0xc]
push str.sendto_failed_as
push eax
call fcn.00405e4c
pop ecx
pop ecx
push edi
lea eax, [esp + 0x10]
push eax
call fcn.00411895
lea edx, [esp + 0xa4]
lea ecx, [esp + 0xc]
call fcn.00404d5e
mov byte [esp + 0xd0], 1
cmp dword [esp + 0xb8], 8
mov eax, dword [esp + 0xa4]
jae 0x42b497
lea eax, [esp + 0xa4]
push eax
push 4
pop ecx
call fcn.0042181f
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xa8]
call fcn.00401198
or dword [esp + 0xd0], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.00404e06
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], vtable.std::ios_base.0
call fcn.00445c6f
pop ecx
push 0xa
jmp 0x42b3f7
xor eax, eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004466c5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x444d60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x4fa654]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp dword [0x4ff468], ebx
jne 0x444dbb
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x444da1
xor al, al
jmp 0x444dc3
cmp byte [esp + 0x10], 2
jne 0x444db3
mov eax, dword [esp + 0x10]
shr eax, 8
cmp al, 2
je 0x444dbb
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x444d9d
inc dword [0x4ff468]
mov al, 1
mov byte [esi + 0x1c], al
cmp al, bl
jne 0x444ddf
xor ecx, ecx
push 0x4eae30
inc ecx
call fcn.0042181f
pop ecx
push 0xffffffffffffffff
call fcn.0045044d
or dword [esi + 0x64], 0xffffffff
push 0x10
lea edi, [esi + 0x20]
push ebx
push edi
mov byte [esi + 0x1d], bl
mov dword [esi + 8], ebx
call fcn.00447b70
add esp, 0xc
push 2
pop eax
mov word [edi], ax
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x10
mov dword [esi + 0x6c], eax
push ebx
add esi, 0x30
push esi
call fcn.00447b70
mov ecx, dword [esp + 0x1b0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004466c5
mov esp, ebp
pop ebp
ret

Function at 0x444fde
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4fa654]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x64], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jne 0x44501b
mov eax, dword [ebx + 0x5c]
mov ecx, eax
xor edx, edx
dec ecx
je 0x44500b
dec ecx
jne 0x44500e
push 0x11
jmp 0x44500d
push 6
pop edx
push edx
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x64]
cmp eax, 0xffffffff
jne 0x44502a
xor al, al
jmp 0x4450af
cmp byte [ebx + 0x68], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x44505d
push 1
lea ecx, [ebp - 0x15]
push ecx
push 4
push 0xffff
push eax
mov byte [ebx + 0x68], 1
mov byte [ebp - 0x15], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x44505d
call edi
mov dword [ebx + 0x60], eax
push esi
push 0x10
pop esi
push esi
push dword [ebp - 0x1c]
push dword [ebx + 0x64]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x44507a
call edi
mov dword [ebx + 0x60], eax
jmp 0x445093
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x64]
mov dword [ebp - 0x20], esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x445097
xor al, al
jmp 0x4450ad
cmp dword [ebx + 0x5c], 2
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4450ab
mov byte [ebx + 0x1d], 1
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004466c5
leave
ret 4
Function at 0x4450bd
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push 0xe8
mov eax, 0x4cd725
call fcn.0044dabe
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov edi, edx
jne 0x4450dd
xor al, al
jmp 0x445214
cmp dword [esi + 0x64], 0xffffffff
jne 0x4450f2
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x64], eax
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4451d5
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4451ce
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0041d00d
pop ecx
pop ecx
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0xf4]
push eax
call fcn.00404d9c
lea eax, [ebp - 0xf4]
push str.updtSocket::Connect:_Unknown_hostname_
push eax
mov byte [ebp - 4], 1
call fcn.00405e4c
lea eax, [ebp - 0xf4]
push eax
mov ecx, esi
call fcn.004060a0
add esp, 0xc
lea eax, [ebp - 0xf4]
push 0x27
push eax
call fcn.00406229
pop ecx
pop ecx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xf4]
call fcn.00404d5e
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x445183
lea eax, [ebp - 0x40]
push eax
push 2
pop ecx
call fcn.0042181f
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x40]
call fcn.00401198
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.00404e06
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], vtable.std::ios_base.0
call fcn.00445c6f
pop ecx
push 1
lea esi, [ebp - 0x5c]
call fcn.00401198
jmp 0x4450d6
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
pop ecx
push dword [ebp + 8]
mov word [ebp - 0x24], cx
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x44520e
push dword [esi + 0x64]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4450d6
mov byte [esi + 0x1d], 1
mov al, 1
call fcn.0044db41
ret 4
Function at 0x445234
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4fa654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x3e8
idiv ecx
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x20c], esi
imul edx, edx, 0x3e8
mov dword [ebp - 0x214], eax
xor eax, eax
mov dword [ebp - 0x210], edx
cmp byte [ebp + 8], bl
je 0x445297
lea ecx, [ebp - 0x108]
jmp 0x44529d
lea eax, [ebp - 0x108]
cmp dword [ebp + 0xc], ebx
jl 0x4452aa
lea edx, [ebp - 0x214]
jmp 0x4452ac
xor edx, edx
push edx
lea edx, [ebp - 0x20c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jne 0x4452c5
xor eax, eax
jmp 0x4452f7
cmp eax, 0xffffffff
jne 0x4452cf
or eax, 0xffffffff
jmp 0x4452f7
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x4452f5
lea eax, [ebp - 0x108]
push eax
push dword [edi + 0x64]
call ebx
test eax, eax
je 0x4452ca
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004466c5
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.0042041b
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov byte [ebp - 1], 1
jmp 0x445394
jle 0x445337
add dword [ebp - 8], eax
sub dword [ebp + 0xc], eax
add dword [ebp + 8], eax
jmp 0x445344
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4453af
cmp dword [ebp + 0xc], 0
je 0x4453a5
cmp byte [ebp - 1], 0
mov ecx, dword [ebp + 0x10]
jne 0x445382
test ecx, ecx
js 0x445382
lea esi, [ebp - 0x10]
call fcn.0042041b
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
push 0
push 0x2710
push ecx
push eax
call fcn.00462250
mov ecx, dword [ebp + 0x10]
sub ecx, eax
test ecx, ecx
jle 0x4453a5
push ecx
push 1
call fcn.00445234
mov byte [ebp - 1], 0
test eax, eax
js 0x4453af
je 0x4453a5
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x64]
call ebx
test eax, eax
jne 0x44532a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
or eax, 0xffffffff
jmp 0x4453a8

Function at 0x4466c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4fa654]
jne 0x4466cf
repz ret
jmp fcn.0044fcd0
Function at 0x460072
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fa654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004530e3
and dword [ebp - 0x14], 0
cmp dword [0x4fe174], 0
mov dword [ebp - 0x18], eax
jne 0x460125
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4601cd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4601cd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4fe174], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4fe178], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4fe17c], eax
call edi
push eax
call esi
mov dword [0x4fe184], eax
test eax, eax
je 0x460125
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4fe180], eax
mov eax, dword [0x4fe180]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46017e
cmp dword [0x4fe184], ecx
je 0x46017e
push eax
call esi
push dword [0x4fe184]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46017e
test ebx, ebx
je 0x46017e
call edi
test eax, eax
je 0x460175
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x460175
test byte [ebp - 8], 1
jne 0x46017e
or dword [ebp + 0x10], 0x200000
jmp 0x4601b1
mov eax, dword [0x4fe178]
cmp eax, dword [ebp - 0x18]
je 0x4601b1
push eax
call esi
test eax, eax
je 0x4601b1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4601b1
mov eax, dword [0x4fe17c]
cmp eax, dword [ebp - 0x18]
je 0x4601b1
push eax
call esi
test eax, eax
je 0x4601b1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4fe174]
call esi
test eax, eax
je 0x4601cd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4601cf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004466c5
leave
ret

Function at 0x4666f0
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x466716
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x466700
ret
Function at 0x4789f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x478a22
lea esp, [esp]
test cl, 3
je 0x478a22
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4dab10]
add ecx, 1
sub esi, 1
jne 0x478a00
cmp esi, 0x20
push ebx
push edi
jb 0x478c0c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4daf10]
xor edx, dword [ebx*4 + 0x4db310]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dab10]
add ecx, 4
xor edx, dword [eax*4 + 0x4db710]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4daf10]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4db310]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dab10]
add ecx, 4
xor eax, dword [edx*4 + 0x4db710]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4daf10]
xor edx, dword [ebx*4 + 0x4db310]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dab10]
xor edx, dword [eax*4 + 0x4db710]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4daf10]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4db310]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dab10]
xor eax, dword [edx*4 + 0x4db710]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4daf10]
xor edx, dword [ebx*4 + 0x4db310]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dab10]
xor edx, dword [eax*4 + 0x4db710]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4daf10]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4db310]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dab10]
and edx, 0xff
xor eax, dword [edx*4 + 0x4db710]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4daf10]
xor edx, dword [ebx*4 + 0x4db310]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4dab10]
add ecx, 4
xor edx, dword [eax*4 + 0x4db710]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4daf10]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4db310]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4dab10]
and edx, 0xff
xor eax, dword [edx*4 + 0x4db710]
sub edi, 1
jne 0x478a32
cmp esi, 4
jb 0x478c59
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4daf10]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4db310]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4dab10]
and eax, 0xff
xor edi, dword [eax*4 + 0x4db710]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x478c16
test esi, esi
pop edi
pop ebx
je 0x478c7d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4dab10]
add ecx, 1
sub esi, 1
jne 0x478c60
not eax
pop esi
ret
Function at 0x4790b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x47912e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004466e0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x479101
sub eax, ebx
jmp 0x479103
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4790f2
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x479122
sub eax, ebx
jmp 0x479124
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x479113
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x479202
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.00478e30
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x479179
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x47918d
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4790b6
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x479202
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x4791d1
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x4791b4
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.00447b70
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x479202
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x4791eb
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.00447b70
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4015e0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test eax, eax
jne 0x401610
mov dword [esp], ebx
call sub.msvcrt.dll_getenv
mov edx, eax
xor eax, eax
test edx, edx
je 0x401610
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp], edi
mov esi, eax
call sub.msvcrt.dll_strlen
lea ecx, [esi + eax + 2]
mov dword [esp], ecx
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x401660
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s_s
mov dword [esp], eax
call fcn.004015b0
mov dword [esp + 0x20], esi
add esp, 0x10
pop ebx
pop esi
pop edi
jmp 0x4082c0
mov eax, 0xffffffff
jmp 0x401606
jmp dword [sym.imp.msvcrt.dll__putenv]

Function at 0x401b90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00401bf0
Function at 0x4022b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b3f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b3f0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402305
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4022fe
test esi, esi
je 0x4022fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4022e0
mov dword [esp], 0x40b3f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402520
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402558
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40254e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40255a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402540
xor eax, eax
pop ebx
pop esi
ret

Function at 0x403350
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 8], ebx
pop ebx
jmp fcn.00402cd0