joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b36c0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x5b37ac
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
cmp esi, 3
jl 0x5b373d
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
jmp 0x5b3791
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x5b3751
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x5b377b
lea eax, [esi + 0x3c]
jmp 0x5b3788
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
sub esi, 3
add ebx, 4
add edi, 3
inc edx
test esi, esi
jg 0x5b36e0
pop edi
pop esi
mov eax, ebx
mov byte [edx], 0
pop ebx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
ret
Function at 0x5b3bd0
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
mov eax, 0x6c
call fcn.0050de20
mov eax, dword [0x6b6538]
xor eax, esp
mov dword [esp + 0x68], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5b3c46
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x5b3c3a
mov eax, 8
call fcn.0050de20
movsd xmm0, qword [0x6782e0]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.0055e5a0
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5b3caa
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x5b3c9e
mov eax, 8
call fcn.0050de20
movsd xmm0, qword [0x6782e0]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.0055e5a0
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.005b3d30
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.0050de20
movsd xmm0, qword [0x62bc30]
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.0055e5a0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], eax
mov eax, 8
call fcn.0050de20
movsd xmm0, qword [0x62bc30]
lea eax, [esp + 0xc]
movsd qword [esp], xmm0
push 4
push eax
call fcn.0055e5a0
mov ecx, dword [esp + 0x78]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.0050ce82
add esp, 0x6c
ret
Function at 0x5b48f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.0050de20
mov eax, dword [0x6b6538]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x5b4956
cmp edi, dword [esi]
je 0x5b494d
test ebp, ebp
je 0x5b49d0
test ebx, ebx
js 0x5b49d0
mov eax, 1
mov dword [esi], edi
jmp 0x5b495c
mov edi, dword [esi]
test edi, edi
je 0x5b49d0
test ebp, ebp
je 0x5b4aea
push edi
call fcn.0055d1f0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x5b4990
push 0x28
push str.....openssl_1.1.0fcryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.0056a2d0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x5b49eb
push dword [esp + 0x10]
push edi
push dword [esi + 4]
call fcn.00559650
add esp, 0xc
test eax, eax
je 0x5b49d0
push ebx
push ebp
push dword [esi + 4]
call fcn.00559800
add esp, 0xc
test eax, eax
je 0x5b49d0
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.005595b0
add esp, 0xc
test eax, eax
jne 0x5b4a07
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0050ce82
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x5b49d0
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.00525b00
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x5b4a2a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.00526600
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x5b4a30
push edx
push edi
push dword [esi + 8]
call fcn.00559650
add esp, 0xc
test eax, eax
je 0x5b49d0
push edi
call fcn.0055d1f0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.00559800
add esp, 0x10
test eax, eax
je 0x5b49d0
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x5b4a80
push dword [esp + 0x10]
push edi
push dword [esi + 0xc]
call fcn.00559650
add esp, 0xc
test eax, eax
je 0x5b49d0
push edi
call fcn.0055d1f0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.00559800
add esp, 0x10
test eax, eax
je 0x5b49d0
push dword [esi + 8]
push dword [esi + 4]
call fcn.00559830
add esp, 8
test eax, eax
je 0x5b49d0
mov eax, 1
jmp 0x5b49d2
test eax, eax
je 0x5b4aca
jmp 0x5b4a2e
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x30f7008], 0x8088405
inc edx
mov dword [ebx + 0x30f7008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb9c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbb5
add dl, dl
jne 0x41cbd8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc29
xor eax, eax
add dl, dl
jne 0x41cbe5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccc6
add dl, dl
jne 0x41cbf4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc15
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc1f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbc4
mov eax, 1
add dl, dl
jne 0x41cc37
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc2e
sub eax, ebx
mov ebx, 1
jne 0x41cc75
mov ecx, 1
add dl, dl
jne 0x41cc5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc66
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc52
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc97
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc83
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cce7
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbc4
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x30e056f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e161
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e14a
test esi, esi
jbe 0x41e161
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ac
test eax, eax
jne 0x41e13c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e161
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e119
jmp 0x41e161
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e161
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30e0576
ret
Function at 0x41e9a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x30e0f53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e9df
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e9f8
lea eax, [ebp - 0x10]
mov edx, dword [0x30f9248]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ea0b
lea eax, [ebp - 0x10]
mov edx, dword [0x30f9248]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ea17
adc edx, 0
mov edx, dword [edx*4 + 0x30f80d8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41eb25
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41eb18
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d9c
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41eb18
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41eb18
cmp dx, 0x150
ja 0x41eb18
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41eb18
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eb3d
inc ebx
cmp ebx, 0x19
jne 0x41e9d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30e0f5a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40107f
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470b1a
mov eax, dword fs:[0]
push eax
mov eax, 0x19064
call fcn.00461d80
mov eax, dword [0x49dd70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x19070], edi
mov dword [ebp - 0x19058], esi
push esi
push esi
xor ebx, ebx
push esi
inc ebx
push ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1905c], eax
cmp eax, esi
jne 0x4010f0
push 0xffffffffffffffff
push 0x47c7e8
mov ecx, edi
call fcn.0040398c
jmp 0x40123b
push esi
push 0x102
push esi
push esi
lea ecx, [ebp + 0xc]
call fcn.004037d7
push eax
push dword [ebp - 0x1905c]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x19060], eax
cmp eax, esi
jne 0x401128
push dword [ebp - 0x1905c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40122d
push esi
lea ecx, [ebp - 0x1906c]
push ecx
lea ecx, [ebp - 0x19068]
push ecx
push 0x20000013
push eax
mov dword [ebp - 0x19068], esi
mov dword [ebp - 0x1906c], esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x19068], 0x190
ja 0x401217
push 0x19000
lea eax, [ebp - 0x19010]
push esi
push eax
mov dword [ebp - 0x19064], esi
call fcn.00461d00
add esp, 0xc
lea eax, [ebp - 0x19064]
push eax
push 0x19000
lea eax, [ebp - 0x19010]
push eax
push dword [ebp - 0x19060]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401217
mov eax, dword [ebp - 0x19064]
cmp eax, esi
jbe 0x401217
push dword [ebp - 0x19060]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp + eax - 0x19010], 0
call esi
push dword [ebp - 0x1905c]
call esi
push 0xffffffffffffffff
lea eax, [ebp - 0x19010]
push eax
lea ecx, [ebp - 0x19054]
call fcn.0040398c
push 0x19000
lea eax, [ebp - 0x19010]
push 0
push eax
mov byte [ebp - 4], 2
call fcn.00461d00
add esp, 0xc
lea eax, [ebp - 0x19054]
push eax
mov ecx, edi
call fcn.004039ac
lea ecx, [ebp - 0x19054]
mov dword [ebp - 0x19058], ebx
mov byte [ebp - 4], bl
call fcn.004037bd
jmp 0x401241
push dword [ebp - 0x19060]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1905c]
call esi
push 0xffffffffffffffff
push 0x47c7e8
mov ecx, edi
call fcn.0040398c
mov dword [ebp - 0x19058], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.004037bd
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460f48
leave
ret 0x48
Function at 0x40126b
Capabilities:
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x49dd70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push esi
push esi
push 1
push esi
mov dword [ebp - 0x410], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
cmp ebx, esi
je 0x4013df
push esi
push 0x102
push esi
push esi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x40c], eax
cmp eax, esi
jne 0x4012cb
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4013df
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 4
pop ebx
push esi
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x428]
push ecx
push 0x20000013
push eax
mov dword [ebp - 0x418], ebx
call edi
push esi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x20000005
push dword [ebp - 0x40c]
mov dword [ebp - 0x41c], ebx
call edi
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp - 0x410]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x414], eax
cmp eax, 0xffffffff
jne 0x401344
push dword [ebp - 0x40c]
jmp 0x4012c0
mov edi, 0x400
push edi
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.00461d00
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x410], esi
jmp 0x4013a4
mov eax, dword [ebp - 0x410]
push 0xa
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x410], eax
cmp eax, esi
jne 0x40136e
push esi
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4013d3
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x40c]
call ebx
cmp dword [ebp - 0x408], esi
jne 0x40136e
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4013e1
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460f48
leave
ret 8
Function at 0x401921
Capabilities:
Read .ini file

Disassembly:
push 0xb8
mov eax, 0x470c0e
call fcn.00461c59
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
xor ebx, ebx
mov dword [ebp - 0xbc], ecx
mov esi, str.2001_01_01_00:00:00
push esi
mov ecx, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], ebx
call fcn.0040398c
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
add eax, 0xd0
inc ebx
push eax
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xc0], ebx
call fcn.0040398c
push str.Data_client.ini
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], ebx
call fcn.004037da
lea ecx, [ebp - 0xb8]
call fcn.004037d7
push eax
push 0x63
lea eax, [ebp - 0x74]
push eax
push esi
push str.LASTTIME
push str.DATA
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.0040391b
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0
call fcn.004037bd
mov eax, edi
call fcn.00461cdc
ret 4

Function at 0x401ba8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49dd70]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1c], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0xc
call fcn.0046208d
push 0xa
mov edi, eax
call fcn.0046208d
pop ecx
pop ecx
push 0xa
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0xc
push edi
push 0x47c8e0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push 0x47c8dc
push eax
call fcn.00460bbb
add esp, 0xc
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0040398c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00460f48
leave
ret 4
Function at 0x401d6f
Capabilities:
Read .ini file
Reference cloudflare dns server

Disassembly:
push 0x2bc
mov eax, 0x470d47
call fcn.00461c59
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 0x2c1], bl
call fcn.0040379b
lea eax, [esi + 0xd0]
push eax
lea eax, [ebp - 0x2c0]
push str._sSysConfig.ini
push eax
mov dword [ebp - 4], ebx
call fcn.00403a56
add esp, 0xc
lea ecx, [ebp - 0x2c0]
call fcn.004037d7
push eax
push 0xc7
lea eax, [ebp - 0xd8]
push eax
push str.1.0.0.1
push 0x47c820
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1a0]
push 0xa
push eax
call fcn.00462138
push eax
call fcn.004620fc
add esp, 0xc
push 0xffffffffffffffff
push str.http:__updatetest.wuji.com_stj.ashx
lea ecx, [ebp - 0x238]
call fcn.0040398c
push 0x47c928
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call fcn.004037da
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x238]
call fcn.004037da
push 0x47c924
lea ecx, [ebp - 0x238]
call fcn.004037da
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x238]
call fcn.004037da
sub esp, 0x44
lea eax, [ebp - 0x238]
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push eax
call fcn.004039ac
lea eax, [ebp - 0x1f4]
push eax
mov ecx, esi
call fcn.0040107f
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 2
call fcn.004037ce
test eax, eax
jle 0x401f4b
push ebx
mov esi, 0x47c920
push esi
lea ecx, [ebp - 0x1f4]
call fcn.00403953
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.004039e1
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004037d7
push eax
call fcn.004620ae
pop ecx
lea ecx, [ebp - 0x27c]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.004037bd
push ebx
push esi
lea ecx, [ebp - 0x1f4]
call fcn.00403953
or esi, 0xffffffff
lea ecx, [ebp - 0x1f4]
sub esi, eax
call fcn.004037ce
add eax, esi
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.00403a1c
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004037d7
push eax
call fcn.004620ae
pop ecx
lea ecx, [ebp - 0x27c]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.004037bd
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1a8]
cmp eax, edi
jle 0x401f44
cmp eax, esi
jl 0x401f4b
mov byte [ebp - 0x2c1], 1
lea ecx, [ebp - 0x1f4]
mov byte [ebp - 4], 1
call fcn.004037bd
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], bl
call fcn.004037bd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c0]
call fcn.004037bd
mov al, byte [ebp - 0x2c1]
call fcn.00461cdc
ret
Function at 0x401f83
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x49dd70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401fd6
jmp 0x401ff1
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401fef
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004612ac
pop ecx
pop ecx
test eax, eax
jne 0x401fc5
mov ebx, dword [ebp - 0x124]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460f48
leave
ret 4