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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4612d7
add esp, 0xfffffff0
call fcn.00403770
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423a1c
mov eax, dword [0x4b6a5c]
cmp word [eax + 2], 0
jne 0x4612ff
mov eax, dword [0x4b6a5c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004629b0
mov eax, dword [0x4b6bb4]
cmp word [eax + 2], 0
jne 0x461319
mov eax, dword [0x4b6bb4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462ba8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ab58]
call fcn.0040341c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ab58]
call fcn.0040341c
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 [0x425f78]
call fcn.0042d884
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4614a0
mov eax, dword [0x4b68ac]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042dc54
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x463158
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b68ac]
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.0040d92c
test eax, eax
je 0x46140e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409470
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d954
test eax, eax
je 0x461422
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.00404570
mov eax, dword [0x4b6654]
cmp byte [eax], 0
jne 0x461456
mov eax, ebx
call fcn.004615c8
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.00463334
mov eax, ebx
call fcn.00463cf8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x461496
call fcn.004037c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461848
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b7be4]
cmp dword [eax + 0x30], 0
je 0x4618f2
cmp dword [ebx + 0x94], 0
jne 0x4618ec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4617d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4618ec
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 0x4618b2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4618ec
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.0041d210
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4618c1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462454
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 0x462489
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.004043f0
jmp 0x462496
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404354
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463510
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463551
mov eax, esi
call fcn.00449770
test al, al
je 0x463551
mov eax, dword [ebx + 0x84]
call fcn.0044946c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463551
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044946c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4714d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4714fe
mov eax, ebx
call fcn.00471f84
cmp dword [ebx + 0x40], 0
je 0x4714f7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47156f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x471561
cmp dword [ebx + 8], 0
je 0x471520
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x471532
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x471561
cmp dword [ebx + 8], 0
je 0x471513
cmp eax, 3
je 0x471545
dec eax
jne 0x471513
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x471513
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x471513
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47158d
cmp dword [ebx + 0x14], 0xcc
je 0x47158d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00471598
pop ebx
ret
Function at 0x481b9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov esi, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.004045c0
mov edx, eax
mov eax, ebp
call fcn.0040494c
mov eax, dword [esp]
call fcn.004045c0
mov edi, eax
test edi, edi
jle 0x481bf9
mov ebx, 1
mov eax, ebp
call fcn.00404818
mov edx, dword [esp]
mov dl, byte [edx + ebx - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [ebp]
movzx eax, byte [eax + ebx - 1]
movzx edx, si
add eax, edx
mov esi, eax
inc ebx
dec edi
jne 0x481bcc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x481c00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], ecx
mov esi, edx
mov ebp, eax
mov eax, ebp
call fcn.004045c0
mov edx, eax
mov eax, dword [esp]
call fcn.0040494c
mov eax, ebp
call fcn.004045c0
test al, al
jbe 0x481c64
mov byte [esp + 4], al
mov bl, 1
mov eax, dword [esp]
call fcn.00404818
mov edi, ebx
and edi, 0xff
mov dl, byte [ebp + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
xor eax, eax
mov al, byte [ebp + edi - 1]
movzx edx, si
add eax, edx
mov esi, eax
inc ebx
dec byte [esp + 4]
jne 0x481c30
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49e7c0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x49e7e5
cmp dword [esp + 4], 5
jb 0x49e7e5
mov al, 1
jmp 0x49e7e7
xor eax, eax
add esp, 0x94
ret
Function at 0x401d30
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
not esi
neg ebx
neg edx
sbb esi, 0xa2
ror edx, 0xae
mov ebx, 0xd5
ror edi, 0xbe
ror ebx, 0x26
imul esi
inc edi
sbb esi, 6
rcl ebx, 7
rol edx, 0x60
bswap esi
neg esi
inc edi
inc esi
and edi, 0x36
dec esi
sub edi, 0x56
imul eax
bswap edx
bswap esi
and eax, 0xaf
ror esi, 0xa5
not ebx
sbb ebx, 0xc
ror eax, 0x94
and edx, 0xd2
rcr esi, 0x1a
add edi, 0xbd
dec edx
mov eax, 0xd6
inc edx
inc edx
not ebx
imul esi
inc edi
neg edi
bswap edi
rol eax, 0xdb
neg edi
bswap edi
sbb ebx, 8
bswap edi
rol edx, 0xaf
not ebx
ror esi, 0x6f
mov esi, 0xc7
ror eax, 0xf8
xor ecx, ecx
xor edi, edi
neg edx
not ebx
ror eax, 0xdf
inc eax
and edi, 0xb5
dec edx
inc ebx
and edi, 0xab
sbb esi, 0xbb
not edi
sbb edx, 0xb2
dec esi
inc edi
inc ebx
sbb ebx, 0x41
rcr edi, 0x8d
inc eax
dec eax
rcl eax, 0x5e
imul edx
and edx, 0x5b
add edi, 0x3f
and eax, 0x1a
imul edi
or esi, 0x1c
ror eax, 0x1d
mov ebx, 0x71
neg esi
mov esi, 0x73
imul edx
or eax, 0x40
or ebx, 0x61
neg edi
rcr edx, 0x8a
sub esi, 0xe8
bswap esi
and edx, 0xcb
sub edx, 0xdd
sbb esi, 0x7f
inc edi
rcr edi, 0x2a
rol edx, 0xd
bswap eax
sbb edx, 0x1b
dec esi
bswap esi
and ebx, 7
rol eax, 0xe3
inc esi
neg edx
mov ecx, dword [ebp + 0xc]
inc esi
or eax, 0xff
imul eax
and esi, 0x6c
bswap edx
neg edx
not edx
neg edi
bswap esi
ror edi, 0x1f
sbb esi, 0xca
inc esi
not esi
mov eax, 0x64
imul edi
inc eax
not eax
inc edx
inc esi
mov ebx, 0x41
add edx, 0x20
not edi
neg edi
ror esi, 0x8e
dec edi
mov ebx, 0xca
neg edx
inc edi
bswap ebx
dec ebx
and esi, 0x68
not eax
dec edi
mov edi, 0x24
or edi, 0x4e
bswap esi
add edx, 0xee
sbb ebx, 0x2f
rcl eax, 0xd0
bswap ebx
inc ebx
dec esi
imul edi
imul esi
ror ebx, 0xd2
not edi
sbb ebx, 0xc3
rcr edx, 0x92
not ebx
bswap ebx
mov edi, dword [ebp + 8]
mov esi, eax
mov ebx, eax
mov esi, ebx
not byte [edi]
xor eax, ebx
xor ebx, esi
mov esi, esi
mov ebx, esi
mov ebx, esi
mov eax, ebx
mov ebx, ebx
mov esi, esi
xor esi, esi
add byte [edi], 0x79
xor eax, esi
mov esi, eax
mov ebx, esi
mov esi, ebx
xor ebx, esi
mov eax, eax
mov eax, eax
xor esi, ebx
mov eax, ebx
sub byte [edi], 0x30
mov esi, esi
xor eax, ebx
xor esi, eax
xor ebx, ebx
mov ebx, eax
mov esi, esi
xor ebx, ebx
xor esi, esi
xor esi, ebx
imul byte [edi]
inc edi
loop 0x401ed6
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407424
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c094]
jne 0x40742e
repz ret
jmp fcn.0040be06
Function at 0x40d60d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a3cf
and dword [ebp - 4], 0
cmp dword [0x46d614], 0
mov ebx, eax
jne 0x40d6be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d76f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d76f
push eax
call fcn.0040a35d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46d614], eax
call esi
push eax
call fcn.0040a35d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46d618], eax
call esi
push eax
call fcn.0040a35d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46d61c], eax
call esi
push eax
call fcn.0040a35d
pop ecx
mov dword [0x46d624], eax
test eax, eax
je 0x40d6be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a35d
pop ecx
mov dword [0x46d620], eax
mov eax, dword [0x46d620]
cmp eax, ebx
je 0x40d716
cmp dword [0x46d624], ebx
je 0x40d716
push eax
call fcn.0040a3d8
push dword [0x46d624]
mov esi, eax
call fcn.0040a3d8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d716
test edi, edi
je 0x40d716
call esi
test eax, eax
je 0x40d70d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d70d
test byte [ebp - 0xc], 1
jne 0x40d716
or dword [ebp + 0x10], 0x200000
jmp 0x40d74f
mov eax, dword [0x46d618]
cmp eax, ebx
je 0x40d74f
push eax
call fcn.0040a3d8
pop ecx
test eax, eax
je 0x40d74f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d74f
mov eax, dword [0x46d61c]
cmp eax, ebx
je 0x40d74f
push eax
call fcn.0040a3d8
pop ecx
test eax, eax
je 0x40d74f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46d614]
call fcn.0040a3d8
pop ecx
test eax, eax
je 0x40d76f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d771
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49c9b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6c000]
push edi
jmp 0x49c9ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49c9d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49c9c0
mov eax, 1
add ebx, ebx
jne 0x49c9e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49c9f4
jne 0x49ca13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49ca13
dec eax
add ebx, ebx
jne 0x49ca00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x49c9d8
add ebx, ebx
jne 0x49ca0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x49ca65
xor ecx, ecx
sub eax, 3
jb 0x49ca2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49ca9a
sar eax, 1
mov ebp, eax
jmp 0x49ca36
add ebx, ebx
jne 0x49ca36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49ca04
inc ecx
add ebx, ebx
jne 0x49ca44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49ca04
add ebx, ebx
jne 0x49ca51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49ca46
jne 0x49ca62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49ca46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49ca84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49ca76
jmp 0x49c9c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49ca84
add edi, ecx
jmp 0x49c9c6
pop esi
mov edi, esi
mov ecx, 0x2894
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49caa2
cmp byte [edi], 0x1b
jne 0x49caa2
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 0x49caa7
lea edi, [esi + 0x99000]
mov eax, dword [edi]
or eax, eax
je 0x49cb1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb3de4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb3efc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49cad4
mov ecx, edi
jns 0x49cb03
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 + 0xb3f00]
or eax, eax
je 0x49cb19
mov dword [ebx], eax
add ebx, 4
jmp 0x49caf1
call dword [esi + 0xb3f10]
mov ebp, dword [esi + 0xb3f04]
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 0x49cb53
sub esp, 0xffffff80
jmp 0x44b498
Function at 0x401e4a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x48ae20]
push esi
push edi
push 0x44
pop edi
xor eax, ebp
push edi
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.004256c0
push 0x800
mov dword [ebp - 0x158], edi
call fcn.0043e0c7
push str.Neuz.exe_fablendx
mov edi, eax
push 0x7ff
push edi
call fcn.0042565e
add esp, 0x1c
test eax, eax
jle 0x401f02
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x158]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401ed8
call fcn.00401dff
test eax, eax
je 0x401f02
call fcn.00401dff
push esi
push esi
push 0x10
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x401f02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x104]
push str.ErrorNumber:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.0044dc2f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00424262
leave
ret

Function at 0x40206c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x48ae20]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edx, [ebp - 0x10c]
push edx
push 1
xor eax, ebp
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x4020e2
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00424262
leave
ret
Function at 0x4021d7
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004256c0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push str.Updater.exe_myunglang
push esi
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402235
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.NewFlyff.exe.gz
call edi
push 0x469bdc
call edi
push esi
push esi
push str.Updater.exe
call fcn.0044dc2f
jmp 0x40227b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Updater
push str.Aeonsoft
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp edi, esi
je 0x402235
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0xffffffffffffffff
push esi
push 0x12
mov dword [ebp - 8], eax
call fcn.0044dc51
cmp eax, 1
jne 0x40227b
push esi
push dword [ebp - 8]
push 0x402
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
leave
ret

Function at 0x4022aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4022bf
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4022d1
xor eax, eax
jmp 0x402303
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4022f5
cmp esi, eax
jae 0x4022cd
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4022e7
cmp esi, eax
jae 0x4022cd
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x40552f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40554d
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
ret
Function at 0x405711
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00425720
mov eax, dword [0x48ae20]
push esi
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
cmp esi, 0x64
mov edi, eax
jb 0x40574f
push 0x46a718
lea eax, [ebp - 0x2004]
push eax
call fcn.004241a8
pop ecx
pop ecx
jmp 0x4057af
cmp esi, 8
jne 0x40575b
push 0x46a6ec
jmp 0x40573f
cmp esi, 4
jne 0x405767
push 0x46a6b4
jmp 0x40573f
cmp esi, 9
jne 0x405773
push 0x46a680
jmp 0x40573f
cmp edi, 0x2ee0
push 0
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push 0x400
push edi
jb 0x4057a2
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x800
jmp 0x4057a9
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
push edi
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4004]
push str._s_nCODE:__d_RESULT:__d
push eax
call fcn.004241a8
lea eax, [ebp - 0x4004]
push eax
call fcn.00405637
add esp, 0x18
push 0
push 0x10
lea eax, [ebp - 0x4004]
push eax
call fcn.0044dc2f
pop edi
cmp esi, 8
pop esi
jne 0x4057f6
push 1
call fcn.00426445
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424262
leave
ret 4

Function at 0x405874
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.004056dc
xor edi, edi
push edi
push edi
push edi
push edi
push str.FlyffPatch
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi], eax
jne 0x40589c
xor eax, eax
jmp 0x4058d7
push 4
lea ecx, [ebp - 4]
push ecx
push 6
push eax
mov dword [ebp - 4], 0xafc8
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [esi + 0xc]
push edi
push edi
push 3
xor ecx, ecx
mov cx, word [esi + 0x10]
push edi
push edi
push ecx
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectA]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 4], eax
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x405933
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x46643c
call fcn.00425140
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x14]
and dword [ebp - 4], 0
test eax, eax
je 0x405961
push 0
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.00405804
mov ecx, esi
call fcn.004056dc
mov ecx, dword [esi + 0xc]
sub ecx, 0x10
call fcn.0040234d
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret