joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418e2e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
xor edi, edi
cmp esi, edi
je 0x418eb3
cmp dword [ebp + 8], edi
je 0x418eb3
push 0x3fc
lea eax, [ebp - 0x3fc]
push edi
push eax
mov dword [ebp - 0x400], edi
call fcn.00596530
add esp, 0xc
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x418e72
shr eax, 1
xor eax, 0xedb88320
jmp 0x418e74
shr eax, 1
dec edx
jne 0x418e65
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x418e60
or eax, 0xffffffff
xor ecx, ecx
cmp dword [ebp + 8], edi
jbe 0x418eaf
movzx edx, byte [ecx + esi]
mov edi, eax
and edi, 0xff
xor edx, edi
shr eax, 8
xor eax, dword [ebp + edx*4 - 0x400]
inc ecx
cmp ecx, dword [ebp + 8]
jb 0x418e91
not eax
jmp 0x418eb5
xor eax, eax
pop edi
leave
ret

Function at 0x41a373
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp esi, edi
je 0x41a3dc
cmp word [esi], di
je 0x41a3dc
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00596530
push 0x103
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00476abd
add esp, 0x18
test eax, eax
je 0x41a3d8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a3d8
inc edi
mov eax, edi
jmp 0x41a3de
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0058f3cf
leave
ret

Function at 0x41aac5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ecx, edi
xor esi, esi
call fcn.0041acb1
test eax, eax
je 0x41ab8b
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00596530
add esp, 0xc
lea eax, [edi + 0x71f4]
push eax
push 0x5db9e0
lea eax, [ebp - 0x210]
push 0x103
push eax
call fcn.0058f42f
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ab5f
lea ebx, [ebp - 0x210]
call fcn.0047601e
mov esi, dword [edi + 0x7444]
call fcn.00470776
mov esi, eax
test esi, esi
je 0x41ab8b
and dword [edi + 0x7438], 0
mov dword [edi + 0x7414], 2
mov dword [edi + 0x7440], 1
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
leave
ret
Function at 0x41ab9b
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041aec4
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or eax, 0xffffffff
mov dword [esi + 0x7400], eax
mov dword [esi + 0x7404], eax
mov dword [esi + 0x7408], eax
mov dword [esi + 0x740c], eax
xor eax, eax
lea ebx, [esi + 0x71f4]
push ebx
mov dword [esi + 0x7420], eax
mov dword [esi + 0x7424], eax
mov dword [esi + 0x7438], eax
mov dword [esi + 0x743c], 1
call edi
test eax, eax
je 0x41ac17
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00596530
add esp, 0xc
push 0x5def44
push ebx
push 0x5def50
lea eax, [ebp - 0x210]
push 0x103
push eax
call fcn.0058f42f
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
je 0x41ac80
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call edi
test eax, eax
jne 0x41ac94
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
je 0x41ac9b
and dword [esi + 0x7410], 0
mov edi, esi
call fcn.0041aac5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
leave
ret
Function at 0x41cd58
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
add ebx, 0x10
push esi
push edi
xor edi, edi
sar eax, 2
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
test eax, eax
jbe 0x41ce97
mov esi, ebx
call fcn.004750c1
mov esi, dword [eax]
mov eax, dword [esi + 0x7430]
cmp eax, dword [ebp + 8]
je 0x41cdbf
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
inc edi
sar eax, 2
mov dword [ebp - 0x214], edi
cmp edi, eax
jb 0x41cd92
jmp 0x41ce97
call fcn.0041aec4
cmp dword [esi + 0x7414], 0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x41ce2e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00596530
add esp, 0xc
push 0x5def44
lea eax, [esi + 0x71f4]
push eax
push 0x5def50
lea eax, [ebp - 0x210]
push 0x103
push eax
call fcn.0058f42f
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
je 0x41ce2e
lea ecx, [ebp - 0x210]
call fcn.0047611f
cmp dword [ebp + 0xc], 0
je 0x41ce4c
lea eax, [esi + 0x71f4]
push eax
call edi
test eax, eax
je 0x41ce4c
lea ecx, [esi + 0x71f4]
call fcn.0047611f
push esi
call fcn.0058f3c4
mov edi, ebx
mov ebx, dword [ebx + 0xc]
pop ecx
lea esi, [ebp - 0x21c]
call fcn.004754c4
push dword [ebp - 0x214]
lea ebx, [ebp - 0x22c]
mov eax, esi
call fcn.0041dd09
push dword [eax + 4]
mov ecx, edi
push dword [eax]
lea eax, [ebp - 0x224]
call fcn.00525d1a
mov dword [ebp - 0x218], 1
call fcn.0041cc45
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
leave
ret 8

Function at 0x41d1be
Capabilities:
Check if file exists

Disassembly:
push esi
push dword [esp + 8]
xor esi, esi
call fcn.0041d3c1
cmp eax, esi
je 0x41d1ef
push ebx
lea ebx, [eax + 0x71f4]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d1ee
push 1
push esi
push 1
call fcn.00427465
add esp, 0xc
inc esi
pop ebx
mov eax, esi
pop esi
ret 4
Function at 0x41d1f5
Capabilities:
Check if file exists

Disassembly:
push 0x418
mov eax, 0x5b436d
call fcn.00598f94
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edi, edi
call fcn.0041d3c1
mov esi, eax
cmp esi, edi
je 0x41d346
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00596530
lea eax, [esi + 0x71f4]
push eax
push 0x5db9e0
mov edi, 0x103
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0058f42f
xor eax, eax
push ebx
mov word [ebp - 0x420], ax
xor ebx, ebx
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.00596530
push 0x5def44
lea eax, [esi + 0x71f4]
push eax
push 0x5def50
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.0058f42f
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x3c
cmp dword [esi + 0x7414], ebx
jne 0x41d2b2
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x41d2bf
cmp dword [esi + 0x7414], ebx
je 0x41d320
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x41d320
mov eax, dword [0x63696c]
mov ecx, 0x63696c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
cmp dword [esi + 0x7414], ebx
je 0x41d2ec
lea eax, [ebp - 0x420]
push eax
push str._select____s_
lea eax, [ebp - 0x424]
call fcn.00404f66
mov esi, dword [ebp - 0x424]
xor edi, edi
inc edi
push edi
push esi
push edi
mov ebx, str.explorer.exe
call fcn.00427465
add esp, 0x14
lea eax, [esi - 0x10]
call fcn.00407b6b
jmp 0x41d346
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x218]
push eax
push edi
mov ebx, str.explorer.exe
call fcn.00427465
add esp, 0xc
mov eax, edi
call fcn.00599017
ret 8
Function at 0x41da3a
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x240]
sub esp, 0x2c0
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x23c], eax
mov eax, dword [ebp + 0x248]
and dword [ebp - 0x80], 0
cmp word [eax], 0
mov dword [ebp - 0x7c], eax
jne 0x41da6f
xor eax, eax
jmp 0x41db0e
push ebx
push esi
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ebx, 0x2b0
lea edi, [ebx + 4]
test eax, eax
je 0x41dab6
and dword [ebp - 0x78], 0
push ebx
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00596530
add esp, 0xc
push 0x100
push edi
lea eax, [ebp - 0x78]
push eax
push 0
push dword [ebp - 0x7c]
call esi
mov eax, dword [ebp - 0x78]
test eax, eax
jne 0x41db05
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x41db08
push str..exe
push eax
call fcn.0058f69a
pop ecx
pop ecx
test eax, eax
je 0x41db08
and dword [ebp - 0x78], 0
push ebx
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00596530
add esp, 0xc
push 0x110
push edi
lea eax, [ebp - 0x78]
push eax
push 0x80
push dword [ebp - 0x7c]
call esi
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x41db08
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x23c]
xor ecx, ebp
call fcn.0058f3cf
add ebp, 0x240
leave
ret 4

Function at 0x41e495
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push edi
mov esi, 0x63f340
cmp ax, word [0x63f340]
jne 0x41e532
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x5df10c
mov ebx, 0x63c268
push ebx
push esi
call edi
push str.excpt.dat
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHPathPrepareForWriteW]
test eax, eax
je 0x41e4f6
xor eax, eax
mov word [0x63f340], ax
jmp 0x41e534
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00596530
add esp, 0xc
push 0x5df10c
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f3cf
leave
ret
Function at 0x41e543
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push edi
cmp dword [0x6393b8], ebx
jne 0x41e61b
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x41e56c
push 2
pop eax
jmp 0x41e61d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push edi
call esi
push str.SymSetOptions
push edi
mov dword [0x6393b8], eax
call esi
push str.StackWalk
push edi
mov dword [0x6393bc], eax
call esi
push str.SymFunctionTableAccess
push edi
mov dword [0x638364], eax
call esi
push str.MiniDumpWriteDump
push edi
mov dword [0x6393b4], eax
call esi
push str.SymGetModuleBase
push edi
mov dword [0x6393c0], eax
call esi
push str.GetModuleFileNameExW
push 0x5df1d0
mov dword [0x6393c4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
mov dword [0x6393c8], eax
pop esi
cmp dword [0x6393b8], ebx
je 0x41e620
mov ecx, dword [0x6393bc]
cmp ecx, ebx
je 0x41e620
cmp dword [0x638364], ebx
je 0x41e620
cmp dword [0x6393b4], ebx
je 0x41e620
cmp dword [0x6393c0], ebx
je 0x41e620
cmp eax, ebx
je 0x41e620
push 0x12
call ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x6393b8]
xor eax, eax
pop edi
pop ebx
ret
mov dword [0x6393b8], ebx
push 6
jmp 0x41e566
Function at 0x41e9a7
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push esi
mov ebx, 0x7ffffffe
push ebx
lea edx, [edi + 0x454]
mov eax, 0x638368
mov ecx, 0x824
call fcn.004054ba
xor ebp, ebp
cmp dword [0x63d1e8], ebp
je 0x41e9d6
mov esi, 0x63d1f0
jmp 0x41e9dd
call fcn.00401461
mov esi, eax
mov dword [edi + 0x330], ebp
cmp dword [0x63c040], ebp
je 0x41e9f7
mov dword [edi + 0x330], 1
jmp case.default.0x41ea17
cmp dword [0x63c044], ebp
jne case.0x41ea17.8
cmp esi, ebp
je case.default.0x41ea17
mov ecx, str.__class
call fcn.004254af
push 7
add eax, 0xfffffffe
pop ecx
cmp eax, ecx
ja case.default.0x41ea17
jmp dword [eax*4 + 0x41eb0f]
mov dword [edi + 0x330], 2
jmp case.default.0x41ea17
mov dword [edi + 0x330], 3
jmp case.default.0x41ea17
mov dword [edi + 0x330], 4
jmp case.default.0x41ea17
mov dword [edi + 0x330], 6
jmp case.default.0x41ea17
mov dword [edi + 0x330], ecx
jmp case.default.0x41ea17
mov dword [edi + 0x330], 8
jmp case.default.0x41ea17
mov dword [edi + 0x330], 9
mov eax, dword [0x63a5cc]
mov dword [edi + 0x32c], eax
mov eax, dword [0x6b4520]
mov dword [edi + 0x334], eax
mov eax, dword [0x637ec8]
mov dword [edi + 0x338], eax
mov eax, dword [0x63805c]
mov dword [edi + 0x33c], eax
mov eax, dword [0x639454]
push ebp
mov dword [edi + 0x340], eax
call fcn.005901bf
pop ecx
mov dword [edi + 0x348], eax
mov dword [edi + 0x34c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x350], eax
cmp esi, ebp
je 0x41eaca
mov eax, esi
jmp 0x41ead0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [edi + 0x149e]
mov ecx, 0x825
call fcn.004054f9
push ebx
lea edx, [edi + 0x354]
mov eax, 0x638060
mov ecx, 0x80
call fcn.004054ba
push ebx
push 0x40
lea edx, [edi + 0x24e8]
mov eax, 0x6bad08
pop ecx
call fcn.004054ba
pop esi
pop ebp
pop ebx
ret
Function at 0x41f80c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
inc dword [0x63805c]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x41f926
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 8
push esi
call edi
test eax, eax
jne 0x41f926
push 0x50
push dword [esi]
call edi
test eax, eax
jne 0x41f926
push 0x50
push dword [esi + 4]
call edi
test eax, eax
jne 0x41f926
push ebx
mov edi, 0x2568
push edi
call fcn.0058f82d
push edi
mov ebx, eax
push 0
push ebx
call fcn.00596530
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 0x324], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x328], eax
mov esi, dword [esi + 4]
mov eax, dword [ebp + 8]
push 0x14
lea edi, [ebx + 0x50]
mov ecx, 0xb3
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax]
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x41f61d
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0x493e0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x41f8d2
push ebx
call fcn.0058f3c4
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edi, edi
inc edi
cmp dword [eax], 0xc00000fd
pop ebx
jne 0x41f922
xor eax, eax
cmp eax, fcn.00593bf8
je 0x41f8ff
call fcn.00593bf8
test eax, eax
je 0x41f8ff
or edi, 0xffffffff
mov eax, dword [0x6393cc]
cmp eax, esi
je 0x41f922
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], esi
call eax
add dword [ebp + 8], 0x200000
lea eax, [ebp + 8]
push eax
call dword [0x6393cc]
mov eax, edi
jmp 0x41f929
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x42319f
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
mov eax, dword [ebp + 0x1c8]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp eax, esi
jne 0x4231d1
xor eax, eax
jmp 0x423295
mov eax, dword [eax + 0x331c]
cmp eax, esi
je 0x4231ca
push edi
push eax
call fcn.0047795f
mov edi, eax
pop ecx
cmp edi, esi
je 0x423292
cmp word [edi], si
je 0x423292
call fcn.00422d27
cmp eax, esi
jne 0x423288
xor eax, eax
push 0x1fe
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push esi
push eax
call fcn.00596530
push 0x38
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00596530
add esp, 0x18
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push edi
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x6c], 0xff
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x42328b
cmp word [ebp - 0x44], si
je 0x42328b
push 0x5df798
lea eax, [ebp - 0x44]
call fcn.004268ca
pop ecx
test eax, eax
jne 0x423288
push str.baidu.com
lea eax, [ebp - 0x44]
call fcn.004268ca
pop ecx
test eax, eax
jne 0x423288
push str.123juzi.com
lea eax, [ebp - 0x44]
call fcn.004268ca
pop ecx
test eax, eax
je 0x42328b
xor esi, esi
inc esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
pop edi
mov ecx, dword [ebp + 0x1bc]
xor ecx, ebp
pop esi
call fcn.0058f3cf
add ebp, 0x1c0
leave
ret 4
Function at 0x423a63
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10e8
call fcn.005a41d0
mov eax, dword [0x61dc40]
xor eax, esp
mov dword [esp + 0x10e4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [esp + 0x18], eax
xor edi, edi
mov eax, 0x800c0011
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
cmp ecx, edi
je 0x423c71
cmp word [ecx], di
je 0x423c71
cmp edx, edi
je 0x423c71
cmp word [edx], di
je 0x423c71
xor eax, eax
push 0x7e
mov word [esp + 0x24], ax
lea eax, [esp + 0x26]
push edi
push eax
call fcn.00596530
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0x40
lea ebx, [esp + 0x24]
mov edi, str.x_flash_version
call fcn.00423c87
test eax, eax
je 0x423aff
mov eax, 0x800c0011
jmp 0x423c71
call fcn.004fa9ea
mov ecx, eax
mov eax, dword [esp + 8]
call fcn.004fb43f
test eax, eax
jne 0x423af5
push 0x1046
push eax
mov word [esp + 0xa8], ax
lea eax, [esp + 0xaa]
push eax
call fcn.00596530
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0x824
lea ebx, [esp + 0xa4]
mov edi, 0x5df980
call fcn.00423c87
xor ebx, ebx
cmp eax, ebx
je 0x423af5
call fcn.004fa9ea
mov ecx, eax
mov eax, dword [esp + 8]
call fcn.004fb59f
test eax, eax
je 0x423b9a
mov eax, dword [esi]
push str.text_html
push 0xd
push esi
call dword [eax + 0x10]
mov eax, dword [esi]
push ebx
push ebx
push 0xd
push esi
call dword [eax + 0x14]
mov eax, dword [esi]
push ebx
push 0xc8
push ebx
push esi
call dword [eax + 0x18]
mov eax, dword [esp + 0x18]
mov dword [eax], 1
xor eax, eax
jmp 0x423c71
mov dword [esp + 0xc], ebx
call fcn.004fa9ea
mov ecx, dword [esp + 8]
call fcn.004fb655
mov dword [esp + 0x10], eax
call fcn.004fa9ea
mov ecx, dword [esp + 8]
lea eax, [esp + 0xa0]
push eax
lea edx, [esp + 0x10]
call fcn.004facdc
test eax, eax
je 0x423c6d
cmp dword [esp + 0x10], 2
jne 0x423c3b
push str.BINARY
push str.IDR_GIF_TANS
push dword [0x639508]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [0x639508]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [esp + 0xc]
mov edi, dword [esp + 0x20]
push dword [0x639508]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push str.image_png
push 0xd
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], ebx
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov edi, dword [edi + 0x18]
push edi
push edi
jmp 0x423c4a
mov eax, dword [esi]
push str.text_plain
push 0xd
push esi
call dword [eax + 0x10]
push ebx
push ebx
mov eax, dword [esi]
push 0xd
push esi
call dword [eax + 0x14]
mov eax, dword [esi]
push ebx
push 0xc8
push ebx
push esi
call dword [eax + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [eax], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10ec]
pop edi
pop ebx
xor ecx, esp
call fcn.0058f3cf
mov esp, ebp
pop ebp
ret 8
Function at 0x4243f2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x418
lea ebp, [esp - 4]
mov eax, dword [0x61dc40]
xor eax, ebp
mov dword [ebp + 0x418], eax
push 0x34
mov eax, 0x5b4306
call fcn.00598f2b
mov eax, dword [ebp + 0x424]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], 0x208
mov dword [ebp - 0x18], esi
call edi
test eax, eax
je 0x424456
xor eax, eax
jmp 0x4245b9
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
push esi
jmp 0x42459c
cmp dword [ebp - 0x10], esi
jne 0x4245ad
mov eax, dword [0x63696c]
inc dword [ebp - 0x20]
mov ecx, 0x63696c
mov dword [ebp - 0x28], 0x104
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea eax, [ebp]
push eax
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push 0x5dfc14
lea eax, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.00404f66
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
push ebx
call edi
test eax, eax
jne 0x42457e
push 0x208
mov word [ebp + 0x20c], ax
lea eax, [ebp + 0x20e]
push esi
push eax
call fcn.00596530
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x20c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push str.NetCfgInstanceId
push dword [ebp - 0x14]
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424575
lea eax, [ebp + 0x20c]
push eax
push dword [ebp - 0x40]
call fcn.0042e684
test eax, eax
jne 0x424575
push 4
pop eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push str.Characteristics
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x424572
mov eax, dword [ebp - 0x2c]
mov edx, eax
and edx, ecx
je 0x42456a
mov dword [ebp - 0x1c], 2
jmp 0x424572
and eax, 4
je 0x424572
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00407b6b
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x42446e
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x418]
xor ecx, ebp
call fcn.0058f3cf
add ebp, 0x41c
leave
ret 4