joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aeb0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42238c
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.SBXGWEKO.jpg
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ecx
mov edx, str.AwMUAxEDYlkXHElWXg
lea ecx, [ebp - 0x458]
call fcn.00409920
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x460]
push dword [eax]
call fcn.0040c540
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x44c]
push eax
call fcn.0040c170
mov byte [ebp - 4], 0
mov ebx, eax
mov esi, dword [ebp - 0x460]
or edi, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 0x454], ebx
add esp, 8
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40af6d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov esi, dword [ebp - 0x458]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40af93
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov edx, str.AwMUAxEDYlkXHElWXg
lea ecx, [ebp - 0x45c]
call fcn.00409920
add esp, 4
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x450]
push dword [eax]
call fcn.0040c540
mov byte [ebp - 4], 3
push dword [eax]
mov edx, dword [ebp - 0x44c]
push ecx
mov ecx, ebx
call fcn.004132e0
mov byte [ebp - 4], 2
add esp, 8
mov ebx, dword [ebp - 0x450]
mov esi, eax
add ebx, 0xfffffff0
mov edx, edi
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aff7
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x45c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40b01b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x40b08c
cmp dword [esi], 1
je 0x40b030
mov dword [0x430e14], 0x80000
jmp 0x40b051
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x44c]
push eax
push ecx
mov ecx, dword [esi + 4]
push str.Image.jpg
call fcn.00412b50
mov dword [0x430e14], eax
mov edx, dword [ebp - 0x44c]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00413400
add esp, 4
test eax, eax
jne 0x40b08c
push 1
push 0x427c58
push 0x427c58
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x454]
call fcn.0041454f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413a3b
mov esp, ebp
pop ebp
ret
Function at 0x40c170
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x427ec4
mov esi, eax
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40c19f
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40c197
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.00413cab
mov esi, dword [ebp - 4]
add esp, 4
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.004162e0
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x40c20e
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c1e5
sub ecx, edx
xor esi, esi
xor edx, edx
test edi, edi
je 0x40c20b
cmp edx, ecx
sbb eax, eax
and edx, eax
mov eax, dword [ebp + 0xc]
mov al, byte [edx + eax]
inc edx
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x40c1f6
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c217
mov dword [eax], edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4107d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4107db
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4108a5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4298b0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4298b0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4298b0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4298b0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4298b0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4298b0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4298b0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4298b0]
dec edi
jne 0x4107f0
pop edi
test esi, esi
je 0x4108ca
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4298b0]
dec esi
jne 0x4108b0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4108e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x4298b0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4298b0]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x410930
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x4298b0]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [eax*4 + 0x4298b0]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x411000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x411046
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411041
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x41106e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x411057
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.004162e0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a3b
mov esp, ebp
pop ebp
ret

Function at 0x411090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x4110d5
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4110d0
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x411102
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4110e6
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.004162e0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x411120
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a3b
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x41110d
cmp byte [esi + 8], 0
je 0x41110d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a3b
mov esp, ebp
pop ebp
ret
Function at 0x411290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x4112d9
cmp byte [edi + 1], 0
je 0x4112c7
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4112df
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a3b
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x411304
cmp byte [edi + 1], 0
je 0x4112fd
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x411307
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x411316
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x411319
mov dword [ebp - 0x10], ebx
push esi
push 0x404
call fcn.00413d98
mov esi, eax
add esp, 4
test esi, esi
jne 0x411341
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a3b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x411448
jmp 0x411360
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x20], edx
sub ebx, ecx
mov dword [ebp - 0x1c], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x4113aa
cmp byte [edi + 1], 0
je 0x411448
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4113ad
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x18], ebx
je 0x4113d5
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4113d0
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x4113fe
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x4113e8
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.004162e0
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x411448
lea eax, [ebx - 3]
test eax, eax
js 0x411430
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x41142c
cmp byte [eax + esi + 1], 0x4b
jne 0x41142c
cmp byte [eax + esi + 2], 5
jne 0x41142c
cmp byte [eax + esi + 3], 6
je 0x411465
test eax, eax
jns 0x411410
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x411448
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x411360
push esi
call fcn.00413d60
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.00413a3b
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x411433
Function at 0x412390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x412437
cmp dword [edi + 4], 0xffffffff
jne 0x412437
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4123c0
sub esi, ecx
sar esi, 1
movzx eax, word [edi + esi*2 + 0x242]
cmp eax, 0x5c
je 0x4123ec
cmp eax, 0x2f
je 0x4123ec
mov dword [edi + esi*2 + 0x244], 0x2f
push 0x20
call fcn.00414a0c
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00411470
xor ecx, ecx
mov dword [edi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
pop ecx
pop ebp
ret 0xc
Function at 0x412c30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x412cd1
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004149a6
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412c70
sub ecx, edx
sar ecx, 1
je 0x412cb0
movzx eax, word [ebp + ecx*2 - 0x20e]
cmp eax, 0x2f
je 0x412c93
cmp eax, 0x5c
jne 0x412cb0
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x412dd4
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412cd1
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
test ax, ax
je 0x412dc4
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x412cee
cmp ax, 0x5c
jne 0x412cf0
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x412ce2
cmp esi, edi
je 0x412d39
sub esi, edi
lea eax, [ebp - 0x20c]
and esi, 0xfffffffe
push esi
push edi
push eax
call fcn.004162e0
add esp, 0xc
cmp esi, 0x208
jae 0x412dd4
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + esi - 0x20c], ax
call fcn.00412c30
xor eax, eax
mov word [ebp - 0x414], ax
pop esi
test ebx, ebx
je 0x412d5c
push 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004149a6
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x414]
mov word [ebp - 0x20e], ax
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d70
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
lea eax, [ebp - 0x414]
lea eax, [eax + ecx*2]
push edi
push eax
call fcn.004149a6
xor eax, eax
add esp, 0xc
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412dc4
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00413a3b
mov esp, ebp
pop ebp
ret
call fcn.0041469a
int3
Function at 0x41bc9a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004181b7
mov dword [ebp - 0x14], eax
cmp dword [0x430d44], esi
jne 0x41bd8d
push 0x800
push esi
push 0x42479c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41bd1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41be6d
push esi
push esi
push 0x42479c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41be6d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41be6d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430d44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430d48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430d4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430d54], eax
test eax, eax
je 0x41bd8a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430d50], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41bdb2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41bda5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41bdc7
push 4
pop eax
jmp 0x41be6f
cmp dword [ebp - 0x14], esi
je 0x41bdc7
push dword [0x430d44]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41bdac
mov eax, dword [0x430d50]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41be25
cmp dword [0x430d54], edi
je 0x41be25
push eax
call ebx
push dword [0x430d54]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41be25
test eax, eax
je 0x41be25
call ecx
test eax, eax
je 0x41be1a
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 0x41be1a
test byte [ebp - 8], 1
jne 0x41be25
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41be55
mov eax, dword [0x430d48]
cmp eax, edi
je 0x41be52
push eax
call ebx
test eax, eax
je 0x41be52
call eax
mov esi, eax
test esi, esi
je 0x41be52
mov eax, dword [0x430d4c]
cmp eax, edi
je 0x41be52
push eax
call ebx
test eax, eax
je 0x41be52
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430d44]
call ebx
test eax, eax
je 0x41be6d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41be6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a3b
mov esp, ebp
pop ebp
ret
Function at 0x401a90
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0xfa0]
mov eax, 0x1020
call fcn.004305d0
mov eax, dword [0x459660]
xor eax, ebp
mov dword [ebp + 0xf9c], eax
test byte [0x45db20], 1
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x45db1c
jne 0x401ae1
or dword [0x45db20], 1
call fcn.0040d7fc
push eax
mov ecx, esi
call fcn.0040283a
push 0x44372b
call fcn.0042bc04
pop ecx
lea eax, [ebp + 0xfa8]
push eax
mov ecx, esi
call fcn.00402143
lea eax, [ebp + 0xfa8]
push eax
lea ecx, [ebp - 0x70]
call fcn.004020b8
push 0x44a8e0
lea ecx, [ebp - 0x6c]
call fcn.00402655
mov ebx, dword [ebp - 0x6c]
xor esi, esi
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x401b2e
xor esi, esi
call fcn.00401c39
jmp 0x401bfc
push esi
push 0x43210
push esi
push esi
push dword [ebp + 0xfa8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x80], eax
cmp eax, esi
jne 0x401b55
push dword [ebp - 0x6c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401b22
push 0x7d000
mov dword [ebp - 0x74], esi
call fcn.0040d600
pop ecx
mov dword [ebp - 0x78], eax
push dword [0x45db1c]
lea ecx, [ebp - 0x70]
call fcn.00401c92
test eax, eax
je 0x401b7f
and dword [ebp - 0x74], 0
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0x7c]
push eax
push 0x1000
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401bbc
cmp dword [ebp - 0x7c], 0
jbe 0x401bbc
push dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x78]
add eax, esi
push eax
call fcn.00433260
add esp, 0xc
add esi, dword [ebp - 0x7c]
mov dword [ebp - 0x74], esi
jmp 0x401b66
push dword [ebp - 0x80]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x78]
call fcn.00401c74
push dword [ebp - 0x78]
call fcn.0040d60b
mov esi, dword [ebp - 0x6c]
add esi, 0xfffffff0
push esi
call fcn.00401d5c
pop ecx
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0040285f
lea ecx, [ebx - 0x10]
call fcn.0040285f
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp + 0xfa8]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp + 0xf9c]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b446
add ebp, 0xfa0
leave
ret 4
Function at 0x40376c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.0040d7fc
push eax
lea ecx, [ebp - 4]
call fcn.0040283a
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push str.name__s.ini
push eax
call fcn.0040226e
lea eax, [ebp - 4]
add esp, 0xc
push eax
call fcn.00402ca1
add eax, 0x10
push eax
lea eax, [ebp - 8]
push eax
call fcn.00404f34
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 8]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040285f
test bl, bl
je 0x4037f0
xor esi, esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
call fcn.0040d7fc
push eax
lea ecx, [ebp - 8]
call fcn.0040283a
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x403881
mov ecx, dword [ebp + 8]
push esi
add ecx, 0xc
call fcn.0040536f
push ecx
mov ebx, eax
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.004020b8
push ecx
lea eax, [ebx + 8]
mov ecx, esp
push eax
call fcn.004020b8
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.004020b8
call fcn.00402ca1
lea edi, [ebp - 0xc]
call fcn.00404931
push eax
lea ecx, [ebp - 8]
call fcn.00402143
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.0040285f
push 0x44af7c
lea ecx, [ebp - 8]
call fcn.00401c92
test eax, eax
je 0x403878
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc]
call fcn.00402143
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax + 0x14]
jl 0x403808
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0040285f
xor esi, esi
inc esi
jmp 0x4037d1