joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eed0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4a04cc
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41ef50
arpl word [edx + esi], si
xor byte [eax], 0xdf
pop ecx
sub esp, ebx
adc esp, dword [edx + 0x4d36237a]
insb byte es:[edi], dx
rcl ecx, cl
test al, 0xfb
jns 0x41ef52
add dword [eax - 0x10e7e3ca], ebp
xchg ebx, esi
xor bh, byte [ebx]
mov dl, 0x47
pop eax
mov al, byte [0x70e0846a]
imul dword [ebx]
mov ecx, 0xd6d2c95b
xchg ebx, eax
mov ecx, esi
leave
push cs
sal dword [esi], 1
ror cl, 0xff
clc
push ecx
dec ebx
enter 0xffffffffffffaff1, 0x41
invalid
invalid
inc edx
cmp eax, 0x8315b488
stosd dword es:[edi], eax
mov ah, 0xcd
fisttp word [ecx]
fiadd dword [ebx]
invalid
Function at 0x10001000
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x207
lea eax, [ebp - 0x207]
push 0
push eax
mov byte [ebp - 0x208], 0
call fcn.10004830
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x208]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001040
mov edx, dword [str.iphlpapi]
mov ecx, dword [0x1000b064]
mov dword [eax], edx
mov dx, word [0x1000b068]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10041f38], eax
test eax, eax
jne 0x1000107e
mov esp, ebp
pop ebp
ret
push 0x1000b06c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000109c
mov dword [0x10011a90], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000386c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10010330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10001e54
and dword [ebp - 0x14], 0
cmp dword [0x1001172c], 0
mov dword [ebp - 0x18], eax
jne 0x1000391f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100039c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100039c7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001172c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10011730], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10011734], eax
call edi
push eax
call esi
mov dword [0x1001173c], eax
test eax, eax
je 0x1000391f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10011738], eax
mov eax, dword [0x10011738]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10003978
cmp dword [0x1001173c], ecx
je 0x10003978
push eax
call esi
push dword [0x1001173c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10003978
test ebx, ebx
je 0x10003978
call edi
test eax, eax
je 0x1000396f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000396f
test byte [ebp - 8], 1
jne 0x10003978
or dword [ebp + 0x10], 0x200000
jmp 0x100039ab
mov eax, dword [0x10011730]
cmp eax, dword [ebp - 0x18]
je 0x100039ab
push eax
call esi
test eax, eax
je 0x100039ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100039ab
mov eax, dword [0x10011734]
cmp eax, dword [ebp - 0x18]
je 0x100039ab
push eax
call esi
test eax, eax
je 0x100039ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001172c]
call esi
test eax, eax
je 0x100039c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100039c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003bd7
leave
ret

Function at 0x10003bd7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10010330]
jne 0x10003be1
repz ret
jmp fcn.10004e4a

Function at 0x10005b00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
test eax, eax
jne 0x10005b1e
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
call fcn.10004ac0
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005ee0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x10005fbe
mov ecx, 0x100089c0
test ecx, ecx
je 0x10005fbe
lea edx, [ebp - 4]
push edx
call fcn.10005cf0
add esp, 4
test eax, eax
je 0x10005fbe
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push edi
mov edi, dword [ebp - 4]
push 0x40
push 0x1000
lea eax, [edi + 0xe]
push eax
push 0
call ebx
mov ecx, dword [ebp + 8]
mov esi, eax
mov dword [esi], edi
push edi
add esi, 4
lea eax, [esi + 5]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.10004ac0
add esp, 0xc
push 0x40
push 0x1000
push edi
push 0
call ebx
push edi
mov ebx, eax
push 0x90
push ebx
call fcn.10004830
mov eax, dword [ebp + 8]
mov byte [esi], 0xe9
mov edx, 0x100089c0
sub edx, esi
mov ecx, eax
sub ecx, esi
sub edx, 5
mov dword [esi + 1], edx
mov byte [esi + edi + 5], 0xe9
sub ecx, 0xa
mov dword [esi + edi + 6], ecx
sub esi, eax
sub esi, 5
mov dword [ebx + 1], esi
mov esi, edi
push ebx
mov edi, eax
mov byte [ebx], 0xe9
call fcn.10005b00
add esp, 0x10
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x10041f30], edx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100060b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x10011a9c]
push edi
push 0x10120
push 0
push 0x10031e10
call fcn.10004830
add esp, 0xc
mov ecx, esi
call fcn.10005fd0
push 0xa
mov dword [esi + 4], eax
call fcn.100011dd
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0xa
push eax
mov dword [0x10021cec], eax
call edi
mov eax, dword [esi + 4]
mov edx, dword [eax]
mov ecx, dword [0x10021cec]
mov dword [ecx], edx
mov dx, word [eax + 4]
mov ecx, dword [0x10021cec]
mov word [ecx + 4], dx
mov dl, byte [eax + 6]
mov eax, dword [0x10021cec]
lea ecx, [ebp - 4]
push ecx
push 0x40
mov byte [eax + 6], dl
mov edx, dword [esi + 4]
push 0xa
push edx
call edi
mov eax, dword [esi + 4]
mov byte [eax], 0xe9
mov esi, dword [esi + 4]
mov ecx, 0x10006070
sub ecx, esi
sub ecx, 5
pop edi
mov dword [esi + 1], ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006150
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.ZwCreateMutant
push str.NTDLL.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
movzx ebx, word [eax + 1]
push str.ZwCreateMutant
push str.NTDLL.dll
call esi
push eax
call edi
push 0x20
mov esi, eax
call fcn.100011dd
mov dword [ebx*4 + 0x10021cf0], eax
mov edi, eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx*4 + 0x10021cf0]
add esp, 4
mov dword [ebp - 0xc], 0xc015ff64
mov edx, dword [ebp - 0xc]
xor esi, esi
lea eax, [ecx + 6]
lea esp, [esp]
cmp dword [eax - 6], edx
jne 0x100061d6
cmp byte [eax - 2], 0
jne 0x100061d6
cmp byte [eax - 1], 0
jne 0x100061d6
cmp byte [eax], 0
je 0x100061df
inc esi
inc eax
cmp esi, 0x20
jl 0x100061c0
xor esi, esi
push str.ZwCreateMutant
push esi
push ecx
push ebx
push 0x1000cc3c
call fcn.10008980
mov ecx, dword [ebx*4 + 0x10021cf0]
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x40
push 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebx*4 + 0x10021cf0]
mov byte [esi + edx], 0xe8
mov eax, dword [ebx*4 + 0x10021cf0]
mov ecx, dword [0x10021cec]
sub ecx, eax
sub ecx, esi
sub ecx, 5
mov dword [eax + esi + 1], ecx
mov edx, dword [ebx*4 + 0x10021cf0]
mov eax, 0x9090
mov word [edx + esi + 5], ax
mov ecx, dword [ebx*4 + 0x10021cf0]
pop edi
pop esi
mov dword [ebx*4 + 0x10031e10], 0x100064d0
mov dword [0x10011a94], ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x1000cc30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x78]
mov ebx, dword [ecx + eax + 0x10]
mov esi, dword [ecx + eax + 0x1c]
mov edx, dword [ecx + eax + 0x20]
mov edi, dword [ecx + eax + 0x24]
add ecx, eax
mov ecx, dword [ecx + 0x14]
add esi, eax
add edx, eax
add edi, eax
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x100062bd
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
movzx ecx, word [edi + ebx*2]
add ecx, dword [ebp - 0x10]
mov edi, dword [esi + ecx*4 - 4]
mov ecx, dword [edx + ebx*4]
add edi, eax
mov esi, str.ZwCreateMutant
add ecx, eax
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x100062f4
test dl, dl
je 0x100062f0
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x100062f4
add ecx, 2
add esi, 2
test dl, dl
jne 0x100062d4
xor ecx, ecx
jmp 0x100062f9
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x1000630c
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x100062b4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10006260
movzx esi, word [eax + 1]
push str.ZwCreateMutant
push str.NTDLL.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10
mov edi, eax
mov dword [esi*4 + 0x10019bc8], 0x100064d0
call fcn.100011dd
mov dword [esi*4 + 0x10011aa8], eax
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
add esp, 4
mov dword [eax + 0xc], edx
mov ecx, dword [esi*4 + 0x10011aa8]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esi*4 + 0x10011aa8]
mov byte [edx + 5], 0xe8
mov eax, dword [esi*4 + 0x10011aa8]
mov ecx, fcn.10006320
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
mov edx, dword [esi*4 + 0x10011aa8]
mov eax, 0x9090
mov word [edx + 0xa], ax
mov ecx, dword [esi*4 + 0x10011aa8]
pop edi
mov dword [0x10011a94], ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10006430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.NTDLL.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x8120
push 0
push 0x10019bc8
mov esi, eax
call fcn.10004830
push 0x8120
push 0
push 0x10011aa8
call fcn.10004830
add esp, 0x18
push str.KiFastSystemCall
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [ebp - 4]
push edx
push 0x40
lea ecx, [eax + 2]
mov dword [0x10021ce8], eax
push 0x64
add eax, 0xfffffff6
push eax
mov dword [0x10011aa4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x10021ce8]
mov edx, 0x10006400
sub edx, eax
mov ecx, 0xf4eb
mov word [eax], cx
add edx, 5
mov byte [eax - 0xa], 0xe9
mov dword [eax - 9], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c004]
jne 0x40100a
repz ret
jmp fcn.00401653

Function at 0x4041db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402c7c
and dword [ebp - 0x14], 0
cmp dword [0x43e270], 0
mov dword [ebp - 0x18], eax
jne 0x40428e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404336
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404336
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43e270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43e274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43e278], eax
call edi
push eax
call esi
mov dword [0x43e280], eax
test eax, eax
je 0x40428e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43e27c], eax
mov eax, dword [0x43e27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4042e7
cmp dword [0x43e280], ecx
je 0x4042e7
push eax
call esi
push dword [0x43e280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4042e7
test ebx, ebx
je 0x4042e7
call edi
test eax, eax
je 0x4042de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4042de
test byte [ebp - 8], 1
jne 0x4042e7
or dword [ebp + 0x10], 0x200000
jmp 0x40431a
mov eax, dword [0x43e274]
cmp eax, dword [ebp - 0x18]
je 0x40431a
push eax
call esi
test eax, eax
je 0x40431a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40431a
mov eax, dword [0x43e278]
cmp eax, dword [ebp - 0x18]
je 0x40431a
push eax
call esi
test eax, eax
je 0x40431a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43e270]
call esi
test eax, eax
je 0x404336
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404338
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x43527f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x43fb1c]
push dword [0x43f968]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x435385
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ebx, 0x19f
jne 0x435399
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x4353bc
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.0043537a
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
xor byte [eax + edi], cl
inc edi
cmp edi, ebx
jl 0x4353a1
pop esi
pop edi
cmp ebx, 0x2d
jne 0x4353d3
or dword [0x43fc54], 0xffffffff
mov dword [0x43fc50], 0xa62e7790
leave
ret
Function at 0x401000
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x42717e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x432c20]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
lea edi, [ebx + 0x24c]
call fcn.00405ba1
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x401051
push 0x80004005
call fcn.00401460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
cmp ebp, esi
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], esi
mov dword [ebx + 0x244], ecx
mov dword [ebx + 0x240], 0x8002
mov dword [ebx + 0x248], esi
je 0x401124
push esi
push 0x42c23c
mov ecx, edi
call fcn.00401660
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401097
sub eax, edx
sar eax, 1
push eax
push ebp
mov ecx, edi
call fcn.004013b0
xor ebp, ebp
mov edi, ebx
push esi
push esi
push esi
push esi
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi], eax
je 0x4010e5
mov edx, dword [edi + 4]
push edx
push eax
mov ecx, ebp
lea esi, [esp + 0x20]
mov eax, ebx
call fcn.004011e0
mov ecx, dword [eax]
mov dword [edi + 8], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0xc], edx
xor esi, esi
add ebp, 1
add edi, 0x10
cmp ebp, 0x22
jl 0x4010b3
push esi
push esi
push esi
push esi
mov dword [ebx + 0x224], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [ebx + 0x220], eax
je 0x401124
lea eax, [esp + 0x3c]
push eax
push esi
push ebx
push 0x4012d0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x248], eax
mov eax, ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x401d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401d69
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401da4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401da0
lea ebx, [ebx]
cmp esi, eax
jae 0x401da4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d90
cmp esi, eax
jb 0x401daa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403920
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push edi
mov edi, ecx
call fcn.004065d7
mov eax, dword [edi + 0xe0]
mov ecx, dword [edi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call ebx
mov edx, dword [edi + 0xe0]
mov eax, dword [edi + 0x20]
push edx
push 0
push 0x80
push eax
call ebx
mov edx, dword [0x42c704]
mov eax, dword [0x42c708]
mov ecx, dword [0x42c700]
mov dword [esp + 0x1c], edx
push 0
lea edx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x42c70c]
push edx
push eax
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x1c], 5
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], ecx
mov word [esp + 0x34], 0
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov dword [edi + 0xf4], eax
call fcn.00403810
test eax, eax
jne 0x4039e2
pop edi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00413430
mov esp, ebp
pop ebp
ret
push 1
push 0xf
push 0xfffffffffffffff1
lea ecx, [edi + 0x4f4]
call fcn.0040f1f1
mov eax, dword [edi + 0x514]
push 0
push 1
push 0x414
push eax
call ebx
call fcn.0040cfc5
mov eax, dword [eax + 0xc]
push 0x97
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
lea ecx, [edi + 0xe4]
call fcn.0040efb4
mov word [edi + 0xbe], 0x409
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
test cx, cx
je 0x403a48
call fcn.00401a30
mov word [edi + 0xbe], ax
mov cx, word [edi + 0xbe]
mov ebx, edi
mov word [edi + 0xbc], cx
mov dword [edi + 0xb8], 1
call fcn.00403c20
push 1
push 0x42ca78
push str.General
mov ecx, 0x436f38
call fcn.0040ec6b
push 1
push str.ShowBallonMsg
push str.General
mov ecx, 0x436f38
mov dword [edi + 0x74], eax
call fcn.0040ec6b
push 0
push 0
mov ecx, edi
mov dword [edi + 0x78], eax
call fcn.00404390
mov ecx, dword [esp + 0x2c]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00413430
mov esp, ebp
pop ebp
ret
Function at 0x405720
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x426d68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x432c20]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
call fcn.0040cfc5
mov eax, dword [eax + 8]
movzx ecx, di
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], edi
jne 0x405778
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
call fcn.00405ba1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405792
push 0x80004005
call fcn.00401460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
push 0x3b8
lea edi, [esi + 0x10]
push 0
push edi
mov dword [esp + 0x28], 0
call fcn.004148c0
add esp, 0xc
mov dword [edi], 0x3b8
call fcn.0040dd41
test eax, eax
je 0x4057d9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
test eax, eax
jne 0x4057dd
xor eax, eax
jmp 0x4057e0
mov eax, dword [eax + 0x20]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], 0x8001
mov dword [esi + 0x1c], 7
mov dword [esi + 0x24], edx
mov dword [esi + 0x3b4], 4
push 0x80
add esi, 0x28
push esi
call fcn.00413958
lea eax, [ebx - 0x10]
add esp, 0xc
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40583d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret