joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403280
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
mov eax, dword [0x40d040]
mov ecx, dword [0x40d844]
mov dword [esp + 0x1c], eax
push 0x10
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp]
push edx
lea eax, [esp + 0xc]
push 0x40b800
push eax
call fcn.00403d6d
mov eax, dword [0x40d8b4]
add esp, 0xc
test eax, eax
je 0x4032de
push 0
lea ecx, [esp + 8]
push ecx
push 4
lea edx, [esp + 0xc]
push edx
push 4
mov ecx, edx
push ecx
push 0x240060
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp]
test eax, eax
push 0
jne 0x403306
push str.Success
push str.Update_code_accepted._Please_Stop_and_Start_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x1c]
call fcn.00403bdb
add esp, 0x20
ret
push str.Error
push str.Incorrect_update_code
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x1c]
call fcn.00403bdb
add esp, 0x20
ret

Function at 0x403330
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xdc
mov eax, dword [0x40d040]
mov ecx, dword [0x40d784]
mov dword [esp + 0xd8], eax
push 0x94
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403360
sub eax, edx
push esi
push eax
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004015c0
add esp, 0xc
xor esi, esi
nop
lea eax, [esp + esi + 8]
push 0x40d788
push eax
push eax
call fcn.00401170
add esi, 0x10
add esp, 0xc
cmp esi, 0x40
jl 0x403380
mov eax, dword [0x40d8b4]
test eax, eax
je 0x4033eb
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [esp + 8]
push ecx
push 0x40
lea edx, [esp + 0x14]
push edx
push 0x40
mov ecx, edx
push ecx
push 0x240011
push eax
call esi
mov eax, dword [0x40d8b4]
test eax, eax
je 0x4033eb
push 0
lea edx, [esp + 8]
push edx
push 0xc
push 0x40d724
push 0xc
push 0x40d724
push 0x240030
push eax
call esi
mov eax, dword [0x40d724]
cmp eax, 2
pop esi
jae 0x403405
call fcn.004019a0
call fcn.00401d30
mov eax, dword [0x40d724]
mov ecx, dword [esp + 0xd8]
call fcn.00403bdb
add esp, 0xdc
ret

Function at 0x403420
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
mov esi, eax
mov ecx, dword [esi]
push 0x130b
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x403458
push 0
push eax
call ebx
call fcn.00403160
call fcn.00401d30
test eax, eax
jne 0x403475
call fcn.00401730
call fcn.004019a0
call fcn.00401ac0
mov eax, dword [esi + edi*4 + 0x18]
push 5
push eax
mov dword [esi + 4], eax
call ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x403dc6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b868
call fcn.00404af0
mov edi, 0x94
mov eax, edi
call fcn.00407340
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40d8e0], ecx
mov eax, dword [esi + 4]
mov dword [0x40d8ec], eax
mov edx, dword [esi + 8]
mov dword [0x40d8f0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40d8e4], esi
cmp ecx, 2
je 0x403e26
or esi, 0x8000
mov dword [0x40d8e4], esi
shl eax, 8
add eax, edx
mov dword [0x40d8e8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403e61
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403e61
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403e79
cmp eax, 0x20b
je 0x403e66
mov dword [ebp - 0x1c], esi
jmp 0x403e8d
cmp dword [ecx + 0x84], 0xe
jbe 0x403e61
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403e87
cmp dword [ecx + 0x74], 0xe
jbe 0x403e61
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00404c5f
pop ecx
test eax, eax
jne 0x403eb9
cmp dword [0x40d8c4], 1
jne 0x403ea6
call fcn.00406b0d
push 0x1c
call fcn.00406996
push 0xff
call fcn.004067fb
pop ecx
pop ecx
call fcn.004072b6
mov dword [ebp - 4], esi
call fcn.0040710b
test eax, eax
jge 0x403ed2
push 0x1b
call fcn.00403da1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ee78], eax
call fcn.00406fe9
mov dword [0x40d8bc], eax
call fcn.00406f47
test eax, eax
jge 0x403ef8
push 8
call fcn.00403da1
pop ecx
call fcn.00406d14
test eax, eax
jge 0x403f09
push 9
call fcn.00403da1
pop ecx
push 1
call fcn.0040682b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403f1f
push eax
call fcn.00403da1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00406cb7
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403f40
movzx eax, word [ebp - 0x40]
jmp 0x403f43
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004039b0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403f61
push edi
call fcn.00406956
call fcn.00406978
jmp 0x403f93
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00404b2b
ret
Function at 0x406895
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40d920], esi
push edi
jne 0x4068b5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40d91c], esi
mov byte [0x40d918], al
jne 0x40691b
mov ecx, dword [0x40ee48]
test ecx, ecx
je 0x4068fc
mov eax, dword [0x40ee44]
sub eax, 4
cmp eax, ecx
jmp 0x4068f5
mov eax, dword [eax]
test eax, eax
je 0x4068e7
call eax
mov eax, dword [0x40ee44]
sub eax, 4
cmp eax, dword [0x40ee48]
mov dword [0x40ee44], eax
jae 0x4068df
mov eax, 0x40d020
mov esi, 0x40d028
cmp eax, esi
mov edi, eax
jae 0x40691b
mov eax, dword [edi]
test eax, eax
je 0x406914
call eax
add edi, 4
cmp edi, esi
jb 0x40690c
mov eax, 0x40d02c
mov esi, 0x40d030
cmp eax, esi
mov edi, eax
jae 0x40693a
mov eax, dword [edi]
test eax, eax
je 0x406933
call eax
add edi, 4
cmp edi, esi
jb 0x40692b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x406954
push dword [ebp + 8]
mov dword [0x40d920], 1
call fcn.004067fb
pop ebp
ret

Function at 0x406996
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40d040]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40d070]
je 0x4069cb
inc eax
cmp eax, 0x13
jb 0x4069bc
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40d070]
jne 0x406af1
mov eax, dword [0x40d8c4]
cmp eax, 1
je 0x406ac9
cmp eax, edx
jne 0x4069fb
cmp dword [0x40d054], 1
je 0x406ac9
cmp ecx, 0xfc
je 0x406af1
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406a31
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407920
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00406770
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406a65
mov eax, edi
push eax
call fcn.00406770
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b924
push edi
call fcn.00407a20
add esp, 0x10
push edi
call fcn.00406770
push dword [esi + 0x40d074]
mov ebx, eax
call fcn.00406770
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407340
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407920
push edi
push ebx
call fcn.00407930
push 0x40b920
push ebx
call fcn.00407930
push dword [esi + 0x40d074]
push ebx
call fcn.00407930
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407825
add esp, 0x2c
jmp 0x406af1
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40d074]
push dword [esi]
call fcn.00406770
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00403bdb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x407409
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40ed24]
mov eax, dword [0x40d040]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4075cf
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ed40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4075cf
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x407473
xor eax, eax
jmp 0x4075e3
test al, 0x20
je 0x407484
push 2
push edi
push edi
push ecx
call fcn.00408f22
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407559
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4075a0
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4074e6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4074d7
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4074b9
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407526
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x407532
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4074ad
jmp 0x407534
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4075ca
cmp dword [ebp + 0x3a4], edi
je 0x4075a0
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x407592
mov dword [0x40d8d8], eax
jmp 0x4075d6
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407584
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x407534
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x407534
push dword [ebp + 0x3a4]
call fcn.00408e0d
pop ecx
jmp 0x4075e0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4075b8
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40746c
mov dword [0x40d8d4], 0x1c
mov dword [0x40d8d8], edi
jmp 0x4075e0
sub eax, dword [ebp - 0x7c]
jmp 0x4075e3
and dword [0x40d8d8], 0
mov dword [0x40d8d4], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00403bdb
add ebp, 0x39c
leave
ret
Function at 0x404208
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x10], bl
jne 0x404274
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov byte [esi + 0x11], bl
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 4], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
cmp ecx, ebx
je 0x40427a
cmp eax, ebx
je 0x404278
lea eax, [esp + 0xc]
push eax
push ebx
push esi
push 0x4042e2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x404270
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 8]
call edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x40428f
mov byte [esi + 0x10], 1
mov al, 1
jmp 0x404291
cmp ecx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x404285
push ecx
call edi
mov esi, dword [esi + 8]
cmp esi, ebx
je 0x40428f
push esi
call edi
xor al, al
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4049d4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x84], 2
pop edi
jne 0x404a22
cmp dword [ebp - 0x90], 5
jne 0x404a22
cmp dword [ebp - 0x8c], eax
jne 0x404a22
push 1
pop eax
leave
ret

Function at 0x404a24
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
pop edi
jne 0x404a70
cmp dword [ebp - 0x90], 5
jne 0x404a70
push 1
pop eax
cmp dword [ebp - 0x8c], eax
je 0x404a72
xor eax, eax
leave
ret

Function at 0x404a74
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
pop edi
jne 0x404ac3
cmp dword [ebp - 0x90], 5
jne 0x404ac3
cmp dword [ebp - 0x8c], 2
jne 0x404ac3
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x404ac7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
pop edi
jne 0x404b0d
cmp dword [ebp - 0x90], 6
jne 0x404b0d
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x404f84
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.GAKeyRWCard
lea edi, [esi + 0x5ec]
mov ecx, edi
call fcn.0040817f
mov ecx, edi
call fcn.004081c8
cmp dword [esi + 0x1fc], 0
lea ebx, [esi + 0x1fc]
je 0x404fb9
mov ecx, esi
call fcn.00404fec
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea edi, [esi + 0x200]
push 0
add esi, 0x3f4
push 1
push edi
push esi
push ebx
call ebp
test eax, eax
jne 0x404fe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push edi
push esi
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405109
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov esi, ecx
push eax
push 1
xor edi, edi
push dword [esi + 0x1fc]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x405184
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405311
test eax, eax
je 0x405184
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push edi
push 1
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x405184
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.00414ce0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [eax], ecx
push 1
pop ebx
cmp dword [ebp - 4], edi
je 0x405195
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [ebp - 4], edi
cmp dword [ebp - 8], edi
je 0x4051a3
push dword [ebp - 8]
call fcn.004152aa
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4051ac
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov eax, 0x42fe40
call fcn.00414ae4
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x20], ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call fcn.00415393
mov ebx, eax
pop ecx
cmp ebx, esi
mov dword [ebp + 0xc], ebx
jne 0x4051f5
or dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x24]
push 0x439db8
push eax
call fcn.00415270
push edi
push esi
push ebx
call fcn.00414b10
push edi
push dword [ebp + 8]
push ebx
call fcn.00414ce0
add esp, 0x18
cmp dword [ebp + 0x18], esi
je 0x40521a
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x20]
call fcn.00405357
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push esi
push esi
push 0x8004
push dword [eax + 0x1fc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40524a
or dword [ebp - 0x28], 0xffffffff
lea eax, [ebp - 0x28]
push 0x439db8
push eax
call fcn.00415270
push esi
push edi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40526c
or dword [ebp - 0x2c], 0xffffffff
lea eax, [ebp - 0x2c]
push 0x439db8
push eax
call fcn.00415270
lea eax, [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
push eax
push esi
push esi
push esi
push 1
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x4052d6
push dword [ebp - 0x18]
call fcn.00415393
pop ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push esi
push 1
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x4052d6
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00405311
cmp eax, esi
jne 0x4052d6
or dword [ebp - 0x30], 0xffffffff
lea eax, [ebp - 0x30]
push 0x439db8
push eax
call fcn.00415270
and dword [ebp + 0x18], 0
mov eax, 0x4052df
ret
mov dword [ebp + 0x18], 1
jmp 0x4052e4
cmp ebx, esi
je 0x4052ef
push ebx
call fcn.004152aa
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x4052fd
push dword [ebp - 0x1c]
call fcn.004152aa
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x405b9b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
xor eax, eax
cmp dword [esi], ebx
lea edi, [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
jne 0x405bc8
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [esi], eax
je 0x405c30
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x405cc7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x405c30
push dword [esi + 0x224]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x405c0d
cmp eax, ebx
je 0x405c1f
cmp eax, 1
jne 0x405c1f
mov ecx, esi
call fcn.00405c3f
push 0xffffffffffffffff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
jne 0x405c34
xor al, al
jmp 0x405c3a
mov byte [esi + 4], 1
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405cd5
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x42ff68
call fcn.00414ae4
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x1c]
lea eax, [esi + 0x228]
push eax
call fcn.004081f0
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
call fcn.00405c3f
push ebx
push ebx
push ebx
push 1
push str.PAssUpdate
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x405d4e
mov edx, dword [esi + 0x348]
push ebx
push ebx
mov ecx, 0x445418
push 3
push ecx
push ecx
mov cx, word [esi + 0x350]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x405d4c
mov ecx, esi
call fcn.00405c3f
jmp 0x405d4e
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040821a
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4061ac
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
call fcn.004154d0
push 0x3c
mov esi, eax
pop ebx
lea eax, [ebp - 0x3c]
push ebx
push 0
push eax
call fcn.00414b10
add esp, 0x10
mov ecx, edi
mov dword [ebp - 0x3c], ebx
push esi
call fcn.0042791d
lea ebx, [edi + 8]
push esi
mov ecx, ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
call fcn.0042791d
lea ecx, [edi + 0x10]
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
call fcn.0042791d
lea ecx, [edi + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
call fcn.0042791d
lea ecx, [edi + 0x18]
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
call fcn.0042791d
lea ecx, [edi + 0x1c]
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call fcn.0042791d
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
setne byte [ebp + 0xb]
or esi, 0xffffffff
mov ecx, edi
push esi
call fcn.0042796c
push esi
mov ecx, ebx
call fcn.0042796c
push esi
lea ecx, [edi + 0x10]
call fcn.0042796c
push esi
lea ecx, [edi + 0x14]
call fcn.0042796c
push esi
lea ecx, [edi + 0x18]
call fcn.0042796c
push esi
lea ecx, [edi + 0x1c]
call fcn.0042796c
mov eax, dword [ebp - 0x30]
mov dword [edi + 4], eax
mov ax, word [ebp - 0x24]
mov word [edi + 0xc], ax
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4078f0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
movzx edx, byte [eax + str.91__]
inc eax
mov dl, byte [edx + ecx - 1]
cmp eax, 0x1c
mov byte [eax + 0x445b07], dl
movzx edx, byte [eax + 0x440ac7]
mov dl, byte [edx + ecx - 1]
mov byte [eax + 0x445ac7], dl
jl 0x4078f8
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, 0x4457e0
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x440ae4]
test al, al
jbe 0x407985
movzx edi, al
movzx edx, byte [0x445b08]
xor ecx, ecx
mov bl, byte [ecx + 0x445b09]
lea eax, [ecx + 0x445b08]
inc ecx
cmp ecx, 0x1b
mov byte [eax], bl
jl 0x407945
mov byte [0x445b23], dl
xor ecx, ecx
movzx edx, byte [0x445ac8]
mov bl, byte [ecx + 0x445ac9]
lea eax, [ecx + 0x445ac8]
inc ecx
cmp ecx, 0x1b
mov byte [eax], bl
jl 0x407968
dec edi
mov byte [0x445ae3], dl
jne 0x40793c
xor eax, eax
movzx ecx, byte [eax + 0x440af4]
mov cl, byte [ecx + 0x445b07]
mov byte [esi + eax - 0x18], cl
movzx ecx, byte [eax + 0x440b0c]
mov cl, byte [ecx + 0x445aab]
mov byte [esi + eax], cl
inc eax
cmp eax, 0x18
jl 0x407987
inc dword [ebp + 8]
add esi, 0x30
cmp esi, 0x445ae0
jl 0x40792c
push 0xc
mov esi, 0x440b24
pop ecx
mov edi, 0x445788
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
pop ebp
ret