joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bab0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45bac7
add esp, 0xfffffff0
call fcn.00403704
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423794
mov eax, dword [0x4fad48]
cmp word [eax + 2], 0
jne 0x45baef
mov eax, dword [0x4fad48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d230
mov eax, dword [0x4fae68]
cmp word [eax + 2], 0
jne 0x45bb09
mov eax, dword [0x4fae68]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d428
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ab74]
call fcn.004033c0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ab74]
call fcn.004033c0
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x425970]
call fcn.0042b674
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45bc90
mov eax, dword [0x4fabb4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042ba44
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d9c8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4fabb4]
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.0040da90
test eax, eax
je 0x45bbfe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040968c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dab8
test eax, eax
je 0x45bc12
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404480
mov eax, dword [0x4fa9e8]
cmp byte [eax], 0
jne 0x45bc46
mov eax, ebx
call fcn.0045bdb8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045dba4
mov eax, ebx
call fcn.0045e568
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45bc86
call fcn.0040375c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c038
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4fcbb4]
cmp dword [eax + 0x30], 0
je 0x45c0e2
cmp dword [ebx + 0x94], 0
jne 0x45c0dc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45bfc8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45c0dc
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 0x45c0a2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45c0dc
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.0041d1d0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45c0b1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45cc44
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45cc79
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.00404300
jmp 0x45cc86
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404264
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45dd80
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ddc1
mov eax, esi
call fcn.0044445c
test al, al
je 0x45ddc1
mov eax, dword [ebx + 0x84]
call fcn.00444158
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ddc1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00444158
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4876cc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4876e9
add esp, 0xfffffff0
call fcn.00403704
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x487885
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047ded8
test al, al
jne 0x487726
mov ecx, 0x4878b8
mov dl, 1
mov eax, dword [0x4725d4]
call fcn.0040cc80
call fcn.00403c30
xor eax, eax
push ebp
push 0x487752
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0047c984
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0047c870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487772
mov eax, dword [ebp - 0x10]
mov edx, 0x4878f4
call fcn.00404bc4
je 0x48778f
mov eax, esi
mov edx, 0x4878f4
call fcn.00404bc4
jne 0x4877b3
mov eax, edi
mov edx, 0x487904
call fcn.00404bc4
je 0x4877b3
mov ecx, 0x4878dc
mov dl, 1
mov eax, dword [0x47287c]
call fcn.0040cc80
call fcn.00403c30
mov eax, edi
xor edx, edx
call fcn.00404bc4
jne 0x4877e0
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404bc4
je 0x4877e0
mov ecx, 0x4878dc
mov dl, 1
mov eax, dword [0x47287c]
call fcn.0040cc80
call fcn.00403c30
mov eax, dword [ebp - 0x10]
mov edx, 0x487944
call fcn.00404bc4
jne 0x487813
mov eax, edi
mov edx, 0x487950
call fcn.00404bc4
je 0x487813
mov ecx, 0x4878dc
mov dl, 1
mov eax, dword [0x47287c]
call fcn.0040cc80
call fcn.00403c30
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004857bc
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404958
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404958
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404958
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404958
lea eax, [ebx + 8]
call fcn.0040491c
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x48799c]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48788c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404934
ret
Function at 0x489180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x48919d
add esp, 0xfffffff0
call fcn.00403704
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x489338
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047ded8
test al, al
jne 0x4891da
mov ecx, 0x48936c
mov dl, 1
mov eax, dword [0x4725d4]
call fcn.0040cc80
call fcn.00403c30
xor eax, eax
push ebp
push 0x489206
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0047c984
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0047c870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489226
mov eax, edi
xor edx, edx
call fcn.00404bc4
jne 0x489253
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404bc4
je 0x489253
mov ecx, 0x489390
mov dl, 1
mov eax, dword [0x47287c]
call fcn.0040cc80
call fcn.00403c30
mov eax, dword [ebp - 0x10]
mov edx, 0x4893a8
call fcn.00404bc4
jne 0x489286
mov eax, edi
mov edx, 0x4893b4
call fcn.00404bc4
je 0x489286
mov ecx, 0x489390
mov dl, 1
mov eax, dword [0x47287c]
call fcn.0040cc80
call fcn.00403c30
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004857bc
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404958
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404958
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404958
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404958
lea eax, [ebx + 8]
call fcn.0040491c
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x41ab74]
call fcn.004033c0
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x41ab74]
call fcn.004033c0
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x41ab74]
call fcn.004033c0
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x489400]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4755f8]
call fcn.00484a14
mov dword [ebx + 0x3c], eax
mov ax, word [0x489404]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48933f
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404934
ret
Function at 0x48bd94
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x48bdb6
add esp, 0xfffffff0
call fcn.00403704
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x48bf21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0047ded8
test al, al
jne 0x48bdf3
mov ecx, 0x48bf54
mov dl, 1
mov eax, dword [0x4725d4]
call fcn.0040cc80
call fcn.00403c30
push dword [0x4f97ac]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x4f97ac]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b7c
mov eax, dword [ebp - 0xc]
call fcn.0047e9b0
test al, al
jne 0x48bec5
push dword [0x4f97a8]
push dword [ebp + 8]
push dword [0x4f97a8]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404b7c
mov eax, dword [ebp - 0x14]
call fcn.0047e9b0
test al, al
jne 0x48bec5
push dword [0x4f97ac]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x4f97ac]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b7c
mov eax, dword [ebp - 0x18]
call fcn.0047eac8
test al, al
jne 0x48bec5
push dword [0x4f97a8]
push edi
push dword [0x4f97a8]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404b7c
mov eax, dword [ebp - 0x20]
call fcn.0047eac8
test al, al
jne 0x48bec5
mov ecx, 0x48bf54
mov dl, 1
mov eax, dword [0x4725d4]
call fcn.0040cc80
call fcn.00403c30
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004857bc
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404958
lea eax, [ebx + 8]
call fcn.0040491c
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.00404958
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.00404958
mov byte [ebx + 0xc], 0xc
mov ax, word [0x48bf70]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bf28
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404934
ret

Function at 0x4c0a24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c0a9f
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4c0a86
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404480
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00408a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0aa6
lea eax, [ebp - 0x104]
call fcn.00404210
ret
Function at 0x4ea557
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4fa7de
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4ea5af
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4fa7ff
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4ea5a5
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4ea5b3
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x40bd59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40bd68
pop dword [ebp - 0x48]
mov eax, 0x40bd68
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xebaa1363
add dword [ebp - 0x58], 0x62a831e8
mov dword [ebp - 0x54], 0xb1f8146a
add dword [ebp - 0x54], 0x803b37db
mov dword [ebp - 0x50], 0x17f208d2
sub dword [ebp - 0x50], 0xcba5c4a4
mov dword [ebp - 0x4c], 0x91b188d
add dword [ebp - 0x4c], 0xf6e4e773
lea eax, [ebp - 0x58]
push eax
mov eax, 0xb80f3d54
sub eax, 0xb7c98cf0
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xbf081196
sub dword [ebp - 0x58], 0x4a95a840
mov dword [ebp - 0x54], 0x1819721
sub dword [ebp - 0x54], 0xc01535ac
mov dword [ebp - 0x50], 0x83807b85
add dword [ebp - 0x50], 0xdfeef0e7
mov dword [ebp - 0x4c], 0x9a092d17
sub dword [ebp - 0x4c], 0x9a092d17
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xbfe94355
sub eax, 0xbfa392d5
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x4ed6e
push 0
call eax
mov ecx, 0x7a0e74cc
add ecx, 0x85f1d839
xor ebx, ebx
add ebx, eax
mov edx, 0x479caa55
sub edx, 0x47554a55
add edx, dword [ebp - 0x48]
mov edi, 0x6d765c19
sub edi, 0x678dfbe6
add dword [ebp - 0x24], esi
mov esi, dword [edx]
sub dword [ebp - 0xc], 0x4d5898c2
xor esi, edi
xor dword [ebp - 0x20], ebx
mov dword [ebx], esi
mov dword [ebp - 0x34], 0x5fcaf90c
add ebx, 0xc61cec12
sub ebx, 0xc61cec0e
add edx, 0x6c5a376b
add edx, 0x93a5c899
loop 0x40be87
add eax, 0x126e7
mov ebx, eax
add eax, 0x16e2cf52
add eax, 0xe91d30b3
mov ecx, 0x8bba9f5c
add ecx, 0x748560a4
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x103ac058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.103ac1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103ac07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103ac06a
add dl, dl
jne 0x103ac089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103ac0dc
xor eax, eax
add dl, dl
jne 0x103ac096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103ac17d
add dl, dl
jne 0x103ac0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103ac0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103ac0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103ac0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103ac0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103ac075
mov eax, 1
add dl, dl
jne 0x103ac0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103ac0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103ac0e1
sub eax, ebx
mov ebx, 1
jne 0x103ac128
mov ecx, 1
add dl, dl
jne 0x103ac10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103ac119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103ac105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103ac075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103ac13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103ac14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103ac136
cmp eax, 0x7d00
jae 0x103ac16d
cmp eax, 0x500
jb 0x103ac168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103ac075
cmp eax, 0x7f
ja 0x103ac170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103ac075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103ac19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x103ac075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4256f0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, eax
call fcn.00420a20
mov al, byte [edi]
xor esi, esi
test al, al
je 0x42572c
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_toupper]
movsx eax, al
push eax
add edi, 1
call ebx
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4a36f8]
mov al, byte [edi]
add esp, 4
test al, al
jne 0x425708
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x428bc0
Capabilities:
Write file on windows

Disassembly:
push esi
push 0x4439c0
push str.updater.log
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x428c12
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x428be9
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [sym.imp.MSVCR80.dll_fwrite]
push esi
push 1
push ecx
push eax
call edi
push esi
push 1
push 1
push 0x44459c
call edi
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x24
pop edi
lea ecx, [esp + 8]
pop esi
jmp dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]

Function at 0x428c20
Capabilities:
Check mutex on windows
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43760b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f008]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push str.packMutex
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str.______
mov ebx, eax
call dword [sym.imp.MSVCR80.dll_printf]
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
push str.________ready_to_update________
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
call fcn.00428bc0
add esp, 0x1c
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 0x10
call fcn.00420070
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0x20], ebp
je 0x428ca7
mov ecx, eax
call fcn.0042bf60
mov ebp, eax
cmp dword [esp + 0x28], 1
mov dword [esp + 0x20], 0xffffffff
jle 0x428cd4
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 4]
mov edi, str.AutoRun
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov byte [0x4a42fc], 1
je 0x428cdb
mov byte [0x4a42fc], 0
mov ecx, ebp
call fcn.0042d790
test ebp, ebp
je 0x428cf6
mov ecx, ebp
call fcn.0042bf80
push ebp
call fcn.00420060
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4029c4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a01
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a21
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.004042c8
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402b80
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402baf
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404170
jmp 0x402bcd
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402b08
mov edi, eax
test ebx, ebx
je 0x402bcd
cmp dword [esi], 0
je 0x402bcd
dec ebx
jmp 0x402bb6
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402e68
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x9b9044], 0x8088405
inc edx
mov dword [0x9b9044], edx
mul edx
mov eax, edx
ret

Function at 0x4030c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403160
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403140
xor eax, eax
push ebp
push 0x403139
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40317c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403140
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x40403c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402858
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x9b9049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404004
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc