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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4c6d10]
cmp byte [eax + 0xc], 0
je 0x443e91
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443e8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ca544], 0
jne 0x443d78
push 0x443e98
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x443ea0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca544], eax
cmp dword [0x45d57c], 0
jne 0x443e73
push 0x443eb0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45d57c], eax
cmp dword [0x45d57c], 0
je 0x443e73
push 0x443ebc
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca548], eax
push 0x443ecc
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca54c], eax
push 0x443ee0
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca550], eax
push 0x443ef8
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca554], eax
push 0x443f10
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca558], eax
push 0x443f24
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca55c], eax
push 0x443f3c
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca560], eax
push 0x443f54
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca564], eax
push 0x443f70
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca568], eax
push 0x443f7c
mov eax, dword [0x45d57c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ca56c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443e91
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4494d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44952c]
test si, 4
je 0x4494ed
or bl, 1
test si, 8
je 0x4494f7
or bl, 4
test si, 1
je 0x449501
or bl, 8
test si, 2
je 0x44950b
or bl, 0x10
test si, 0x10
je 0x449515
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449524
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449530
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44956c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44954a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449559
or bl, 4
test esi, 0x20000000
je 0x449564
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450c20
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450c32
add esp, 0xfffffff0
call fcn.00403b98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a1f8
mov eax, dword [0x4c69b0]
mov dword [eax + 4], ebx
mov dword [eax], 0x450fc4
mov eax, dword [0x4c69bc]
mov dword [eax + 4], ebx
mov dword [eax], 0x450fd0
mov eax, ebx
call fcn.00450fdc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.00403844
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.00403844
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.00403844
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.00403844
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.00403844
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44ca74
push eax
push 0
push 0
mov eax, dword [0x4c6b18]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dda4]
call fcn.0041f5f8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dda4]
call fcn.0041f5f8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dda4]
call fcn.0041f5f8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045140c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4512dc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4512dc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4512dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450d6f
call fcn.00403bf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4510c0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45126b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45124c
mov dl, 1
mov eax, dword [0x412258]
call fcn.00403844
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046a0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45123b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00444080
test al, al
je 0x45122e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45127c
lea eax, [ebp - 0x254]
call fcn.0040924c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45122e
xor eax, eax
push ebp
push 0x451227
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4512b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451210
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404910
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x451210
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45122e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451131
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415fc0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451272
lea eax, [ebp - 0x260]
call fcn.004046a0
ret

Function at 0x451be4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4ca57c]
cmp byte [eax + 0xad], 0
jne 0x451c55
cmp dword [0x4ca594], 0
jne 0x451c16
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451ba0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4ca594], eax
cmp dword [0x4ca590], 0
jne 0x451c31
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4ca590], eax
cmp dword [0x4ca598], 0
jne 0x451c55
push esp
push 0
push 0
push 0x451b44
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4ca598], eax
pop edx
ret
Function at 0x451e28
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451e3f
add esp, 0xfffffff0
call fcn.00403b98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a1f8
mov eax, dword [0x4c6b00]
cmp word [eax + 2], 0
jne 0x451e67
mov eax, dword [0x4c6b00]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004538d8
mov eax, dword [0x4c6bb0]
cmp word [eax + 2], 0
jne 0x451e81
mov eax, dword [0x4c6bb0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453ae4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e34]
call fcn.00403844
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.00403844
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.00403844
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e8b4]
call fcn.0042611c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x452038
mov eax, dword [0x4c6a1c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004264f0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4541a4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4c6a1c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c9f0
test eax, eax
je 0x451f88
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c04
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ca24
test eax, eax
je 0x451f9c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404910
mov byte [ebx + 0xd4], 0
push ebx
push 0x453438
call fcn.0041b374
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4c6904]
cmp byte [eax], 0
jne 0x451fed
mov eax, ebx
call fcn.0045217c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00454380
mov eax, ebx
call fcn.00454ee0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45202d
call fcn.00403bf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4523fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4ca57c]
cmp dword [eax + 0x30], 0
je 0x4524a6
cmp dword [ebx + 0x94], 0
jne 0x4524a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45238c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4524a0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452466
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4524a0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414268
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452475
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4531c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4531f5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404790
jmp 0x453202
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046f4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454564
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4545d2
mov eax, esi
call fcn.0043edf4
test al, al
je 0x4545d2
mov eax, dword [ebx + 0x84]
call fcn.0043eaf8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4545d2
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4545c6
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043eaf8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00436ff0
jmp 0x4545d2
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004543a0
pop esi
pop ebx
ret
Function at 0x521080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xca000]
push edi
jmp 0x52109a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5210a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x521090
mov eax, 1
add ebx, ebx
jne 0x5210b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5210c4
jne 0x5210e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5210e3
dec eax
add ebx, ebx
jne 0x5210d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5210a8
add ebx, ebx
jne 0x5210df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x521135
xor ecx, ecx
sub eax, 3
jb 0x5210fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52116a
sar eax, 1
mov ebp, eax
jmp 0x521106
add ebx, ebx
jne 0x521106
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5210d4
inc ecx
add ebx, ebx
jne 0x521114
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5210d4
add ebx, ebx
jne 0x521121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x521116
jne 0x521132
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x521116
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x521154
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x521146
jmp 0x521096
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x521154
add edi, ecx
jmp 0x521096
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x521172
cmp byte [edi], 0x11
jne 0x521172
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 0x521177
lea edi, [esi + 0x11a000]
mov eax, dword [edi]
or eax, eax
je 0x5211ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x169030]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1691ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5211a4
mov ecx, edi
jns 0x5211d3
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 + 0x1691b0]
or eax, eax
je 0x5211e9
mov dword [ebx], eax
add ebx, 4
jmp 0x5211c1
call dword [esi + 0x1691c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x521220
cmp al, 0xef
ja 0x521213
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5211f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x521202
mov ebp, dword [esi + 0x1691b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x521254
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x402168
Capabilities:
Get file size

Disassembly:
push ecx
and dword [esp], 0
push ebp
push esi
push dword [esp + 0x10]
mov esi, ecx
call fcn.00405da8
mov ebp, eax
cmp ebp, 0xffffffff
pop ecx
je 0x4021c9
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 0x10], eax
jbe 0x4021c2
push ebx
push edi
lea ebx, [esi + 4]
mov edi, eax
mov eax, ebx
call fcn.004071d5
push dword [esi + 0x10]
mov ebx, dword [ebx]
push ebx
push ebp
call fcn.004067f7
add esp, 0xc
test eax, eax
pop edi
pop ebx
je 0x4021c2
call fcn.00401f12
mov dword [esp + 8], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop esi
pop ebp
pop ecx
ret 4
Function at 0x403052
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00440560
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret

Function at 0x403770
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, eax
call fcn.004037eb
push 0x441b70
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x4037e6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CredReadA
push eax
call edi
push str.CredFree
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CredDeleteA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CredEnumerateA
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CredEnumerateW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x18], eax
pop edi
je 0x4037e1
cmp dword [esi + 0xc], 0
je 0x4037e1
mov dword [esi + 4], 1
jmp 0x4037e6
call fcn.004037eb
mov eax, dword [esi + 4]
pop esi
ret

Function at 0x403871
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x4038d2
push edi
push 0x441b70
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push eax
mov dword [esi], eax
call edi
push str.CryptReleaseContext
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.CryptCreateHash
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CryptGetHashParam
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CryptHashData
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CryptDestroyHash
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
ret
Function at 0x4050f7
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe38
push esi
push edi
xor esi, esi
push 0x208
lea eax, [ebp - 0x636]
push esi
push eax
mov word [ebp - 0x638], si
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMozilla
push 0x80000002
mov word [ebx], si
call fcn.0040f6a4
add esp, 0xc
test eax, eax
jne 0x40529e
push 0x1fe
lea eax, [ebp - 0x426]
push esi
push eax
mov word [ebp - 0x428], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 8], esi
push esi
jmp 0x405282
push 7
lea eax, [ebp - 0x428]
push str.mozilla
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x405275
push 0x208
lea eax, [ebp - 0x226]
push esi
push eax
mov word [ebp - 0x228], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x7fe
lea eax, [ebp - 0xe36]
push esi
push eax
mov word [ebp - 0xe38], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push str._s_bin
lea eax, [ebp - 0xe38]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
lea eax, [ebp - 0xe38]
push eax
push dword [ebp - 4]
lea esi, [ebp - 0x228]
call fcn.0040f6f9
mov eax, esi
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 0x20
test eax, eax
je 0x40521a
and word [eax], 0
cmp word [ebp - 0x228], 0
je 0x405273
lea eax, [ebp - 0x228]
push eax
lea edi, [ebp - 0x10]
call fcn.0040502c
test eax, eax
je 0x405273
lea eax, [ebp - 0x18]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x405252
cmp word [ebp - 0x638], 0
jne 0x405273
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x638]
push eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
xor esi, esi
inc dword [ebp - 8]
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040f73d
add esp, 0xc
test eax, eax
je 0x40517d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x638]
push eax
push ebx
call sub.msvcrt.dll_wcscpy
cmp word [ebx], si
pop ecx
pop ecx
jne 0x405310
push 0x104
push ebx
push str._programfiles_Mozilla_Firefox
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
xor edi, edi
call fcn.0040502c
test eax, eax
jne 0x4052d2
mov word [ebx], si
cmp word [ebx], si
jne 0x405310
mov esi, ebx
call fcn.004061f0
push ebx
xor edi, edi
call fcn.0040502c
test eax, eax
jne 0x4052ed
and word [ebx], ax
cmp word [ebx], 0
jne 0x40530e
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
xor edi, edi
call fcn.0040502c
test eax, eax
jne 0x40530e
and word [ebx], ax
xor esi, esi
xor eax, eax
cmp word [ebx], si
pop edi
setne al
pop esi
leave
ret