joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cc30
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cc61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc49
add dl, dl
jne 0x41cc6c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccbd
xor eax, eax
add dl, dl
jne 0x41cc79
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd5a
add dl, dl
jne 0x41cc88
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc93
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc9e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccb3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc58
mov eax, 1
add dl, dl
jne 0x41cccb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccd6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccc2
sub eax, ebx
mov ebx, 1
jne 0x41cd09
mov ecx, 1
add dl, dl
jne 0x41ccef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ccfa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cce6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc58
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd20
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd2b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd17
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc58
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd7b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cc58
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e144
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x485603
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e1f5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e1de
test esi, esi
jbe 0x41e1f5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e1d0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e1f5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e1ad
jmp 0x41e1f5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e1f5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48560a
ret
Function at 0x41eab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x48605f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eaeb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb04
lea eax, [ebp - 0x10]
mov edx, dword [0x49e250]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb17
lea eax, [ebp - 0x10]
mov edx, dword [0x49e250]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb23
adc edx, 0
mov edx, dword [edx*4 + 0x49d0e0]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec31
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec24
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec24
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec24
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec24
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec24
cmp dx, 0x150
ja 0x41ec24
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec24
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec24
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ec49
inc ebx
cmp ebx, 0x19
jne 0x41eadd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486066
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x407ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x24], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 1
mov al, byte [0x48ad93]
mov byte [ebp - 0x18], al
xor ecx, ecx
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
mov byte [ebp - 5], cl
mov dword [ebp - 0x2c], 0x15
lea edx, [ebp - 0x28]
push edx
push 0x20119
push 0
push str.SOFTWARETpspCln
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x407c76
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
push 0x48e628
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407c6c
mov byte [ebp - 0x4c], 0
xor edx, edx
mov dword [ebp - 0x4b], edx
mov dword [ebp - 0x47], edx
mov dword [ebp - 0x43], edx
mov dword [ebp - 0x3f], edx
mov dword [ebp - 0x3b], edx
mov dword [ebp - 0x37], edx
mov dword [ebp - 0x33], edx
mov word [ebp - 0x2f], dx
mov byte [ebp - 0x2d], dl
lea eax, [ebp - 0x18]
push eax
push 0x48e62c
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00409000
add esp, 0xc
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00408870
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.00414ae0
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 4
Function at 0x407ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x10], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x14]
push eax
push 0x20219
push 0
push str.SOFTWAREIcafe8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407d60
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.BarId
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407d56
mov byte [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
mov ecx, dword [ebp - 4]
push ecx
push 0x48e648
lea edx, [ebp - 0x3c]
push edx
call fcn.00409000
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408870
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.00414ae0
xor edx, edx
cmp edx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 4
Function at 0x407de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x24], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 1
mov al, byte [0x48ad99]
mov byte [ebp - 0x18], al
xor ecx, ecx
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
mov byte [ebp - 5], cl
mov dword [ebp - 0x2c], 0x15
lea edx, [ebp - 0x28]
push edx
push 0x20119
push 0
push str.SOFTWARECentury_Networkyileyoo
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x407eb6
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
push str.NetbarId
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407eac
mov byte [ebp - 0x4c], 0
xor edx, edx
mov dword [ebp - 0x4b], edx
mov dword [ebp - 0x47], edx
mov dword [ebp - 0x43], edx
mov dword [ebp - 0x3f], edx
mov dword [ebp - 0x3b], edx
mov dword [ebp - 0x37], edx
mov dword [ebp - 0x33], edx
mov word [ebp - 0x2f], dx
mov byte [ebp - 0x2d], dl
lea eax, [ebp - 0x18]
push eax
push 0x48e6b8
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00409000
add esp, 0xc
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00408870
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.00414ae0
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 4
Function at 0x4080b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x4a2740], 0
je 0x4080d6
mov eax, dword [0x4a2744]
jmp 0x40832f
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00437410
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
cmp dword [0x4a2728], 0
jne 0x40814b
push str.ntdll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 0x150], eax
push str.RtlGetVersion
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4a2728], eax
cmp dword [0x4a2728], 0
je 0x40814b
lea edx, [ebp - 0x128]
push edx
call dword [0x4a2728]
test eax, eax
jge 0x40814b
mov eax, dword [0x4a2744]
jmp 0x40832f
mov dword [ebp - 4], 0
mov dword [ebp - 0x14c], 0
xor eax, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x14c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x154], edx
cmp dword [ebp - 0x154], 5
je 0x4081cf
cmp dword [ebp - 0x154], 6
je 0x40824c
cmp dword [ebp - 0x154], 0xa
je 0x4082f8
jmp 0x40831a
cmp dword [ebp - 0x120], 0
jne 0x4081e1
mov dword [ebp - 4], 1
jmp 0x408247
cmp dword [ebp - 0x120], 1
jne 0x4081f3
mov dword [ebp - 4], 2
jmp 0x408247
cmp dword [ebp - 0x120], 2
jne 0x408247
movzx eax, byte [ebp - 0xe]
cmp eax, 1
jne 0x408218
movzx ecx, word [ebp - 0x14c]
cmp ecx, 9
jne 0x408218
mov dword [ebp - 4], 3
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x40822d
mov dword [ebp - 4], 4
jmp 0x408234
mov dword [ebp - 4], 6
movzx edx, word [ebp - 0x10]
and edx, 0x8000
je 0x408247
mov dword [ebp - 4], 5
jmp 0x40831a
cmp dword [ebp - 0x120], 0
jne 0x408277
movzx eax, byte [ebp - 0xe]
cmp eax, 1
jne 0x408265
mov dword [ebp - 4], 7
movzx ecx, byte [ebp - 0xe]
cmp ecx, 1
je 0x408275
mov dword [ebp - 4], 8
jmp 0x4082f6
cmp dword [ebp - 0x120], 1
jne 0x4082a2
movzx edx, byte [ebp - 0xe]
cmp edx, 1
je 0x408290
mov dword [ebp - 4], 9
movzx eax, byte [ebp - 0xe]
cmp eax, 1
jne 0x4082a0
mov dword [ebp - 4], 0xa
jmp 0x4082f6
cmp dword [ebp - 0x120], 2
jne 0x4082cd
movzx ecx, byte [ebp - 0xe]
cmp ecx, 1
je 0x4082bb
mov dword [ebp - 4], 0xb
movzx edx, byte [ebp - 0xe]
cmp edx, 1
jne 0x4082cb
mov dword [ebp - 4], 0xc
jmp 0x4082f6
cmp dword [ebp - 0x120], 3
jne 0x4082f6
movzx eax, byte [ebp - 0xe]
cmp eax, 1
je 0x4082e6
mov dword [ebp - 4], 0xd
movzx ecx, byte [ebp - 0xe]
cmp ecx, 1
jne 0x4082f6
mov dword [ebp - 4], 0xe
jmp 0x40831a
cmp dword [ebp - 0x120], 0
jne 0x40831a
movzx edx, byte [ebp - 0xe]
cmp edx, 1
jne 0x408313
mov dword [ebp - 4], 0xf
jmp 0x40831a
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 4]
mov dword [0x4a2744], eax
mov dword [0x4a2740], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x408340
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.00437410
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x40839d
xor al, al
jmp 0x408428
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x408419
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x408401
cmp dword [ebp + 0xc], 0
je 0x4083e5
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x408401
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x230]
mov dword [eax], ecx
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x408428
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x4083bf
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x408440
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47df98
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14c], 0
cmp dword [ebp + 0xc], 0
jne 0x408498
push pe_nt_image_headers32
lea eax, [ebp - 0x13c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
jmp 0x4084b5
mov ecx, dword [ebp + 0xc]
push ecx
push 0x48e758
push pe_nt_image_headers32
lea edx, [ebp - 0x13c]
push edx
call fcn.0042eddb
add esp, 0x10
push 0x48ad9b
lea ecx, [ebp - 0x2c]
call fcn.004086f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0x34
push 0
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4085e3
mov dword [ebp - 0x140], 0
cmp dword [ebp - 0x140], 0
jne 0x40851f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0042f601
add esp, 4
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x140], edx
jmp 0x4084f6
mov eax, dword [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4085c8
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
push ecx
push 0x48e75c
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4085c8
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push str._d._d._d._d
mov eax, dword [ebp - 0x140]
push eax
call fcn.0042ed57
add esp, 0x18
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00408870
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
push eax
call fcn.0042fa02
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408770
mov edx, dword [ebp - 0x14c]
or edx, 1
mov dword [ebp - 0x14c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408830
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x40ac50
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
push 0
push 0
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x40ac87
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], 1
xor al, al
jmp 0x40acad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40ad40
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x40ad58
mov dword [ebp - 0xc], 0x48e3c4
jmp 0x40ad5f
mov dword [ebp - 0xc], str.POST
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 8]
xor eax, eax
cmp dword [edx + 0x10], 0
setne al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c080
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f018
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x34]
call fcn.004086c0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x44]
call fcn.0040cb10
movzx ecx, al
test ecx, ecx
jne 0x40c10c
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call fcn.00408770
mov eax, dword [ebp - 0x40]
or eax, 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00408830
mov eax, dword [ebp + 8]
jmp 0x40c1e7
push 0x100000
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 0xd], 0
mov ecx, 1
test ecx, ecx
je 0x40c1a4
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40c140
jmp 0x40c1a4
cmp dword [ebp - 0x14], 0
ja 0x40c14c
mov byte [ebp - 0xd], 1
jmp 0x40c1a4
cmp dword [ebp - 0x14], 0x100000
jbe 0x40c170
mov edx, dword [ebp - 0x38]
push edx
call fcn.0042ec89
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40c18f
jmp 0x40c1a4
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004091f0
jmp 0x40c120
mov edx, dword [ebp - 0x38]
push edx
call fcn.0042ec89
add esp, 4
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x40c1c0
lea ecx, [ebp - 0x34]
call fcn.00409a10
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408770
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00408830
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40c210
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov byte [ebp - 9], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x15
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x40c293
mov eax, dword [ebp - 4]
push eax
call fcn.0042ecc3
add esp, 4
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0x15
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c287
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040ced0
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.0042ec89
add esp, 4
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret 4

Function at 0x40c2a0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x45], 0
xor eax, eax
mov word [ebp - 0x44], ax
push 0x3a
push 0
lea ecx, [ebp - 0x42]
push ecx
call fcn.00437410
add esp, 0xc
mov dword [ebp - 4], 0x3c
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
push 5
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40c315
mov dword [ebp - 0x4c], 0
push 0xa
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0043015f
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 0x45], 1
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 4