joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404531
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 8]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], 0x4d42
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 0x14]
mov dword [ebp - 0x26], edx
mov word [ebp - 0x22], 0
mov word [ebp - 0x20], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov dword [ebp - 0x1e], edx
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
lea eax, [edx*4 + 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40464f
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40464f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret
Function at 0x4242c1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.00401b97
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x424331
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
push 0xa
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], 0
je 0x424344
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
je 0x42435c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x424481
mov dword [ebp - 0x470], 0
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.o23ne.doc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0xffffffff
jne 0x424399
xor eax, eax
jmp 0x424481
push 0
push 0x80
push 4
push 0
push 1
push 4
push str.two.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4243c3
xor eax, eax
jmp 0x424481
push 0
lea eax, [ebp - 0x478]
push eax
push 0x448
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424458
push 2
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x474], eax
push 0
mov ecx, dword [ebp - 0x478]
push ecx
push 0
mov edx, dword [ebp - 0x474]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea ecx, [ebp - 0x46c]
push ecx
mov edx, dword [ebp - 0x478]
push edx
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov edx, dword [ebp - 0x478]
push edx
push 0
mov eax, dword [ebp - 0x474]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x478], 0x448
je 0x4243c3
mov edx, dword [ebp - 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x425ca0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x70], 0x4332d0
mov ecx, dword [ebp - 0x34]
mov dword [0x433538], ecx
mov edx, dword [ebp - 0x34]
mov dword [edx], 0x84
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x64], 0x300
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ATL.DLL_AtlModuleInit]
cmp dword [ebp + 0x10], 0
je 0x425cfa
push 0x10
mov ecx, dword [ebp + 0x10]
push ecx
push 0x433528
call fcn.00426210
add esp, 0xc
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x18], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x10], 1
jbe 0x425ddb
mov ecx, dword [ebp - 0x10]
shl ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x74], 0xffffffff
mov dword [ebp - 0x2c], 0
jmp 0x425d44
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x20
jge 0x425d71
mov ecx, dword [ebp - 0x28]
and ecx, 0x80000000
test ecx, ecx
je 0x425d59
jmp 0x425d71
mov edx, dword [ebp - 0x28]
shl edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
shr ecx, 1
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x74], ecx
jmp 0x425d3b
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
shr ecx, 1
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x74], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
lea edx, [ecx*4 + 4]
push edx
push 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x78], eax
mov dword [ebp - 0x30], 0
jmp 0x425db4
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + 0x74]
ja 0x425dd9
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x78]
mov ecx, dword [ebp - 0x30]
mov dword [edx + ecx*4], eax
jmp 0x425dab
jmp 0x425def
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x78], 0
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x74], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425f10
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x425f2d
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x425f74
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
je 0x425f5a
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
jne 0x425f38
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x425f72
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
jmp 0x425f8e
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jle 0x425f8e
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
jmp 0x425f74
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
test edx, edx
je 0x425fb2
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x425fb2
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x4c], eax
jmp 0x425f8e
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp - 0x18]
and ecx, 1
test ecx, ecx
je 0x425fdb
mov edx, dword [ebp - 0x14]
and edx, 0xffff
mov dword [ebp - 0x50], edx
jmp 0x425fe2
mov dword [ebp - 0x50], 0xa
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x8a7c90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x44a000]
push edi
jmp 0x8a7caa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8a7cb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a7ca0
mov eax, 1
add ebx, ebx
jne 0x8a7cc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8a7cd4
jne 0x8a7cf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a7cf3
dec eax
add ebx, ebx
jne 0x8a7ce0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8a7cb8
add ebx, ebx
jne 0x8a7cef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8a7d45
xor ecx, ecx
sub eax, 3
jb 0x8a7d0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8a7d7a
sar eax, 1
mov ebp, eax
jmp 0x8a7d16
add ebx, ebx
jne 0x8a7d16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a7ce4
inc ecx
add ebx, ebx
jne 0x8a7d24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a7ce4
add ebx, ebx
jne 0x8a7d31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8a7d26
jne 0x8a7d42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8a7d26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8a7d64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8a7d56
jmp 0x8a7ca6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8a7d64
add edi, ecx
jmp 0x8a7ca6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8a7d82
cmp byte [edi], 0x11
jne 0x8a7d82
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 0x8a7d87
lea edi, [esi + 0x4a0000]
mov eax, dword [edi]
or eax, eax
je 0x8a7dff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x869450]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8695cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8a7db4
mov ecx, edi
jns 0x8a7de3
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 + 0x8695d0]
or eax, eax
je 0x8a7df9
mov dword [ebx], eax
add ebx, 4
jmp 0x8a7dd1
call dword [esi + 0x8695e0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8a7e30
cmp al, 0xef
ja 0x8a7e23
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x8a7e05
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x8a7e12
mov ebp, dword [esi + 0x8695d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x8a7e64
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401034
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call fcn.00401181
pop ecx
test eax, eax
pop ecx
je 0x40116c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x80
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push str.Driver
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40117d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.AcroPS32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x4010ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40117d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitDrv16
push eax
call esi
push str.DeviceCapabilitiesEx16
mov ebx, eax
push dword [ebp - 8]
call esi
push str.TerminateDrv16
mov dword [ebp - 4], eax
push dword [ebp - 8]
call esi
cmp ebx, edi
mov dword [ebp - 0x14], eax
je 0x401174
cmp dword [ebp - 4], edi
je 0x401174
cmp eax, edi
je 0x401174
lea eax, [ebp - 0x9c]
push eax
call ebx
test eax, eax
je 0x401163
push edi
push 0x244
push 2
pop ebx
push ebx
push edi
push dword [ebp + 8]
call dword [ebp - 4]
mov esi, dword [ebp + 0xc]
cmp eax, edi
jle 0x401118
mov dword [esi], eax
push edi
push 0x33
push ebx
push edi
push dword [ebp + 8]
call dword [ebp - 4]
cmp eax, edi
mov dword [esi + 4], eax
je 0x401143
cmp eax, 1
je 0x401143
cmp eax, ebx
je 0x401143
cmp eax, 3
jne 0x401140
mov word [esi + 8], 1
jmp 0x401147
mov dword [esi + 4], edi
mov word [esi + 8], di
push edi
push 0x29
push ebx
push edi
push dword [ebp + 8]
call dword [ebp - 4]
cmp eax, edi
jle 0x401159
mov dword [esi + 0xc], eax
call dword [ebp - 0x14]
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40116f
Function at 0x401181
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
push esi
lea eax, [ebp - 0x11c]
push edi
push eax
mov dword [ebp - 0x11c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401285
xor eax, eax
cmp dword [ebp - 0x10c], 1
sete al
test eax, eax
je 0x401285
lea eax, [ebp - 0x88]
push str.SystemCurrentControlSetcontrolPrintPrinters_
push eax
call fcn.0044bca0
push dword [ebp + 8]
lea eax, [ebp - 0x88]
push eax
call fcn.0044bcb0
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, 0x20019
lea eax, [ebp - 0x88]
push dword [ebp + 0xc]
mov edi, reloc.CoolType.dll_Ordinal_2
push ebx
push 0
push eax
push edi
call esi
test eax, eax
jne 0x401281
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push 0
push str.Printer_Driver
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebp + 0xc]
push dword [eax]
je 0x401240
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401281
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x88]
push str.SystemCurrentControlSetcontrolPrintEnvironmentsWindows_4.0Drivers_
push eax
call fcn.0044bca0
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0044bcb0
add esp, 0x10
lea eax, [ebp - 0x88]
push dword [ebp + 0xc]
push ebx
push 0
push eax
push edi
call esi
test eax, eax
je 0x401285
xor eax, eax
jmp 0x401288
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015d7
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x6111ec
call fcn.0044c164
sub esp, 0x154
mov eax, dword [0x672530]
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x1c], 0
push 1
pop eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
je 0x401610
mov esi, eax
jmp 0x4016e4
push ebx
push edi
mov dword [esi + 0x1c], eax
lea edi, [esi + 0x10]
push str.Rdlang32.
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.005f0850
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.005f06f4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005f05bb
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4016cc
cmp dword [ebp - 0x1c], 0
je 0x4016cc
push 0x66d34c
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.005f0850
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005f0850
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.005f06f4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.005f05bb
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.005f05bb
lea ecx, [ebp - 0x10]
call fcn.005f0aef
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00401572
lea eax, [ebp - 0x160]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x1c], eax
jmp 0x401657
mov eax, dword [esi + 0x18]
xor ecx, ecx
push ebx
mov eax, dword [eax + 0xc]
test eax, eax
setne cl
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.005f05bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005f05bb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x401a32
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x6112a0
call fcn.0044c164
push ecx
push ecx
push ebx
push esi
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp + 8]
xor ecx, ecx
mov eax, dword [ebx]
push edx
push 0xf003f
push ecx
push eax
push Ordinal_3
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0x104
call esi
test eax, eax
je 0x401a8d
mov ebx, dword [ebx]
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push ebx
push reloc.CoolType.dll_Ordinal_2
call esi
test eax, eax
je 0x401a8d
xor esi, esi
jmp 0x401ad1
mov ecx, dword [ebp + 0xc]
push 0x104
call fcn.005f09eb
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov esi, eax
call fcn.005f0a3a
test esi, esi
je 0x401ac5
xor esi, esi
jmp 0x401ac8
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.005f05bb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401aed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
and dword [ebp - 8], 0
mov eax, dword [ebx]
push edi
lea ecx, [ebp + 8]
mov edi, 0xf003f
push ecx
push edi
push 0
mov esi, Ordinal_3
push eax
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ecx, ecx
cmp eax, ecx
je 0x401b45
lea eax, [ebp - 8]
mov ebx, dword [ebx]
push eax
lea eax, [ebp + 8]
push eax
push ecx
push edi
push ecx
push dword [ebp + 0x10]
push ecx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401b45
xor eax, eax
jmp 0x401b76
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401b73
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401b88
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c5e
push edi
push 0x7d
pop edi
push edi
mov dword [ebp - 8], edi
call fcn.0059347c
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x401c54
lea ecx, [ebp - 0x1c]
push ebx
push ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
lea ecx, [ebp - 8]
push esi
push ecx
push eax
push esi
mov dword [ebp - 8], edi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x401c4a
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x401c4a
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00401b88
pop ecx
lea eax, [ebp - 0x10]
pop ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x401c4a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
je 0x401c4a
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], edi
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp - 4]
jmp 0x401be2
push dword [ebp - 0xc]
call fcn.00593542
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
leave
ret
Function at 0x4028ea
Capabilities:
Link many functions at runtime

Disassembly:
push edi
xor edi, edi
cmp dword [0x6adad0], edi
jne 0x402902
push 0x30
call fcn.0059347c
pop ecx
mov dword [0x6adad0], eax
push str.imm32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x6adad0]
mov dword [ecx], eax
mov eax, dword [0x6adad0]
mov ecx, dword [eax]
cmp ecx, edi
je 0x402a2b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmSetCompositionFontA
push ecx
call esi
mov ecx, dword [0x6adad0]
push str.ImmGetContext
mov dword [ecx + 0xc], eax
mov eax, dword [0x6adad0]
push dword [eax]
call esi
mov ecx, dword [0x6adad0]
push str.ImmReleaseContext
mov dword [ecx + 0x10], eax
mov eax, dword [0x6adad0]
push dword [eax]
call esi
mov ecx, dword [0x6adad0]
push str.ImmSetCompositionWindow
mov dword [ecx + 0x14], eax
mov eax, dword [0x6adad0]
push dword [eax]
call esi
mov ecx, dword [0x6adad0]
push str.ImmSetOpenStatus
mov dword [ecx + 0x18], eax
mov eax, dword [0x6adad0]
push dword [eax]
call esi
mov ecx, dword [0x6adad0]
push str.ImmCreateContext
mov dword [ecx + 0x1c], eax
mov eax, dword [0x6adad0]
push dword [eax]
call esi
mov ecx, dword [0x6adad0]
push str.ImmDestroyContext
mov dword [ecx + 0x20], eax
mov eax, dword [0x6adad0]
push dword [eax]
call esi
mov ecx, dword [0x6adad0]
push str.ImmAssociateContext
mov dword [ecx + 0x24], eax
mov eax, dword [0x6adad0]
push dword [eax]
call esi
mov ecx, dword [0x6adad0]
push str.ImmNotifyIME
mov dword [ecx + 0x28], eax
mov eax, dword [0x6adad0]
push dword [eax]
call esi
mov ecx, dword [0x6adad0]
mov dword [ecx + 0x2c], eax
call fcn.00402c42
mov ecx, dword [0x6adad0]
mov eax, dword [eax + 0x1c]
pop esi
mov dword [ecx + 8], eax
mov ecx, dword [0x6adad0]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
cmp eax, edi
je 0x402a21
push edx
call eax
mov ecx, dword [0x6adad0]
jmp 0x402a23
xor eax, eax
push 1
mov dword [ecx + 4], eax
pop eax
pop edi
ret
mov dword [eax + 0xc], edi
mov eax, dword [0x6adad0]
mov dword [eax + 0x10], edi
mov eax, dword [0x6adad0]
mov dword [eax + 0x14], edi
mov eax, dword [0x6adad0]
mov dword [eax + 0x18], edi
mov eax, dword [0x6adad0]
mov dword [eax + 0x1c], edi
mov eax, dword [0x6adad0]
mov dword [eax + 0x20], edi
mov eax, dword [0x6adad0]
mov dword [eax + 0x24], edi
mov eax, dword [0x6adad0]
mov dword [eax + 0x28], edi
mov eax, dword [0x6adad0]
mov dword [eax + 0x2c], edi
mov eax, dword [0x6adad0]
mov dword [eax + 4], edi
mov eax, dword [0x6adad0]
mov dword [eax + 8], edi
xor eax, eax
pop edi
ret