joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4875d0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x49abf0], 0
jne 0x487651
cmp dword [0x49ac10], 0
jne 0x487600
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x49ac10], eax
test eax, eax
jne 0x487600
push str.GetEnvironmentStrings_failed
call fcn.00486dec
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x49ac10]
jmp 0x487614
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0047f6fc
pop ecx
mov edi, eax
test eax, eax
jne 0x48760c
lea edi, [ebp + 1]
push edi
call fcn.0047efe0
pop ecx
mov ebx, eax
mov dword [0x49abf4], ebx
test ebx, ebx
jne 0x48763e
xor eax, eax
jmp 0x487714
push edi
mov edx, dword [0x49ac10]
push edx
push ebx
call fcn.0047f5ac
add esp, 0xc
jmp 0x487671
xor esi, esi
mov ebx, dword [0x49abf0]
jmp 0x48766b
push eax
call fcn.0047f6fc
pop ecx
test eax, eax
jne 0x487667
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x48765b
lea ebx, [esi + 4]
push 4
mov dword [0x49abf8], ebx
inc ebx
push ebx
call fcn.0047eab8
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x487694
xor eax, eax
jmp 0x487714
cmp dword [0x49abf0], 0
jne 0x4876c5
xor esi, esi
mov ebx, dword [0x49abf4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4876b6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0047f6fc
pop ecx
mov edi, eax
test eax, eax
jne 0x4876ac
jmp 0x4876f6
xor esi, esi
mov ebx, dword [0x49abf0]
mov eax, dword [esp]
mov edi, eax
jmp 0x4876f0
push eax
call fcn.0047f6fc
pop ecx
test eax, eax
je 0x4876e5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4876e9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4876d4
mov eax, dword [0x49abf0]
test eax, eax
je 0x487706
push eax
call fcn.0047eff0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x49abf0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x5da962b8
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x20b24699
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401180
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor ecx, ecx
xor esi, esi
test ebx, ebx
jle 0x40129f
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov dl, 0x3d
mov eax, ecx
sub eax, ebx
add eax, 3
cmp eax, 2
jne 0x4011db
xor eax, eax
mov al, byte [ecx + edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp], al
mov al, byte [ecx + edi]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp + 1], al
mov byte [esi + ebp + 2], dl
mov byte [esi + ebp + 3], dl
jmp 0x401286
cmp eax, 1
jne 0x401227
xor eax, eax
xor ebx, ebx
mov al, byte [ecx + edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp], al
mov al, byte [ecx + edi]
mov bl, byte [ecx + edi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp + 1], al
mov al, byte [ecx + edi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp + 2], al
mov byte [esi + ebp + 3], dl
jmp 0x401286
xor eax, eax
xor ebx, ebx
mov al, byte [ecx + edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp], al
mov al, byte [ecx + edi]
mov bl, byte [ecx + edi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
xor ebx, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp + 1], al
mov al, byte [ecx + edi + 1]
mov bl, byte [ecx + edi + 2]
and eax, 0xf
shl eax, 2
shr ebx, 6
or eax, ebx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp + 2], al
mov al, byte [ecx + edi + 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebp + 3], al
mov ebx, dword [esp + 0x18]
add ecx, 3
add esi, 4
cmp ecx, ebx
jl 0x40119e
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
ret
mov eax, esi
pop esi
pop ebx
ret
Function at 0x401390
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
push esi
xor esi, esi
cmp eax, 3
jle 0x4014fd
mov eax, dword [esp + 0x10]
mov ecx, 2
push ebx
push ebp
lea edx, [eax + 1]
sub ecx, eax
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
jmp 0x4013c6
mov edx, dword [esp + 0x10]
mov al, byte [edx - 1]
cmp al, 0x7f
jbe 0x4013d1
or al, 0xff
jmp 0x4013dc
and eax, 0xff
mov al, byte [eax + 0x43d14c]
xor ecx, ecx
mov byte [esp + 0x1c], al
cmp al, 0xff
mov al, byte [edx]
sete cl
cmp al, 0x7f
mov ebp, ecx
jbe 0x4013f4
or cl, 0xff
jmp 0x4013ff
and eax, 0xff
mov cl, byte [eax + 0x43d14c]
xor eax, eax
cmp cl, 0xff
sete al
add ebp, eax
mov al, byte [edx + 1]
cmp al, 0x7f
jbe 0x401414
or al, 0xff
jmp 0x40141f
and eax, 0xff
mov al, byte [eax + 0x43d14c]
mov dl, byte [edx + 2]
xor ebx, ebx
cmp al, 0xff
sete bl
add ebp, ebx
cmp dl, 0x7f
jbe 0x401435
or dl, 0xff
jmp 0x401441
and edx, 0xff
mov dl, byte [edx + 0x43d14c]
xor ebx, ebx
cmp dl, 0xff
sete bl
add ebp, ebx
mov byte [esp + 0x1f], dl
cmp ebp, 2
jne 0x401471
mov al, byte [esp + 0x1c]
mov dl, cl
shr dl, 4
and dl, 3
shl al, 2
or dl, al
mov byte [esi + edi], dl
inc esi
shl cl, 4
mov byte [esi + edi], cl
jmp 0x4014d8
cmp ebp, 1
mov bl, cl
jne 0x4014a4
mov dl, byte [esp + 0x1c]
shr bl, 4
and bl, 3
shl dl, 2
or bl, dl
mov dl, al
shr dl, 2
mov byte [esi + edi], bl
and dl, 0xf
shl cl, 4
inc esi
or dl, cl
mov byte [esi + edi], dl
inc esi
shl al, 6
mov byte [esi + edi], al
jmp 0x4014d8
mov dl, byte [esp + 0x1c]
shr bl, 4
and bl, 3
shl dl, 2
or bl, dl
mov dl, al
shr dl, 2
and dl, 0xf
mov byte [esi + edi], bl
shl cl, 4
inc esi
or dl, cl
mov cl, byte [esp + 0x1f]
mov byte [esi + edi], dl
and cl, 0x3f
shl al, 6
inc esi
or cl, al
mov byte [esi + edi], cl
inc esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x10], eax
add ecx, eax
cmp ecx, dword [esp + 0x20]
jl 0x4013c2
pop edi
pop ebp
mov eax, esi
pop ebx
pop esi
add esp, 8
ret
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x4019e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ff80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], 0
test edi, edi
jne 0x401a0e
xor eax, eax
jmp 0x401a14
mov eax, dword [esp + 0x34]
sub eax, edi
push eax
push edi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
test esi, esi
jne 0x401a40
push edi
call fcn.00428cdd
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [0x43dc9c]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
push ecx
push 0
push 1
push 4
push esi
call fcn.004041d0
mov edx, dword [0x43dc9c]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
mov byte [esp + 0x38], 2
push eax
push 0
push 0
push 4
push esi
call fcn.004041d0
add esp, 0x28
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push 0x43d1f8
push ecx
push edx
call fcn.00428a35
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x30], 3
call fcn.004289cf
push 0x43d1f4
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x2c], 4
push eax
call fcn.00428a35
mov ecx, dword [esp + 0x3c]
push eax
mov byte [esp + 0x28], 5
call fcn.004288d9
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call fcn.004287a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call fcn.004287a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.004287a0
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.004287a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.004287a0
push edi
call fcn.00428cdd
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x407380
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4302bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push esi
mov esi, dword [esp + 0x234]
push esi
lea ecx, [esp + 8]
call fcn.0042880e
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10c]
push eax
push ecx
mov dword [esp + 0x234], 0
call fcn.00428ef5
test eax, eax
jne 0x4073f6
lea edx, [esp + 8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 8]
push esi
push eax
lea ecx, [esp + 0xc]
push str._s_s
push ecx
call fcn.00423a59
add esp, 0x10
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, 0x20
jae 0x407434
lea ecx, [esp + 4]
mov dword [esp + 0x22c], 0xffffffff
call fcn.004287a0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
add esp, 0x22c
ret
push edi
push str.DllRegisterServer
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407452
call eax
test eax, eax
jl 0x407452
mov edi, 1
test esi, esi
je 0x40745d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x230], 0xffffffff
call fcn.004287a0
mov ecx, dword [esp + 0x228]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x22c
ret
Function at 0x4079e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x430376
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [0x43dc9c]
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x130]
xor esi, esi
mov dword [esp + 0x128], esi
push esi
push 0x432800
mov ecx, ebx
call fcn.004236e1
mov esi, eax
cmp esi, 0xffffffff
je 0x407b0b
mov edi, 0x432800
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
mov ecx, ebx
push esi
push str.site.end
call fcn.004236e1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407b0b
mov edx, ebp
lea eax, [esp + 0x14]
sub edx, esi
mov ecx, ebx
push edx
push esi
push eax
call fcn.004235a3
mov edi, str.site.end
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x128], 1
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
add esi, ebp
call fcn.004046f0
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x407ad4
mov ecx, dword [esp + 0x14]
push ecx
push 0x127
push str.E:CVSPKI_WKS_MAVEN99.tools16.ClientConfigToolsConfigToolsConfigMngr.cpp
push str.Add__s_to_TrustSite_Zone_successfully.
call fcn.0040b900
add esp, 0x10
jmp 0x407af5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0x12a
push str.E:CVSPKI_WKS_MAVEN99.tools16.ClientConfigToolsConfigToolsConfigMngr.cpp
push str.Add__s_to_TrustSite_Zone_failed:__s
call fcn.0040b900
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 0
call fcn.004287a0
jmp 0x407a29
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0xffffffff
call fcn.004287a0
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40af20
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4306b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x24]
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 8]
call fcn.0042880e
push 0x5c
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call fcn.004236b1
cmp eax, 0xffffffff
je 0x40afac
inc eax
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0xc]
call fcn.00423580
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.004288d9
lea ecx, [esp + 0x28]
mov byte [esp + 0x14], 0
call fcn.004287a0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x24]
push ecx
push esi
mov esi, dword [esp + 0x28]
push edx
push eax
push 0x43d9f4
push esi
call fcn.00423a59
mov ecx, dword [esp + 0x24]
add esp, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [0x43dc9c]
mov dword [esp + 0x24], edx
mov esi, dword [esi]
lea eax, [esp + 0x24]
push esi
push 0x43d288
push eax
mov byte [esp + 0x20], 2
call fcn.00423a59
add esp, 0xc
lea ecx, [esp + 0x24]
push 0x20
push 0xd
call fcn.004233e0
push 0x20
push 0xa
lea ecx, [esp + 0x2c]
call fcn.004233e0
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 0
call fcn.004287a0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004287a0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40b190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x2c]
mov byte [esp + 8], al
lea esi, [edi + edi]
test esi, esi
mov eax, esi
jge 0x40b1c1
xor eax, eax
push eax
call fcn.00428cb4
add esp, 4
mov dword [esp + 0xc], eax
test esi, esi
mov ecx, eax
jbe 0x40b1e5
mov edx, esi
test ecx, ecx
je 0x40b1e1
mov byte [ecx], 0
mov eax, dword [esp + 0xc]
inc ecx
dec edx
jne 0x40b1d6
lea ecx, [eax + esi]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
test eax, eax
mov dword [esp + 0x20], 0
jne 0x40b200
xor ecx, ecx
jmp 0x40b202
sub ecx, eax
mov edx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0xc]
push ecx
push edi
push edx
call fcn.0040a9f0
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 0x10
test ecx, ecx
mov byte [esp + 0x2c], 0
lea edx, [edi + 1]
jne 0x40b230
xor esi, esi
jmp 0x40b234
mov esi, eax
sub esi, ecx
cmp esi, edx
jae 0x40b25c
test ecx, ecx
jne 0x40b240
xor esi, esi
jmp 0x40b244
mov esi, eax
sub esi, ecx
lea ecx, [esp + 0x2c]
sub edx, esi
push ecx
push edx
push eax
lea ecx, [esp + 0x14]
call fcn.00402fa0
mov ecx, dword [esp + 0xc]
jmp 0x40b282
test ecx, ecx
je 0x40b282
mov esi, eax
sub esi, ecx
cmp edx, esi
jae 0x40b282
add edx, ecx
cmp eax, eax
mov esi, eax
je 0x40b27e
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
cmp eax, esi
jne 0x40b270
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov byte [ecx + edi], 0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push edx
call fcn.00428929
mov eax, dword [esp + 0xc]
push eax
call fcn.00428cdd
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x40b900
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430796
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.004154d0
mov ecx, dword [esp + 0x1018]
lea eax, [esp + 0x1024]
push esi
push eax
push ecx
lea edx, [esp + 0x14]
push 0xfff
push edx
call fcn.00415f94
lea esi, [esp + eax + 0x1c]
lea eax, [esp + 0x1c]
add esp, 0x10
cmp esi, eax
jbe 0x40b96b
movsx ecx, byte [esi - 1]
push ecx
call fcn.00415f6c
add esp, 4
test eax, eax
je 0x40b96b
dec esi
lea edx, [esp + 0xc]
cmp esi, edx
mov byte [esi], 0
ja 0x40b94e
mov byte [esi], 0xd
inc esi
lea eax, [esp + 0xc]
mov byte [esi], 0xa
push eax
mov byte [esi + 1], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x1020]
push ecx
lea ecx, [esp + 8]
call fcn.0042880e
push 0x5c
lea ecx, [esp + 8]
mov dword [esp + 0x1018], 0
call fcn.004236b1
cmp eax, 0xffffffff
pop esi
je 0x40b9e1
inc eax
lea edx, [esp + 4]
push eax
push edx
lea ecx, [esp + 8]
call fcn.00423580
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x1014], 1
call fcn.004288d9
lea ecx, [esp + 4]
mov byte [esp + 0x1010], 0
call fcn.004287a0
mov ecx, dword [esp + 0x1020]
mov edx, dword [esp]
lea eax, [esp + 8]
push eax
push ecx
push edx
call fcn.0040b7a0
add esp, 0xc
lea ecx, [esp]
mov dword [esp + 0x1010], 0xffffffff
call fcn.004287a0
mov ecx, dword [esp + 0x1008]
mov dword fs:[0], ecx
add esp, 0x1014
ret

Function at 0x40bfa0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4307e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, dword [esp + 0x20]
mov eax, dword [ecx + 8]
test esi, esi
mov dword [esp + 8], 0
je 0x40c043
mov edi, dword [esp + 0x24]
test edi, edi
jbe 0x40c043
lea edx, [esp + 0x20]
mov ecx, dword [ecx + 4]
push edx
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 8]
test eax, eax
je 0x40c043
mov ecx, dword [esp + 0x1c]
push edi
push esi
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004287a0
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004287a0
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40d290
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x430965
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x43dc9c]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x144]
mov edi, 1
cmp eax, ebx
mov dword [esp + 0x138], edi
jne 0x40d302
mov esi, dword [esp + 0x140]
push 0x441c3c
mov ecx, esi
call fcn.0042880e
mov dword [esp + 0x20], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], bl
call fcn.004287a0
mov eax, esi
jmp 0x40d410
push ebp
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
cmp ebp, ebx
je 0x40d3e6
push ebp
push 2
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x20]
mov edi, eax
push edi
push ebp
lea edx, [esp + 0x38]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x43dafc
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x10]
mov cx, word [eax + 0x10]
shr edx, 0x10
mov word [esp + 0x14], dx
mov edx, dword [eax + 0x14]
mov ax, word [eax + 0x14]
mov word [esp + 0x16], cx
mov word [esp + 0x1a], ax
mov ecx, dword [esp + 0x1a]
shr edx, 0x10
mov word [esp + 0x18], dx
and ecx, 0xffff
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x16]
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x20]
push str._d._d._d._d
push edx
call fcn.00423a59
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, 1
mov esi, dword [esp + 0x144]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00428515
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
mov byte [esp + 0x13c], bl
call fcn.004287a0
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret
Function at 0x422700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004154d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4227cb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4227cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42277e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x422789
or bh, 8
and edi, 0x8000000
je 0x4227a4
mov eax, dword [0x44563c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4227cb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x422bcb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x422bef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x422c0a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20