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

Disassembly:
mov dword [ebp - 0x110], eax
mov eax, dword [edi]
push ebx
push esi
cmp eax, 0x64
jl 0x509875
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x63cd
xor cx, word [eax*2 + 0x56c2f8]
inc eax
mov word [ebp + eax*2 - 0x10e], cx
cmp eax, 0xc
jl 0x4a6db1
push 0
push 0
lea edx, [ebp - 0x10c]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
mov ecx, dword [ebp - 8]
jmp 0x509868
mov ecx, dword [edi]
mov eax, dword [ebp - 0x110]
imul ecx, ecx, 0x2048
lea ecx, [ecx + edi + 8]
mov esi, ecx
mov dword [ecx + 0x2040], 0
sub esi, eax
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x4cb798
inc dword [edi]
mov eax, dword [ecx + 0x2040]
push 0x40372e
ret
xor ecx, ebp
call fcn.00533c7a
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
test eax, eax
jle 0x4cb778
lea ebx, [edi + 8]
mov eax, dword [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
test eax, eax
je 0x5098af
inc esi
add ebx, 0x2048
cmp esi, dword [edi]
jl 0x509882
jmp 0x4cb778
imul esi, esi, 0x2048
jmp dword [0x5098bd]
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
jmp 0x4a6d9c

Function at 0x54a34c
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.msvcrt.dll_rand]
push edi
mov edi, dword [0x67553c]
call esi
jmp 0x550636
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x50], 0xa
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x54], 1
mov word [ebp - 0x58], dx
mov edx, ecx
sub edx, dword [ebp - 0x58]
mov word [ebp - 0x56], dx
call esi
and eax, 0x800000ff
jns 0x550671
dec eax
or eax, 0xffffff00
inc eax
cmp byte [ebp - 0x54], 0
mov byte [ebp - 0x53], al
je 0x556c7a
jmp 0x556c68
mov cl, al
xor eax, eax
xor byte [ebp + eax - 0x52], cl
inc eax
cmp eax, 0x4a
jl 0x556c6c
push 0
push 0x50
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp byte [ebp - 0x54], 0
je 0x558b05
mov cl, byte [ebp - 0x53]
xor eax, eax
xor byte [ebp + eax - 0x52], cl
inc eax
jmp 0x558afc
cmp eax, 0x4a
jl 0x556c98
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00533c7a
mov esp, ebp
pop ebp
ret

Function at 0x55390c
Capabilities:
Encode data using xor

Disassembly:
cmp eax, 0xc
jl 0x553921
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x5ec5
xor dx, word [eax*2 + 0x56c234]
inc eax
mov word [ebp + eax*2 - 0x20a], dx
cmp eax, 5
jl 0x538a71
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push 0x445d5e
ret
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [eax + 1]
imul ecx, ecx, 0x33d6
xor cx, word [eax*2 + 0x56c218]
inc eax
mov word [ebp + eax*2 - 0x10a], cx
jmp 0x538a66
Function at 0x4012c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x4c
mov eax, dword [str.SanrioMascotWC97M]
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4012e5
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
push 1
mov dword [esp + 0x14], 0x2820
mov dword [esp + 0x18], 0x401720
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x24], eax
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x28], eax
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [str.SanrioMascotWC97M]
push edi
mov dword [esp + 0x30], eax
push 0x10
mov eax, dword [0x40a4d0]
push 0x10
mov edx, dword [esp + 0x2c]
push 1
mov dword [esp + 0x40], eax
push 1
mov dword [esp + 0x48], ecx
push edx
mov dword [esp + 0x24], 0x30
call dword [sym.imp.USER32.dll_LoadImageA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], eax
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x40137e
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x10
push 0
mov dword [0x40b998], esi
push esi
push 0
push 0
mov eax, dword [0x40a4d4]
push 0
mov ecx, dword [str.SanrioMascotWC97M]
push 0
push 0
push 0
push 0x800a0000
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x4013be
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x10
mov eax, dword [esp + 0x68]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [esp + 0x3c]
push 0
push 0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push eax
call esi
test eax, eax
je 0x401413
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x3c]
push eax
call edi
lea eax, [esp + 0x3c]
push eax
call ebx
lea eax, [esp + 0x3c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
jne 0x4013f4
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x10

Function at 0x402490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
call fcn.004024f0
mov eax, dword [esp + 0x14]
push 0x40a51c
mov ebx, dword [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi], eax
test eax, eax
je 0x4024ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 0xe
mov dword [esi + 4], eax
jne 0x4024d3
mov edi, 0xffffffff
test edi, edi
je 0x4024de
mov ecx, esi
call fcn.004024f0
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x4032d0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409030
push 0x404260
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40a58c], eax
xor eax, eax
mov al, byte [0x40a58d]
mov dword [0x40a598], eax
mov eax, dword [0x40a58c]
shr dword [0x40a58c], 0x10
and eax, 0xff
mov dword [0x40a594], eax
shl eax, 8
add eax, dword [0x40a598]
mov dword [0x40a590], eax
call fcn.004055a0
mov dword [ebp - 4], 0
call fcn.004053c0
call fcn.004053b0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40cd18], eax
call fcn.00404f50
mov dword [0x40a550], eax
test eax, eax
je 0x403369
cmp dword [0x40cd18], 0
jne 0x403373
push 0xffffffffffffffff
call fcn.00404070
add esp, 4
call fcn.00404cd0
call fcn.00404bf0
call fcn.00404040
mov esi, dword [0x40cd18]
mov al, byte [esi]
cmp al, 0x22
je 0x40339a
cmp al, 0x20
jbe 0x4033c7
inc esi
cmp byte [esi], 0x20
ja 0x403392
jmp 0x4033c7
inc esi
cmp byte [esi], 0x22
je 0x4033c6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4033c1
xor eax, eax
mov al, bl
push eax
call fcn.00404b90
add esp, 4
test eax, eax
je 0x4033bb
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4033a3
cmp byte [esi], 0x22
jne 0x4033c7
inc esi
cmp byte [esi], 0
je 0x4033d7
cmp byte [esi], 0x20
ja 0x4033d7
inc esi
cmp byte [esi], 0
jne 0x4033cc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4033fb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00404070
jmp 0x40343c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4040b0
Capabilities:
Terminate process

Disassembly:
mov dword [0x40a5c4], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x40a5c0], bl
jne 0x40410c
cmp dword [0x40cd14], 0
je 0x4040fa
mov esi, dword [0x40cd10]
sub esi, 4
cmp esi, dword [0x40cd14]
jb 0x4040fa
mov eax, dword [esi]
test eax, eax
je 0x4040ef
call eax
sub esi, 4
cmp esi, dword [0x40cd14]
jae 0x4040e7
push 0x40a030
push 0x40a028
call fcn.00404130
add esp, 8
push 0x40a038
push 0x40a034
call fcn.00404130
add esp, 8
test ebx, ebx
jne 0x40412d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x404f50
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x40a6f0], 0
push ebx
push esi
push edi
push ebp
jne 0x404fa0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x404f7e
mov dword [0x40a6f0], 1
mov ebx, dword [esp + 0x10]
jmp 0x404fae
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x404f96
mov dword [0x40a6f0], 2
jmp 0x404fae
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x40a6f0], 1
jne 0x40505d
test edi, edi
jne 0x404fd1
call esi
mov edi, eax
test edi, edi
jne 0x404fd1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x404feb
add esi, 2
cmp word [esi], 0
jne 0x404fd9
add esi, 2
cmp word [esi], 0
jne 0x404fd9
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x40504c
push ebp
call fcn.004041e0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40504c
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40503b
push ebx
call fcn.00405940
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x40a6f0], 2
jne 0x4050e1
test ebx, ebx
jne 0x405080
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x405080
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x405095
inc ebp
cmp byte [ebp], 0
jne 0x405087
inc ebp
cmp byte [ebp], 0
jne 0x405087
sub ebp, ebx
inc ebp
push ebp
call fcn.004041e0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4050ba
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x405600
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x40ab80
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x405628
add ecx, 8
inc eax
cmp ecx, 0x40ac08
jb 0x405618
cmp dword [eax*8 + 0x40ab80], edx
lea ebx, [eax*8]
jne 0x4057e3
cmp dword [0x40a55c], 1
je 0x4057a8
cmp dword [0x40a55c], 0
jne 0x40565f
cmp dword [0x40a560], 1
je 0x4057a8
cmp edx, 0xfc
je 0x4057e3
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40569c
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4056e0
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x40ac54
push ebp
call fcn.00406420
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40ac34
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x40ab84]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00406380
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40cc10]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4057bf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x40ab84]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x407d20
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x40cc04], edx
push ebx
push esi
push edi
push ebp
jbe 0x407f27
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x40cc10
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x407f27
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x407d89
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x407d9a
push 2
push 0
push edx
call fcn.00408160
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x407e36
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x407e6f
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x407dfd
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x407deb
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x407dd2
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407e65
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x407dbd
jmp 0x407e6f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407e65
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x407e6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x407f16
cmp dword [esp + 0x10], 0
je 0x407ec8
cmp dword [esp + 0x10], 5
jne 0x407eab
mov dword [0x40a580], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x40a584], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.004080f0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x407ef2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x407ef2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40a580], 0x1c
mov dword [0x40a584], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40a580], 9
mov dword [0x40a584], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x4015b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x198
mov eax, dword [0x42b0e0]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1a4]
push esi
push edi
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00412bb0
mov ebx, dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
xor esi, esi
jmp 0x401600
lea edx, [esp + 0x10]
push edx
push 0x202
call ebx
test eax, eax
je 0x401625
push 0x7d0
call edi
inc esi
cmp esi, 5
jl 0x401600
mov eax, dword [ebp + 0x104]
jmp 0x401630
mov eax, 1
mov dword [ebp + 0x104], eax
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411161
add esp, 0x198
ret 4

Function at 0x401650
Capabilities:
Receive data
Receive data on socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov eax, 0x1004
call fcn.00412d60
mov eax, dword [0x42b0e0]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp dword [esi], 0xffffffff
mov eax, dword [esp + 0x1008]
je 0x401712
lea ecx, [esi + 4]
push ecx
push eax
push str.GET__s_HTTP_1.1_r_nAccept:_text_html__application_xhtmlxml____r_nAccept_Language:_zh_CN_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__Trident_7.0__rv:11.0__like_Gecko_r_nHost:__s_r_n_r_n
lea edx, [esp + 0xc]
push 0x800
push edx
call fcn.00401920
lea eax, [esp + 0x14]
add esp, 0x14
lea edx, [eax + 1]
jmp 0x4016a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4016a0
mov ecx, dword [esi]
push 0
sub eax, edx
push eax
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x401712
push 0x7ff
lea edx, [esp + 0x805]
push 0
push edx
mov byte [esp + 0x80c], 0
call fcn.00412bb0
mov ecx, dword [esi]
add esp, 0xc
push 0
push 0x7ff
lea eax, [esp + 0x808]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov eax, 1
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00411161
add esp, 0x1004
ret 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
xor eax, eax
call fcn.00411161
add esp, 0x1004
ret 4
Function at 0x401730
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
sub esp, 0x18
mov eax, dword [0x42b0e0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, str.s.360.cn
push esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401747
sub eax, edx
cmp eax, 0x100
ja 0x401792
lea ecx, [edi + 4]
mov eax, str.s.360.cn
mov edx, 0x100
call fcn.00401a30
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x401792
push str.s.360.cn
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4017a4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00411161
add esp, 0x18
ret
mov ecx, 2
mov word [esp + 4], cx
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push 0x50
mov dword [esp + 0xc], ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 8]
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40178b
mov ecx, dword [esp + 0x14]
mov dword [edi], esi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00411161
add esp, 0x18
ret

Function at 0x401b30
Capabilities:
Check http status code

Disassembly:
sub esp, 0xc
push esi
xor esi, esi
mov dword [esp + 8], 3
mov dword [esp + 4], esi
mov dword [esp + 0xc], 4
test edi, edi
je 0x401bbf
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [esp + 0xc]
mov ecx, eax
dec eax
mov dword [esp + 0xc], eax
test ecx, ecx
jle 0x401bbe
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
test esi, esi
jne 0x401b86
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401b55
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x20000013
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 4
call ebx
mov esi, eax
test esi, esi
je 0x401b79
cmp dword [esp + 8], 0xc8
je 0x401bbe
xor esi, esi
jmp 0x401b55
pop ebx
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x402e90
Capabilities:
Check os version

Disassembly:
sub esp, 0x56c
mov eax, dword [0x42b0e0]
xor eax, esp
mov dword [esp + 0x568], eax
mov eax, dword [esp + 0x570]
push ebp
push esi
push edi
push 0x11c
lea ecx, [esp + 0x4c]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00412bb0
push 0x11c
push 0
push ebx
mov dword [esp + 0x60], 0x11c
call fcn.00412bb0
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x402f34
push str.IsWow64Process
push str.kernel32
call ebp
push eax
call edi
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
je 0x402f34
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x402f34
cmp dword [esp + 0x10], 0
jne 0x402ffb
push str.RtlGetVersion
push str.ntdll
call ebp
push eax
call edi
test eax, eax
je 0x402f4e
lea ecx, [esp + 0x48]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
lea edi, [eax + edx*2]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x402f7b
mov ecx, 0x47
lea esi, [esp + 0x48]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x16e]
push ecx
mov word [esp + 0x170], ax
call fcn.00412bb0
add esp, 0xc
lea esi, [esp + 0x164]
call fcn.00402dd0
test eax, eax
jl 0x402ffb
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.00403030
test eax, eax
je 0x402ffb
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x402fee
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0xc]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x403006
mov edx, dword [esp + 0xc]
mov dword [edx + 4], 0
jmp 0x403006
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0
mov ecx, dword [esp + 0x574]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00411161
add esp, 0x56c
ret 4