joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f6b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xc]
call fcn.00401502
mov edi, str.2BA02BC3_9FF8_4b62_B597_0F81248A2E62
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.0040372c
mov ebx, str._certreg_single_instance_msgid
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, ebx
lea ecx, [ebp - 0xd]
push ecx
push eax
push ebx
lea ecx, [ebp - 0xc]
call fcn.00403823
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ebx, ebx
mov dword [esi + 0xd0], eax
cmp eax, ebx
jne 0x402fdc
push ebx
push 0x10
push str.Can_not_initialize.
call sub.MFC42.DLL_AfxMessageBox
jmp 0x4030c1
lea ecx, [ebp - 0xd8]
call fcn.00419c9e
lea ecx, [ebp - 0xd8]
call fcn.00419e84
test al, al
je 0x403016
push dword [esi + 0xd0]
mov ecx, esi
call fcn.0040318a
push 0x40c
mov ecx, esi
call fcn.0040318a
mov ecx, esi
call fcn.004029b7
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.0040372c
mov edi, str._certreg_single_instance
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
lea ecx, [ebp - 0xd]
push ecx
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.00403823
push dword [ebp - 0xc]
mov ecx, 0x423938
push ebx
call fcn.0041a565
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xd8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40309a
cmp byte [esi + 0xd4], bl
jne 0x4030a2
push dword [esi + 0xd8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 2
push dword [esi + 0xd0]
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x403143
cmp byte [esi + 0xd4], bl
je 0x4030ce
push ebx
push 1
push dword [esi + 0xd0]
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0xd8]
call fcn.00419d62
lea ecx, [ebp - 0xc]
call fcn.00416a21
jmp 0x403160
push ebx
call sub.MFC42.DLL_AfxEnableControlContainer
pop ecx
mov ecx, esi
call sub.MFC42.DLL_CWinApp::Enable3dControls
push 0x5b4
call sub.MFC42.DLL_operatornew
cmp eax, ebx
pop ecx
je 0x4030fd
push ebx
mov ecx, eax
push dword [esi + 0xd0]
call fcn.00403856
mov edi, eax
jmp 0x4030ff
xor edi, edi
cmp edi, ebx
je 0x403143
push ebx
push 0x66
mov ecx, edi
mov dword [esi + 0x20], edi
call sub.MFC42.DLL_CDialog::Create
test eax, eax
je 0x403143
cmp byte [esi + 0xcc], bl
je 0x403130
push ebx
push 3
push dword [esi + 0xd0]
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x5c]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov dword [esi + 0x20], ebx
lea ecx, [ebp - 0xd8]
call fcn.00419d62
mov eax, dword [ebp - 4]
lea ecx, [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push dword [ebp - 0xc]
call fcn.0040149b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x407a4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
cmp byte [ebp + 8], 0
mov dword [ebp - 4], ecx
je 0x407a68
cmp byte [ebp + 8], 1
je 0x407a68
xor eax, eax
jmp 0x407b58
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [eax + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], esi
push eax
mov ecx, dword [eax + 0x34c]
mov dword [ebp - 0x18], ecx
mov cl, byte [ebp + 8]
mov byte [ebp - 0x10], cl
lea ecx, [ebp - 0x78]
call fcn.0041642b
lea eax, [ebp - 0x78]
mov dword [0x422fc8], esi
mov dword [ebp - 0xc], eax
call ebx
cmp byte [ebp + 8], 0
mov dword [0x422fcc], eax
mov eax, dword [ebp + 0xc]
jne 0x407ae3
mov dword [0x422fa4], eax
mov eax, dword [ebp + 0x10]
mov dword [0x422fa0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x422fa8], eax
mov eax, dword [ebp + 0x18]
mov dword [0x422fac], eax
jmp 0x407b00
mov dword [0x42356c], eax
mov eax, dword [ebp + 0x10]
mov dword [0x423568], eax
mov eax, dword [ebp + 0x14]
mov dword [0x423570], eax
mov eax, dword [ebp + 0x18]
mov dword [0x423574], eax
lea ecx, [ebp - 8]
xor eax, eax
push ecx
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0x40760e
push eax
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x407b31
push 2
pop esi
jmp 0x407b4b
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CDialog::DoModal
cmp byte [ebp + 8], 0
mov esi, dword [0x422f9c]
je 0x407b4b
mov esi, dword [0x423564]
lea ecx, [ebp - 0x78]
call fcn.0041a950
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x407c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 1
push ebx
push 0x4200c4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ca4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407c9b
xor al, al
jmp 0x407cb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
mov al, 1
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x40cee6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
lea eax, [ebp - 5]
push edi
mov esi, ecx
xor ebx, ebx
push eax
push str.SoftwareEnterSafeePassAuto_ABChina
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.004020e4
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], bl
mov dword [ebp - 0x14], 3
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ebx
push eax
push 1
push ebx
mov dword [ebp - 0x24], 4
push dword [ebp - 0x20]
mov dword [ebp - 0x10], 0x101
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cfd7
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
push ebx
push str.Down_Address
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x128]
lea ecx, [esi + 0x6c]
push eax
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.web_option
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
je 0x40cfac
mov dword [esi + 0x64], 1
jmp 0x40cfaf
mov dword [esi + 0x64], ebx
mov ecx, 0x422a80
call fcn.004031cb
push ebx
mov ecx, esi
mov dword [esi + 0x74], eax
call sub.MFC42.DLL_CWnd::UpdateData
cmp dword [ebp - 0x20], ebx
je 0x40cfd2
push dword [ebp - 0x20]
call sub.MFC42.DLL_operatordelete
pop ecx
push 1
pop eax
jmp 0x40cfe7
cmp dword [ebp - 0x20], ebx
je 0x40cfe5
push dword [ebp - 0x20]
call sub.MFC42.DLL_operatordelete
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cfec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push 1
call sub.MFC42.DLL_CWnd::UpdateData
push dword [esi + 0x74]
mov ecx, 0x422a80
call fcn.00403469
lea eax, [ebp - 1]
xor ebx, ebx
push eax
push str.SoftwareEnterSafeePassAuto_ABChina
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], ebx
call fcn.004020e4
lea eax, [ebp - 8]
push eax
push 2
push ebx
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d08f
mov eax, dword [esi + 0x6c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [eax - 8]
push eax
push 1
push ebx
push str.Down_Address
push dword [ebp - 8]
call edi
xor eax, eax
cmp dword [esi + 0x64], ebx
push 4
setne al
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push ebx
push str.web_option
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
pop edi
je 0x40d08a
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
pop ecx
push 1
pop eax
jmp 0x40d09f
cmp dword [ebp - 0x18], ebx
je 0x40d09d
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
pop ecx
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x41a635
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 0x18], ecx
lea ecx, [ebp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
push ecx
push ebx
push eax
mov byte [esi + 0x1d], 1
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
mov dword [eax], esi
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x41a679
push 1
mov byte [esi + 0x1d], bl
pop eax
jmp 0x41a681
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41a6aa
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x1d], bl
je 0x41a6e9
cmp dword [esi + 8], ebx
je 0x41a6e9
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41a6e9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 4]
call fcn.0041a778
pop ecx
mov dword [esi + 8], ebx
mov byte [esi + 0x1d], bl
pop esi
pop ebx
ret

Function at 0x41a727
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1d], 0
jne 0x41a734
mov al, 1
jmp 0x41a770
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, eax
push 0x32
call edi
cmp byte [esi + 0x1d], 0
je 0x41a76a
cmp dword [esp + 0x14], 0xffffffff
je 0x41a762
call ebp
sub eax, ebx
cmp eax, dword [esp + 0x14]
ja 0x41a766
push 0x32
jmp 0x41a749
cmp byte [esi + 0x1d], 0
pop edi
pop ebp
sete al
pop ebx
pop esi
ret 4

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 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x401000
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push 0x502000
push 0x100000
push section..bss
push 5
call dword [sym.imp.NTDLL.DLL_ZwQuerySystemInformation]
push dword [0x502000]
push eax
call 0x401042
inc ebp
inc ecx
pop eax
and byte [0x25783020], bh
pop eax
or dl, byte [edx + 0x65]
je 0x4010a7
jb 0x4010a2
dec esp
outsb dx, byte gs:[esi]
je 0x4010a2
and byte [0xa752520], bh
or al, byte [eax]
call dword [sym.imp.MSVCRT.DLL_printf]
add esp, 0xc
mov ebx, section..bss
push dword [ebx + 0x20]
push dword [ebx + 0x24]
push dword [ebx + 0x44]
push dword [ebx + 0x3c]
call 0x4010a5
pop ebx
add byte [0x5d007300], ah
add byte [eax], ah
add byte [eax], dl
dec ecx
add byte [eax + eax + 0x3a], al
add byte [eax], ah
add byte [0x20007500], ah
add byte [ebx], bl
inc ebx
add byte [edx], dh
add byte gs:[ecx], ah
je 0x401087
add byte gs:[eax + eax + 0x69], dl
add byte [ebp], ch
add byte gs:[edx], bh
add byte [eax], ah
add byte [0x2e007500], ah
add byte [0x5d007500], ah
add byte [edx], cl
add byte [eax], al
add bh, bh
adc eax, sym.imp.MSVCRT.DLL_wprintf
dec eax
xor byte [eax], dl
add esp, 0x14
mov eax, dword [ebx]
test eax, eax
je 0x4010b8
add ebx, eax
jmp 0x401050
call dword [sym.imp.MSVCRT.DLL__getch]
ret
Function at 0x509050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb2000]
push edi
jmp 0x50906a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x509071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x509060
mov eax, 1
add ebx, ebx
jne 0x509083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x509094
jne 0x5090b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5090b3
dec eax
add ebx, ebx
jne 0x5090a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x509078
add ebx, ebx
jne 0x5090af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x509105
xor ecx, ecx
sub eax, 3
jb 0x5090cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50913a
sar eax, 1
mov ebp, eax
jmp 0x5090d6
add ebx, ebx
jne 0x5090d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5090a4
inc ecx
add ebx, ebx
jne 0x5090e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5090a4
add ebx, ebx
jne 0x5090f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5090e6
jne 0x509102
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5090e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x509124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x509116
jmp 0x509066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x509124
add edi, ecx
jmp 0x509066
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x509142
cmp byte [edi], 0x11
jne 0x509142
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x509147
lea edi, [esi + 0x102000]
mov eax, dword [edi]
or eax, eax
je 0x5091bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x139724]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1398a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x509174
mov ecx, edi
jns 0x5091a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1398a4]
or eax, eax
je 0x5091b9
mov dword [ebx], eax
add ebx, 4
jmp 0x509191
call dword [esi + 0x1398b4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5091f0
cmp al, 0xef
ja 0x5091e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5091c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5091d2
mov ebp, dword [esi + 0x1398a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x509224
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x4095e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429a40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x464b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 1
je 0x409621
mov byte [ebp - 0x11], 1
test eax, eax
jne 0x409625
mov byte [ebp - 0x11], 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
push 8
push 0x20
call dword [0x42f308]
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x40964e
call dword [0x42f30c]
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
shl ebx, 5
add ebx, eax
lea edx, [eax + ecx]
add ebx, ecx
mov eax, dword [edi + 0xc]
add eax, edi
cmp byte [ebp - 0x11], 0
je 0x4096f9
cmp edx, ebx
je 0x40970b
nop
mov edi, eax
mov esi, edx
add eax, 0x20
add edx, 0x20
push esi
mov ecx, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call dword [0x42f424]
mov edx, dword [esi + 4]
xor edx, dword [edi + 4]
and edx, 1
xor edx, dword [edi + 4]
mov dword [edi + 4], edx
mov ecx, dword [esi + 4]
xor ecx, edx
and ecx, 2
xor ecx, edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
xor eax, ecx
and eax, 4
xor eax, ecx
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x18]
mov dword [edi + 0x14], ecx
lea ecx, [edi + 0x18]
push eax
call dword [0x42f23c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp edx, ebx
jne 0x409680
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
jmp 0x409709
sub ebx, edx
and ebx, 0xffffffe0
push ebx
push edx
push eax
call fcn.00428c42
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [edi + 8]
xor eax, dword [ecx + 8]
and eax, 0x7fffffff
xor eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
test eax, eax
je 0x409738
cmp eax, 0xffffffff
je 0x40975e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x40975e
cmp dword [ebp + 8], 0
je 0x409755
cmp byte [ebp - 0x11], 0
jne 0x409755
push 8
push 0x20
push dword [esi]
call dword [0x42f448]
add esp, 0xc
jmp 0x40975e
push dword [esi]
mov ecx, esi
call fcn.00409580
mov dword [esi], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c070
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push 0
push 0
push 0
push 0
push str.VsyDownload_1.0
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 0
call dword [0x42fac4]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x41c1bd
push esi
push edi
push 0
push 0x84000002
push 0
push 0
push dword [ebp + 8]
push ebx
call dword [0x42fabc]
mov esi, eax
test esi, esi
je 0x41c0e3
mov edi, dword [0x42facc]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000013
push esi
call edi
test eax, eax
jne 0x41c0f5
mov dword [ebp + 8], eax
push ebx
call dword [0x42fac0]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 8], 0xc8
jne 0x41c0e3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push esi
call edi
test eax, eax
jne 0x41c11b
mov dword [ebp - 4], eax
jmp 0x41c11e
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00423e12
mov ecx, dword [ebp - 4]
mov edi, eax
inc ecx
mov dword [ebp - 0x14], edi
push ecx
push 0
push edi
call fcn.00428c4e
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x41c143
mov dword [eax], edi
mov ebx, dword [ebp - 0x14]
xor edi, edi
nop dword [eax + eax]
push 0
mov dword [ebp - 0x10], 0
call dword [0x42f04c]
mov eax, dword [ebp - 4]
mov ecx, 0x400
sub eax, edi
cmp eax, 0x400
cmovae eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [edi + ebx]
push eax
push esi
call dword [0x42fac8]
mov eax, dword [ebp - 0x10]
add edi, eax
test eax, eax
jne 0x41c150
push esi
mov esi, dword [0x42fac0]
call esi
mov ebx, dword [ebp - 0x18]
push ebx
call esi
cmp dword [ebp + 0xc], 0
jne 0x41c1aa
push dword [ebp - 0x14]
call fcn.00423e1b
add esp, 4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4243d7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x42f07c]
test eax, eax
je 0x424416
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424416
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424416
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x424416
cmp dword [ecx + 0x74], 0xe
jbe 0x424416
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x2d53700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02d5378f
jae 0x2d5370e
xor ecx, ecx
call fcn.02d5378f
jae 0x2d5373d
xor eax, eax
call fcn.02d5378f
jae 0x2d5374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02d5378f
adc al, al
jae 0x2d5372f
jne 0x2d53779
stosb byte es:[edi], al
jmp 0x2d53711
call fcn.02d5379b
sub ecx, ebx
jne 0x2d53756
call fcn.02d53799
jmp 0x2d53775
lodsb al, byte [esi]
shr eax, 1
je 0x2d53783
adc ecx, ecx
jmp 0x2d53772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02d53799
cmp eax, 0x7d00
jae 0x2d53772
cmp ah, 5
jae 0x2d53773
cmp eax, 0x7f
ja 0x2d53774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2d53711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x2d73700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02d7378f
jae 0x2d7370e
xor ecx, ecx
call fcn.02d7378f
jae 0x2d7373d
xor eax, eax
call fcn.02d7378f
jae 0x2d7374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02d7378f
adc al, al
jae 0x2d7372f
jne 0x2d73779
stosb byte es:[edi], al
jmp 0x2d73711
call fcn.02d7379b
sub ecx, ebx
jne 0x2d73756
call fcn.02d73799
jmp 0x2d73775
lodsb al, byte [esi]
shr eax, 1
je 0x2d73783
adc ecx, ecx
jmp 0x2d73772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02d73799
cmp eax, 0x7d00
jae 0x2d73772
cmp ah, 5
jae 0x2d73773
cmp eax, 0x7f
ja 0x2d73774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2d73711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x41bca6
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0041be56
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x41bda4
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x41bd47
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x41bd8a
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x41bd5e
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x41bd79
test al, 0x40
je 0x41bd70
mov ecx, dword [edi + 0x20]
jmp 0x41bd77
test al, 0x80
je 0x41bd8a
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x41bd8a
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x41bd16
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret