joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bac50
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.004bac10
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4bacc0
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x4bac99
cmp eax, 3
jbe 0x4bacb1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4baca6
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x4bace0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.004ba9b0
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.004ba970
cmp edi, 1
jne 0x4bad25
cmp word [esi + 6], 0xffff
jne 0x4bad2b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x4bae10
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret

Function at 0x4bc470
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4bc481
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x4bc4ce
call fcn.0049c04f
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.0049af28
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x4bc4c9
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x4bc4e0
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x4bc840
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4bc8cf
cmp byte [esi + 0x5c], 0x77
jne 0x4bc8cf
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esi], ebp
mov dword [esi + 4], edi
je 0x4bc8b3
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4bc891
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.0049ac06
add esp, 0x10
cmp eax, 0x4000
jne 0x4bc8ac
mov dword [esi + 0x10], eax
push 0
push esi
call fcn.004bd630
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4bc8b3
mov eax, dword [esi + 4]
test eax, eax
jne 0x4bc866
jmp 0x4bc8b3
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 0x4c]
push edi
push ebp
push edx
call fcn.004be6c0
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop ebp
sub eax, ecx
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x4bc950
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x4bc9fd
cmp byte [esi + 0x5c], 0x77
jne 0x4bc9fd
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x4bc99e
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.0049ac06
add esp, 0x10
cmp eax, edi
jne 0x4bc9e3
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x4bc9ed
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004bd630
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x4bc9bf
cmp eax, 0xfffffffb
jne 0x4bc9bf
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4bc9d0
cmp dword [esi + 0x38], 1
je 0x4bc9d0
xor ebx, ebx
jmp 0x4bc9d5
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4bc96e
cmp eax, 1
jne 0x4bc9ed
jmp 0x4bc96e
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x4be6c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4be6cb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4be7ce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4dd540]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4dd540]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4dd540]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4dd540]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4dd540]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4dd540]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4dd540]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4dd540]
xor eax, edx
inc ecx
dec edi
jne 0x4be6e6
pop edi
test esi, esi
je 0x4be7f0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4dd540]
xor eax, edx
inc ecx
dec esi
jne 0x4be7d2
pop esi
pop ebx
not eax
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push 0
push 0
push str.Hello_
push str.Hello_from_FASM_
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
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 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
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 + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x48fb83
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x101375a0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov dword [esp + 4], edx
cmp ecx, 0x80
jge 0x101375bf
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
add esp, 8
ret
cmp ecx, 0x10000
jge 0x1013766a
push ebx
push ebp
xor edx, edx
mov ebx, 0xa2
push esi
push edi
mov dword [esp + 0x10], edx
or ebp, 0xffffffff
nop dword [eax]
lea eax, [edx + ebx]
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x10160000]
lea eax, [edi - 1]
sub esi, edx
mov edx, edi
cmovs edx, ebp
test esi, esi
mov ebp, edx
lea edx, [edi + 1]
cmovs edx, dword [esp + 0x10]
cmovs ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jge 0x101375e0
movzx edx, word [ebp*4 + 0x10160000]
movzx eax, byte [ebp*4 + 0x10160003]
add eax, edx
cmp ecx, eax
jge 0x1013764e
movzx eax, byte [ebp*4 + 0x10160002]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x1013764e
shr eax, 1
movzx eax, word [eax*2 + 0x101614d0]
add eax, ecx
movzx ecx, ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x10137678
xor edx, edx
cmp eax, 2
sete dl
add esp, 8
jmp fcn.101016b0
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x1013767a
mov eax, ecx
add esp, 8
ret

Function at 0x1014b340
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1014b36d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014b36d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41a9c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x41a9d7
pop dword [ebp - 0x50]
mov eax, 0x41a9d7
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x4210b
push 0
mov eax, 0x44065f6e
add eax, 0xbc3bf1b2
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x5ea6
mov ebx, eax
mov esi, 0xb4a4cb34
add esi, 0x4b9e62cc
add esi, dword [ebp - 0x50]
mov edx, 0xf8faa66b
sub dword [ebp - 0x44], edi
mov edi, dword [esi]
sub edi, edx
sub dword [ebp - 0x1c], 0x1996ecc9
mov dword [ebx], edi
xor dword [ebp - 8], esi
add ebx, 4
add esi, 4
loop 0x41aa25
add eax, 0xc1b977c5
add eax, 0x3e47f5a6
xor ebx, ebx
add ebx, eax
add eax, 0x1cb6b9b0
add eax, 0xe3494655
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

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 0x403150
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x403166
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x403181
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

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 0x4b594d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b596d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b4a5a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b5990
test byte [esp + 8], 2
je 0x4b5990
call fcn.004b4acd
mov dword [eax], 0xd
call fcn.004b4ad6
mov dword [eax], 5
jmp 0x4b5969
xor eax, eax
ret

Function at 0x4c6699
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c66d1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c4726
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c46fe
jmp 0x4c66dd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c7d8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c7dcd
call fcn.004cdb04
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c7dcd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c7dc4
xor eax, eax
jmp 0x4c7dd5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c7ddb
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ce034
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ce062
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ce080
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cdf9a
jmp 0x4ce080
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ce080
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cdf9a
test edi, edi
mov eax, edi
jne 0x4ce06a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x1000ff30
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x9c], 0
jne 0x1001005c
mov esi, dword [edi + 0x38]
cmp esi, 3
jne 0x1000ff87
mov ecx, dword [edi + 0x74]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x1000ff6f
cmp dword [edi + 0x8c], ecx
mov ecx, 0x100269ac
je 0x1000ff6c
mov ecx, dword [edi + 0x84]
mov dword [ebp - 4], ecx
mov edx, dword [edi + 0x48]
test edx, edx
jne 0x1000ff8e
cmp dword [edi + 0x60], edx
jne 0x1000ff82
mov edx, 0x100269ac
jmp 0x1000ff8e
mov edx, dword [edi + 0x58]
jmp 0x1000ff8e
xor ecx, ecx
xor edx, edx
mov dword [ebp - 4], ecx
test byte [edi + 0x10], 1
je 0x1000ff98
xor eax, eax
jmp 0x1000ffeb
mov eax, dword [edi + 0x18]
xor ecx, ecx
test eax, eax
je 0x1000ffa9
cmp word [eax], cx
sete cl
jmp 0x1000ffb0
cmp dword [edi + 0x30], 2
setle cl
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
je 0x1000ffda
mov eax, dword [0x1002f09c]
test eax, eax
jne 0x1000ffeb
cmp dword [0x1002f0b4], 0
mov eax, 0x100269ac
cmovne eax, dword [0x1002f0ac]
jmp 0x1000ffeb
test eax, eax
jne 0x1000ffeb
cmp dword [edi + 0x30], eax
mov eax, 0x100269ac
je 0x1000ffeb
mov eax, dword [edi + 0x28]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 0x9c], eax
test eax, eax
jne 0x10010007
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea ecx, [ebp - 8]
push 4
push ecx
push 0x8c
push eax
mov dword [ebp - 8], 1
call esi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x99
push dword [edi + 0x9c]
call esi
push 0x7530
push 0x7530
push 0x7d0
push 0x1388
push dword [edi + 0x9c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10010510
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov edi, dword [esi + 0x24]
test edi, edi
je 0x10010579
shr edi, 2
lea eax, [edi*4 + 4]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
xor edx, edx
mov dword [ebp + 0x14], ebx
mov dword [ebx + edi*4], 0
test edi, edi
je 0x10010579
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x1001055c
xor eax, eax
jmp 0x1001055f
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + edx*4]
mov ecx, 0x100269ac
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, edi
jb 0x10010554
mov ebx, eax
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x1001058d
cmp word [ecx], ax
sete al
jmp 0x10010594
cmp dword [edx + 0x24], 2
setle al
test eax, eax
je 0x1001059c
xor ecx, ecx
jmp 0x100105ad
test ecx, ecx
jne 0x100105ad
cmp dword [edx + 0x24], ecx
mov ecx, 0x100269ac
je 0x100105ad
mov ecx, dword [edx + 0x1c]
mov esi, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100105c1
cmp word [eax], dx
sete dl
jmp 0x100105c8
cmp dword [esi + 0x24], 2
setle dl
test edx, edx
je 0x100105d0
xor eax, eax
jmp 0x100105e1
test eax, eax
jne 0x100105e1
cmp dword [esi + 0x24], eax
mov eax, 0x100269ac
je 0x100105e1
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0xc]
test esi, esi
jne 0x100105f8
cmp dword [edx + 0x24], esi
mov esi, 0x100269ac
je 0x100105f8
mov esi, dword [edx + 0x1c]
mov edi, dword [ebp - 4]
mov edx, dword [edi + 0xc]
test edx, edx
jne 0x1001060f
cmp dword [edi + 0x24], edx
mov edx, 0x100269ac
je 0x1001060f
mov edx, dword [edi + 0x1c]
push dword [ebp + 0x18]
push ebx
push ecx
push eax
push esi
push edx
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test ebx, ebx
je 0x10010630
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10010640
Capabilities:
Set http header

Disassembly:
mov eax, edx
push esi
mov esi, dword [eax + 0xc]
test esi, esi
je 0x10010672
mov edx, esi
push edi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10010650
sub edx, edi
pop edi
push 0xa0000000
sar edx, 1
push edx
push esi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
pop esi
ret 4
mov edx, dword [eax + 0x24]
test edx, edx
jne 0x10010690
push 0xa0000000
push edx
mov esi, 0x100269ac
push esi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
pop esi
ret 4
mov esi, dword [eax + 0x1c]
shr edx, 1
push 0xa0000000
dec edx
push edx
push esi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
pop esi
ret 4
Function at 0x100106b0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], ecx
mov dword [edi + 0xc], 0
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100106d6
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
push edx
call dword [eax + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1001073e
cmp dword [ebp - 4], eax
jbe 0x10010733
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x10010733
mov dword [ebx + 0xc], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp + 8], eax
test eax, eax
je 0x100107c9
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x10010785
cmp dword [edi + 0x24], ecx
mov ecx, 0x100269ac
je 0x10010785
mov ecx, dword [edi + 0x1c]
cmp ebx, ecx
je 0x100107c9
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x100107a1
mov eax, dword [edi + 0x10]
push ecx
lea ecx, [edi + 0x10]
call dword [eax + 0xc]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
test ebx, ebx
je 0x100107c9
cmp word [ebx], 0
je 0x100107c9
push ebx
lea ecx, [edi + 0x10]
call fcn.10018c10
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100107e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
or edx, 0x20000000
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push edx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1001082e
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
jbe 0x10010848
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x10010848
mov dword [esi + 0xc], 0xffffffff
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8