joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005f43c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x1ac]
mov ebx, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x1c], eax
or edi, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1005f494
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.10046f2d
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x1005f4b6
push str.Error_accept__ing_server_connect
push ebx
call fcn.10046801
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x1005f50a
push str.Connection_accepted_from_server_n
push ebx
call fcn.100468bd
and dword [esi + 0x3f0], 0
push 1
push edi
mov dword [esi + 0x1ac], edi
call fcn.1006503f
xor ecx, ecx
inc ecx
mov dword [esi + 0x1bc], ecx
mov eax, dword [ebx + 0x1e8]
add esp, 0x10
test eax, eax
je 0x1005f508
push ecx
push edi
push dword [ebx + 0x1ec]
call eax
add esp, 0xc
test eax, eax
je 0x1005f508
push esi
call fcn.1005f8cd
pop ecx
push 0x2a
jmp 0x1005f4b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100704e7
leave
ret

Function at 0x100614e4
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x64
cdq
pop ebx
idiv ebx
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, dword [edi]
cmp eax, 2
je 0x10061511
push str.Couldnt_set_desired_mode
push ecx
call fcn.10046801
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x10061565
cmp dword [ebp + 0xc], 0xc8
je 0x1006152b
push dword [ebp + 0xc]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.100468bd
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x1006153b
push edi
call fcn.1006128e
jmp 0x10061560
cmp eax, 0x14
jne 0x10061548
push edi
call fcn.1006051f
jmp 0x10061560
cmp eax, 0x15
jne 0x10061555
push edi
call fcn.1006127a
jmp 0x10061560
cmp eax, 0x16
jne 0x10061563
push edi
call fcn.100613f0
mov esi, eax
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10065dfc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x10065e26
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10065e17
xor eax, eax
jmp 0x10065e79
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x10065e57
cmp dword [esi + 8], 0
jne 0x10065e47
push 0x10096c0c
push dword [eax + 8]
call fcn.10073ea0
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x10065e47
or eax, 0xffffffff
jmp 0x10065e79
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.10076510
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10065e77
cmp dword [esi + 8], eax
je 0x10065e71
push dword [esi + 8]
call fcn.10073c26
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10068421
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10068430
sub esi, ecx
lea ebx, [esi + esi]
push ebx
call dword [section..data]
mov edi, eax
pop ecx
test edi, edi
jne 0x10068452
push 0x1b
pop eax
jmp 0x100684e1
push esi
push dword [ebp + 0xc]
push edi
call fcn.100684e6
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x100684cf
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100684c4
push 0
push ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x100b5004]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006850b
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0xf0000000
xor esi, esi
inc esi
push esi
push 0
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x24], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100685db
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.100685e9
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.1006b220
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push edi
push edi
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x100685a4
mov esi, edi
jmp 0x100685ce
mov ecx, dword [ebp + 8]
push dword [ebp - 0x24]
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
push edi
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100704e7
leave
ret
Function at 0x1006c332
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
pop ecx
test edi, edi
je 0x1006c41c
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x1006c39b
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x1006c3a1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
pop ecx
xor ebx, ebx
pop ecx
test eax, eax
je 0x1006c414
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
inc ecx
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
dec ebx
jne 0x1006c3bb
mov ebx, dword [ebp - 8]
jmp 0x1006c414
push 1
push 0x100a0a9f
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x100a0aa0
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x1006c3f6
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1008aa90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1007c61e
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1008aac8
xor eax, eax
jmp 0x1008aaf4
cmp esi, dword [ebp - 4]
je 0x1008aaf1
cmp dword [ebp + 0xc], 0
je 0x1008aaf1
push dword [edi + 0x9c]
call fcn.1008a69e
push dword [edi + 0x9c]
mov esi, eax
call fcn.1007a68a
pop ecx
pop ecx
cmp esi, eax
je 0x1008aac4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x1008b5c0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100b5350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1007a328
mov dword [ebp - 0x14], eax
cmp dword [0x100b85cc], edi
jne 0x1008b6b1
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1008b63e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1008b791
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1008b791
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008b791
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x100b85cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x100b85d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x100b85d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100b85dc], eax
test eax, eax
je 0x1008b6ae
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100b85d8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1008b6d6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1008b6c9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1008b6eb
push 4
pop eax
jmp 0x1008b793
cmp dword [ebp - 0x14], edi
je 0x1008b6eb
push dword [0x100b85cc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1008b6d0
mov eax, dword [0x100b85d8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1008b749
cmp dword [0x100b85dc], esi
je 0x1008b749
push eax
call ebx
push dword [0x100b85dc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1008b749
test eax, eax
je 0x1008b749
call ecx
test eax, eax
je 0x1008b73e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1008b73e
test byte [ebp - 8], 1
jne 0x1008b749
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1008b779
mov eax, dword [0x100b85d0]
cmp eax, esi
je 0x1008b776
push eax
call ebx
test eax, eax
je 0x1008b776
call eax
mov edi, eax
test edi, edi
je 0x1008b776
mov eax, dword [0x100b85d4]
cmp eax, esi
je 0x1008b776
push eax
call ebx
test eax, eax
je 0x1008b776
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x100b85cc]
call ebx
test eax, eax
je 0x1008b791
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1008b793
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100704e7
leave
ret
Function at 0x403370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2f4
mov eax, dword [0x422004]
xor eax, esp
mov dword [esp + 0x2f0], eax
push esi
push 0x144
lea eax, [esp + 0x1ac]
mov esi, ecx
push 0
push eax
call fcn.00405500
push 0x144
lea eax, [esp + 0x70]
push 0
push eax
call fcn.00405500
add esp, 0x18
push 0xffffffffffffffff
push dword [0x42351c]
call dword [0x4170c4]
push 0x58
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00405500
add esp, 0xc
mov dword [esp + 8], 0x58
lea eax, [esp + 0x60]
mov dword [esp + 0xc], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1a8]
mov dword [esp + 0x14], 0x41f088
push 0x144
push eax
push 0x3f7
push esi
mov dword [esp + 0x54], 0x41f0a4
mov dword [esp + 0x38], 0x144
mov dword [esp + 0x4c], 2
call dword [0x4171a0]
lea eax, [esp + 0x1a8]
push 0x41f084
push eax
call fcn.004050b0
add esp, 8
test eax, eax
je 0x40346b
push 0x41e8aa
push 0x3f7
push esi
call dword [0x4171c8]
mov eax, dword [0x423530]
test eax, eax
je 0x403461
push eax
call fcn.00408689
add esp, 4
mov dword [0x423534], 0
mov eax, dword [0x423538]
cmp eax, 1
jne 0x403576
lea eax, [esp + 8]
push eax
call dword [0x417008]
test eax, eax
je 0x403576
lea eax, [esp + 0x60]
push eax
push 0x3f7
push esi
call dword [0x4171c8]
lea eax, [esp + 0x60]
push 0x41f0a8
push eax
call fcn.00406b17
add esp, 8
mov dword [0x42353c], eax
test eax, eax
je 0x403563
push 2
push 0
push eax
call fcn.00406ee5
push dword [0x42353c]
call fcn.00406868
push dword [0x42353c]
mov dword [0x423534], eax
call fcn.00407378
push dword [0x423534]
call fcn.004089c5
add esp, 0x18
mov dword [0x423530], eax
test eax, eax
je 0x403555
push dword [0x42353c]
push dword [0x423534]
push 1
push eax
call fcn.0040888a
add esp, 0x10
cmp eax, dword [0x423534]
je 0x40353a
push 0x10
push 0x41f050
push 0x41f0ac
push esi
call dword [0x4171b0]
push dword [0x42353c]
call fcn.00406ba5
add esp, 4
jmp 0x403576
push ecx
mov ecx, esi
call fcn.00402dc0
add esp, 4
push dword [0x42353c]
call fcn.00406ba5
add esp, 4
jmp 0x403576
push 0x10
push 0x41f050
push 0x41f0c0
jmp 0x40356f
push 0x10
push 0x41f050
push 0x41f0dc
push esi
call dword [0x4171b0]
push dword [0x42351c]
call dword [0x4170c8]
mov ecx, dword [esp + 0x2f4]
pop esi
xor ecx, esp
call fcn.0040438f
mov esp, ebp
pop ebp
ret
Function at 0x403f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 0
call dword [0x4170d0]
mov dword [0x42351c], eax
test eax, eax
je 0x40402d
call dword [section._________1]
push 0
push 0x4035a0
push 0
push 0x65
push esi
call dword [0x4171d4]
push dword [ebp + 0x14]
mov esi, eax
push esi
call dword [0x41719c]
push 0x423528
push 0
push esi
push 0x402570
push 0
push 0
call fcn.004069cf
add esp, 0x18
mov dword [0x423518], eax
lea eax, [ebp - 0x20]
push 0
push 0
push 0
push eax
call dword [0x417190]
mov edx, eax
test edx, edx
je 0x40402d
mov edi, dword [0x4171a4]
mov ebx, dword [0x4171f8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add eax, 0xffff6f00
cmp eax, 5
cmovbe ecx, esi
mov dword [ebp - 0x20], ecx
cmp edx, 0xffffffff
je 0x404042
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x404017
lea eax, [ebp - 0x20]
push eax
call ebx
lea eax, [ebp - 0x20]
push eax
call dword [0x417194]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [0x417190]
mov edx, eax
test edx, edx
jne 0x403fe3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040438f
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040438f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40d8bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d732
Function at 0x401080
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5453b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x4010b5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
jmp 0x4010bb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [ebp - 0x39]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.004064f0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x1c]
ja 0x40111c
mov ecx, dword [0x557060]
push ecx
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406400
jmp 0x40112d
push 0
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406300
cmp dword [ebp - 0x18], 0x10
jb 0x40113b
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x70], ecx
jmp 0x401141
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x401154
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x74], edx
jmp 0x40115a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x70]
push edx
push 1
push 0
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x49]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 3
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.004064f0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406230
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004064f0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x401320
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x401339
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
jmp 0x40133f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0x10
jb 0x401352
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
jmp 0x401358
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov esp, ebp
pop ebp
ret
Function at 0x401500
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x1c], 0x3e8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x401534
push 0x5570c4
push 0x5af290
call fcn.00408d10
add esp, 8
xor al, al
jmp 0x4015cd
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x401558
push 0x5570a0
push 0x5af290
call fcn.00408d10
add esp, 8
xor al, al
jmp 0x4015cd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x401587
push 0x5570a0
push 0x5af290
call fcn.00408d10
add esp, 8
xor al, al
jmp 0x4015cd
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
fild qword [ebp - 0x30]
fild qword [ebp - 0x18]
fdivp st(1)
fmul qword [0x557098]
fstp qword [ebp - 8]
fld qword [0x557098]
fcomp qword [ebp - 8]
fnstsw ax
test ah, 0x41
jne 0x4015c3
mov dword [ebp - 0x34], 1
jmp 0x4015ca
mov dword [ebp - 0x34], 0
mov al, byte [ebp - 0x34]
mov esp, ebp
pop ebp
ret
Function at 0x41483d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x54947c
call fcn.0052b2bd
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x414862
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4148b4
call fcn.004276e8
push eax
lea ecx, [ebp - 0x10]
call fcn.0040db80
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052d29b
push eax
call fcn.0040f2dd
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040f5b8
mov eax, esi
call fcn.0052b395
ret 8

Function at 0x415431
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x415479
call fcn.0044d549
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x415479
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4154bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4154a5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4154a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4154b9
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4179e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0044d549
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417a1c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00417625
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8