joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473ae0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x49f688]
cmp byte [eax + 0xc], 0
je 0x473c4d
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473c46
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a06ac], 0
jne 0x473b34
push 0x473c54
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x473c5c
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06ac], eax
cmp dword [0x49be0c], 0
jne 0x473c2f
push 0x473c6c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x49be0c], eax
cmp dword [0x49be0c], 0
je 0x473c2f
push 0x473c78
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06b0], eax
push 0x473c88
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06b4], eax
push 0x473c9c
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06b8], eax
push 0x473cb4
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06bc], eax
push 0x473ccc
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06c0], eax
push 0x473ce0
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06c4], eax
push 0x473cf8
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06c8], eax
push 0x473d10
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06cc], eax
push 0x473d2c
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06d0], eax
push 0x473d38
mov eax, dword [0x49be0c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a06d4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473c4d
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x47648c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4764a8
call fcn.00477c94
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4764c4
test bl, 1
je 0x4764c4
call fcn.0047ba68
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4767f4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00477830
test byte [ebp + 0xd], 0xc0
jne 0x476818
mov eax, dword [0x49cc08]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x476825
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x476852
je 0x476864
sub ecx, 0x100
je 0x476872
sub ecx, 0x100
je 0x476879
sub ecx, 0x100
je 0x47686b
jmp 0x476880
sub ecx, 0x600
je 0x476879
sub ecx, 0x100
je 0x476864
jmp 0x476880
mov edi, 1
jmp 0x476885
mov edi, 2
jmp 0x476885
mov edi, 4
jmp 0x476885
mov edi, 5
jmp 0x476885
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4768ac
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x49c680]
test al, 0x80
je 0x4768a5
mov ebx, 0x80
jmp 0x4768be
mov ebx, 1
jmp 0x4768be
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4768be
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4768d0
je 0x4768d9
dec eax
je 0x4768e2
jmp 0x4768eb
mov dword [ebp - 4], accept
jmp 0x4768fa
mov dword [ebp - 4], 0x40000000
jmp 0x4768fa
mov dword [ebp - 4], 0xc0000000
jmp 0x4768fa
push 1
call fcn.00477c28
pop ecx
mov ebx, eax
jmp 0x4769ea
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x476916
sub eax, 0x10
je 0x47691d
sub eax, 0x10
je 0x476926
sub eax, 0x10
je 0x47692f
jmp 0x47692f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x476936
mov dword [ebp - 8], 1
jmp 0x476936
mov dword [ebp - 8], 2
jmp 0x476936
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4769a3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x476998
test byte [ebp + 0xd], 1
je 0x476993
mov ebx, 0x50
jmp 0x476998
mov ebx, 2
push ebx
call fcn.00477c28
pop ecx
mov ebx, eax
jmp 0x4769ea
mov edi, esi
push edi
call fcn.00476758
pop ecx
test eax, eax
je 0x4769b7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4769c3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00477950
add esp, 8
mov ebx, eax
inc eax
jne 0x4769ea
push 4
call fcn.00477c28
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00477864
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476bac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00477830
test byte [ebp + 0xd], 0xc0
jne 0x476bd0
mov eax, dword [0x49cc08]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x476bdd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x476c0a
je 0x476c1c
sub ecx, 0x100
je 0x476c2a
sub ecx, 0x100
je 0x476c31
sub ecx, 0x100
je 0x476c23
jmp 0x476c38
sub ecx, 0x600
je 0x476c31
sub ecx, 0x100
je 0x476c1c
jmp 0x476c38
mov edi, 1
jmp 0x476c3d
mov edi, 2
jmp 0x476c3d
mov edi, 4
jmp 0x476c3d
mov edi, 5
jmp 0x476c3d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x476c64
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x49c680]
test al, 0x80
je 0x476c5d
mov ebx, 0x80
jmp 0x476c76
mov ebx, 1
jmp 0x476c76
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x476c76
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x476c88
je 0x476c91
dec eax
je 0x476c9a
jmp 0x476ca3
mov dword [ebp - 4], accept
jmp 0x476cb2
mov dword [ebp - 4], 0x40000000
jmp 0x476cb2
mov dword [ebp - 4], 0xc0000000
jmp 0x476cb2
push 1
call fcn.00477c28
pop ecx
mov ebx, eax
jmp 0x476da2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x476cce
sub eax, 0x10
je 0x476cd5
sub eax, 0x10
je 0x476cde
sub eax, 0x10
je 0x476ce7
jmp 0x476ce7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x476cee
mov dword [ebp - 8], 1
jmp 0x476cee
mov dword [ebp - 8], 2
jmp 0x476cee
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x476d5b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x476d50
test byte [ebp + 0xd], 1
je 0x476d4b
mov ebx, 0x50
jmp 0x476d50
mov ebx, 2
push ebx
call fcn.00477c28
pop ecx
mov ebx, eax
jmp 0x476da2
mov edi, esi
push edi
call fcn.00476758
pop ecx
test eax, eax
je 0x476d6f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x476d7b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00477950
add esp, 8
mov ebx, eax
inc eax
jne 0x476da2
push 4
call fcn.00477c28
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00477864
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ba00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x47ba62
call fcn.0047b9b0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00475200
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00475200
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x47bae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x49dba8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x47bbba
cmp dword [0x49dba4], 0
jne 0x47bbba
cmp dword [0x49dd88], 0
je 0x47bb74
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0047b8b0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47bb5a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0047b8b0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x47bb5a
lea ebx, [ebp - 0x84]
jmp 0x47bb5b
inc ebx
call fcn.0047ba9c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x47bbf5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x49dbac
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00475200
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x49dbaf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x47bbf5
cmp dword [0x49dba4], 0
je 0x47bbd4
cmp dword [0x49dba4], 0xffffffff
je 0x47bbf5
push esi
call dword [0x49dba4]
pop ecx
mov eax, dword [0x49dba8]
test eax, eax
je 0x47bbf5
cmp dword [0x49dba8], 0xffffffff
je 0x47bbf5
cmp byte [eax], 0
je 0x47bbf5
push esi
push eax
call fcn.0047ba00
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c3f0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4a0f6c], 0
jne 0x47c471
cmp dword [0x4a0f8c], 0
jne 0x47c420
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4a0f8c], eax
test eax, eax
jne 0x47c420
push str.GetEnvironmentStrings_failed
call fcn.0047bc0c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4a0f8c]
jmp 0x47c434
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00475200
pop ecx
mov edi, eax
test eax, eax
jne 0x47c42c
lea edi, [ebp + 1]
push edi
call fcn.00474ae4
pop ecx
mov ebx, eax
mov dword [0x4a0f70], ebx
test ebx, ebx
jne 0x47c45e
xor eax, eax
jmp 0x47c534
push edi
mov edx, dword [0x4a0f8c]
push edx
push ebx
call fcn.004750b0
add esp, 0xc
jmp 0x47c491
xor esi, esi
mov ebx, dword [0x4a0f6c]
jmp 0x47c48b
push eax
call fcn.00475200
pop ecx
test eax, eax
jne 0x47c487
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47c47b
lea ebx, [esi + 4]
push 4
mov dword [0x4a0f74], ebx
inc ebx
push ebx
call fcn.004745bc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x47c4b4
xor eax, eax
jmp 0x47c534
cmp dword [0x4a0f6c], 0
jne 0x47c4e5
xor esi, esi
mov ebx, dword [0x4a0f70]
mov eax, dword [esp]
mov ebp, eax
jmp 0x47c4d6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00475200
pop ecx
mov edi, eax
test eax, eax
jne 0x47c4cc
jmp 0x47c516
xor esi, esi
mov ebx, dword [0x4a0f6c]
mov eax, dword [esp]
mov edi, eax
jmp 0x47c510
push eax
call fcn.00475200
pop ecx
test eax, eax
je 0x47c505
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x47c509
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x47c4f4
mov eax, dword [0x4a0f6c]
test eax, eax
je 0x47c526
push eax
call fcn.00474af4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4a0f6c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401a20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 8], str.proxydownloader_wait
mov dword [ebp - 0x38], 0x30
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 0x422b80
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [0x440444]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x58], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 4], eax
push 0
mov eax, dword [0x440444]
push eax
push 0
push 0
push 0x48
push 0x118
mov eax, dword [ebp - 4]
sub eax, 0x48
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x58]
sub eax, 0x118
cdq
sub eax, edx
sar eax, 1
push eax
push 0x80000000
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
push 5
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x401b31
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401b05
mov eax, dword [ebp - 0x5c]
mov esp, ebp
pop ebp
ret

Function at 0x4042ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d210]
jne 0x4042d8
repz ret
jmp fcn.00406a6d
Function at 0x408921
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43d348]
je 0x40893c
inc edi
cmp edi, 0x17
jb 0x40892d
cmp edi, 0x17
jae 0x408abc
push ebp
push 3
call fcn.0040a7d7
cmp eax, 1
pop ecx
je 0x408a88
push 3
call fcn.0040a7d7
test eax, eax
pop ecx
jne 0x408970
cmp dword [0x43d090], 1
je 0x408a88
cmp ebx, 0xfc
je 0x408abb
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43f0a8
push ebp
call fcn.0040ae79
add esp, 0xc
test eax, eax
je 0x4089a6
push esi
push esi
push esi
push esi
push esi
call fcn.00406597
add esp, 0x14
push 0x104
mov esi, 0x43f0c1
push esi
push 0
mov byte [0x43f1c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4089ea
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040ae79
add esp, 0xc
test eax, eax
je 0x4089ea
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00406597
add esp, 0x14
push esi
call fcn.00404810
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408a2f
push esi
call fcn.00404810
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43f3bc
push 0x42f764
sub ecx, eax
push ecx
push eax
call fcn.0040eeb4
add esp, 0x14
test eax, eax
je 0x408a2f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00406597
add esp, 0x14
jmp 0x408a31
xor esi, esi
push 0x42fdc0
push ebx
push ebp
call fcn.0040aede
add esp, 0xc
test eax, eax
je 0x408a51
push esi
push esi
push esi
push esi
push esi
call fcn.00406597
add esp, 0x14
push dword [edi*8 + 0x43d34c]
push ebx
push ebp
call fcn.0040aede
add esp, 0xc
test eax, eax
je 0x408a73
push esi
push esi
push esi
push esi
push esi
call fcn.00406597
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040ecf7
add esp, 0xc
jmp 0x408abb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x408abb
cmp ebp, 0xffffffff
je 0x408abb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43d34c]
push dword [esi]
call fcn.00404810
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40a271
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040705f
xor ebx, ebx
cmp dword [0x43f41c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40a347
push 0x42fee4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x40a427
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42fed8
push edi
call esi
cmp eax, ebx
je 0x40a427
push eax
call fcn.00406ff1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43f41c], eax
call esi
push eax
call fcn.00406ff1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43f420], eax
call esi
push eax
call fcn.00406ff1
mov dword [0x43f424], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407760
test eax, eax
pop ecx
pop ecx
je 0x40a315
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406597
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40a347
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.00406ff1
cmp eax, ebx
pop ecx
mov dword [0x43f42c], eax
je 0x40a347
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406ff1
pop ecx
mov dword [0x43f428], eax
mov eax, dword [0x43f428]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40a3cc
cmp dword [0x43f42c], ecx
je 0x40a3cc
push eax
call fcn.00407068
push dword [0x43f42c]
mov esi, eax
call fcn.00407068
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40a3cc
cmp edi, ebx
je 0x40a3cc
call esi
cmp eax, ebx
je 0x40a399
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a399
test byte [ebp - 0x18], 1
jne 0x40a3cc
lea eax, [ebp - 0x10]
push eax
call fcn.00407797
test eax, eax
pop ecx
je 0x40a3b4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406597
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40a3c3
or dword [ebp + 0x10], 0x200000
jmp 0x40a407
or dword [ebp + 0x10], 0x40000
jmp 0x40a407
mov eax, dword [0x43f420]
cmp eax, dword [ebp - 8]
je 0x40a407
push eax
call fcn.00407068
cmp eax, ebx
pop ecx
je 0x40a407
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a407
mov eax, dword [0x43f424]
cmp eax, dword [ebp - 8]
je 0x40a407
push eax
call fcn.00407068
cmp eax, ebx
pop ecx
je 0x40a407
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f41c]
call fcn.00407068
cmp eax, ebx
pop ecx
je 0x40a427
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a429
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ecf7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040705f
xor ebx, ebx
cmp dword [0x43f670], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40edcd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40eead
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40eead
push eax
call fcn.00406ff1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43f670], eax
call esi
push eax
call fcn.00406ff1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43f674], eax
call esi
push eax
call fcn.00406ff1
mov dword [0x43f678], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407760
test eax, eax
pop ecx
pop ecx
je 0x40ed9b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406597
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40edcd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00406ff1
cmp eax, ebx
pop ecx
mov dword [0x43f680], eax
je 0x40edcd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406ff1
pop ecx
mov dword [0x43f67c], eax
mov eax, dword [0x43f67c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40ee52
cmp dword [0x43f680], ecx
je 0x40ee52
push eax
call fcn.00407068
push dword [0x43f680]
mov esi, eax
call fcn.00407068
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40ee52
cmp edi, ebx
je 0x40ee52
call esi
cmp eax, ebx
je 0x40ee1f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ee1f
test byte [ebp - 0x18], 1
jne 0x40ee52
lea eax, [ebp - 0x10]
push eax
call fcn.00407797
test eax, eax
pop ecx
je 0x40ee3a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406597
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40ee49
or dword [ebp + 0x10], 0x200000
jmp 0x40ee8d
or dword [ebp + 0x10], 0x40000
jmp 0x40ee8d
mov eax, dword [0x43f674]
cmp eax, dword [ebp - 8]
je 0x40ee8d
push eax
call fcn.00407068
cmp eax, ebx
pop ecx
je 0x40ee8d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40ee8d
mov eax, dword [0x43f678]
cmp eax, dword [ebp - 8]
je 0x40ee8d
push eax
call fcn.00407068
cmp eax, ebx
pop ecx
je 0x40ee8d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f670]
call fcn.00407068
cmp eax, ebx
pop ecx
je 0x40eead
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40eeaf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417460
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x417477
mov eax, 0xfffffff8
jmp 0x4174b2
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0x21
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x41749d
mov eax, 1
jmp 0x4174b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4174af
mov eax, 0x321
jmp 0x4174b2
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8

Function at 0x4174c0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x4174d7
mov eax, 0xfffffff8
jmp 0x417512
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4174fd
mov eax, 1
jmp 0x417512
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41750f
mov eax, 0x321
jmp 0x417512
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8

Function at 0x4176b0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x4176c9
mov eax, 0xfffffff8
jmp 0x417709
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4176ef
mov eax, 1
jmp 0x417709
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2efe
jne 0x417706
or eax, 0xffffffff
jmp 0x417709
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417710
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x43d210]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0xc], 0
jne 0x41773c
mov eax, 0xfffffff8
jmp 0x41778b
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x54], 0
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 5
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x417775
or eax, 0xffffffff
jmp 0x41778b
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040492f
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004042ce
mov esp, ebp
pop ebp
ret 4