joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52af90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x563a68]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004054d0
add esp, 0xc
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
cmp dword [0x58d25c], 0
jne 0x52b0d1
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str.IPHelperMutex
push str._s__d
lea ecx, [ebp - 0x110]
push ecx
call fcn.004633a8
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x52b02c
xor eax, eax
jmp 0x52b0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x52b048
push 0xffffffffffffffff
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x58d25c], 0
jne 0x52b0b7
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x58d260], eax
cmp dword [0x58d260], 0
jne 0x52b076
mov dword [ebp - 0x114], 0xfffffffe
jmp 0x52b0ad
push str.GetNetworkParams
mov ecx, dword [0x58d260]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x58d254], eax
cmp dword [0x58d254], 0
je 0x52b0ad
push str.GetAdaptersInfo
mov edx, dword [0x58d260]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x58d258], eax
mov dword [0x58d25c], 1
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040526d
mov esp, ebp
pop ebp
ret
Function at 0x52f4a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [0x563a68]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x54c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x664], 0
mov byte [ebp - 0x770], 0
push 0x103
push 0
lea eax, [ebp - 0x76f]
push eax
call fcn.004054d0
add esp, 0xc
mov byte [ebp - 0x440], 0
push 0x103
push 0
lea ecx, [ebp - 0x43f]
push ecx
call fcn.004054d0
add esp, 0xc
mov dword [ebp - 0x554], 0
mov byte [ebp - 0x548], 0
push 0x103
push 0
lea edx, [ebp - 0x547]
push edx
call fcn.004054d0
add esp, 0xc
mov byte [ebp - 0x330], 0
push 0x103
push 0
lea eax, [ebp - 0x32f]
push eax
call fcn.004054d0
add esp, 0xc
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x660], 0
push 0x103
push 0
lea ecx, [ebp - 0x65f]
push ecx
call fcn.004054d0
add esp, 0xc
mov byte [ebp - 0x878], 0
push 0x103
push 0
lea edx, [ebp - 0x877]
push edx
call fcn.004054d0
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004054d0
add esp, 0xc
mov dword [ebp - 0x21c], str.wkwin32.dll
mov dword [ebp - 0x334], str.wkwin64.dll
mov dword [ebp - 0x218], str.VeriSign
mov dword [ebp - 0x550], str.WIBU_SYSTEMS_AG
push 0x104
lea ecx, [ebp - 0x878]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x878]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0046832f
add esp, 8
lea eax, [ebp - 0x210]
push eax
call fcn.005560c0
add esp, 4
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x660]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x548]
push ecx
lea edx, [ebp - 0x554]
push edx
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x770]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00556210
add esp, 0x20
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x52f6b4
cmp dword [0x58d1e0], 0
je 0x52f6b0
push str.Unable_to_get_WIBU_DLL_certificate_information__n
call dword [0x58d1e0]
add esp, 4
xor eax, eax
jmp 0x52f724
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x770]
push ecx
call fcn.00464140
add esp, 8
test eax, eax
je 0x52f707
lea edx, [ebp - 0x440]
test edx, edx
je 0x52f707
cmp dword [ebp - 0x550], 0
je 0x52f707
push 0xf
mov eax, dword [ebp - 0x550]
push eax
lea ecx, [ebp - 0x440]
push ecx
call fcn.00408106
add esp, 0xc
test eax, eax
jne 0x52f707
mov dword [ebp - 0x224], 1
cmp dword [ebp - 0x220], 0
je 0x52f722
cmp dword [ebp - 0x224], 0
je 0x52f722
mov eax, 1
jmp 0x52f724
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040526d
mov esp, ebp
pop ebp
ret
Function at 0x5304c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x563a68]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x40], 0x71
mov byte [ebp - 0x3f], 0xd5
mov byte [ebp - 0x3e], 0xac
mov byte [ebp - 0x3d], 0xe3
mov byte [ebp - 0x3c], 0xb3
mov byte [ebp - 0x3b], 0x2b
mov byte [ebp - 0x3a], 0x77
mov byte [ebp - 0x39], 0x6f
mov byte [ebp - 0x38], 0xcc
mov byte [ebp - 0x37], 0x37
mov byte [ebp - 0x36], 0x9f
mov byte [ebp - 0x35], 0x94
mov byte [ebp - 0x34], 0x8f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0xa9
mov byte [ebp - 0x31], 0xd6
mov byte [ebp - 0x30], 0xec
mov byte [ebp - 0x2f], 0x9a
mov byte [ebp - 0x2e], 0x82
mov byte [ebp - 0x2d], 0xcc
mov byte [ebp - 0x2c], 0xa6
mov byte [ebp - 0x2b], 0xef
mov byte [ebp - 0x2a], 0x6e
mov byte [ebp - 0x29], 0x61
mov byte [ebp - 0x28], 0x77
mov byte [ebp - 0x27], 0xb8
mov byte [ebp - 0x26], 0x41
mov byte [ebp - 0x25], 0x25
mov byte [ebp - 0x24], 0x94
mov byte [ebp - 0x23], 0xd7
mov byte [ebp - 0x22], 0xe2
mov byte [ebp - 0x21], 0xca
mov byte [ebp - 0x20], 0x48
mov byte [ebp - 0x1f], 0x2a
mov byte [ebp - 0x1e], 0x73
mov byte [ebp - 0x1d], 0x35
mov byte [ebp - 0x1c], 0x33
mov byte [ebp - 0x1b], 0x1e
mov byte [ebp - 0x1a], 0x6a
mov byte [ebp - 0x19], 0xb8
mov byte [ebp - 0x18], 0x2d
mov byte [ebp - 0x17], 0x67
mov byte [ebp - 0x16], 0xb5
mov byte [ebp - 0x15], 0x8f
mov byte [ebp - 0x14], 0xce
mov byte [ebp - 0x13], 0x43
mov byte [ebp - 0x12], 0xff
mov byte [ebp - 0x11], 0x2b
mov byte [ebp - 0x10], 0xf9
mov byte [ebp - 0xf], 0x97
mov byte [ebp - 0xe], 6
mov byte [ebp - 0xd], 0xfe
mov byte [ebp - 0xc], 0xd2
mov byte [ebp - 0xb], 0x11
mov byte [ebp - 0xa], 0xec
mov byte [ebp - 9], 0x47
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x530602
cmp dword [ebp + 0xc], 0
je 0x530602
cmp dword [ebp + 0x10], 0
je 0x530602
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x38
jbe 0x5305da
mov dword [ebp - 0x44], 0x38
jmp 0x5305e2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00404070
add esp, 0xc
jmp 0x530618
cmp dword [ebp + 0x10], 0
je 0x530611
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 4], 0xffffffd6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040526d
mov esp, ebp
pop ebp
ret

Function at 0x533ab0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0x60
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004054d0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
xor eax, eax
pop ebp
ret
Function at 0x408643
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40868a
call fcn.0040b899
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40868a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4086a6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004081bb
mov esi, eax
test edi, edi
je 0x4086a4
test ebx, ebx
je 0x4086a4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40c5cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40c5ef
cmp dword [edi + 0x54], 0
jne 0x40c5ef
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040b899
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040c58c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x411cff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436df0]
jne 0x411d09
repz ret
jmp fcn.00416993
Function at 0x41de32
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004163a2
and dword [ebp - 4], 0
cmp dword [0x43b1b8], 0
mov ebx, eax
jne 0x41dee3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41df94
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41df94
push eax
call fcn.00416330
mov dword [esp], 0x42e784
push edi
mov dword [0x43b1b8], eax
call esi
push eax
call fcn.00416330
mov dword [esp], 0x42e770
push edi
mov dword [0x43b1bc], eax
call esi
push eax
call fcn.00416330
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43b1c0], eax
call esi
push eax
call fcn.00416330
pop ecx
mov dword [0x43b1c8], eax
test eax, eax
je 0x41dee3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416330
pop ecx
mov dword [0x43b1c4], eax
mov eax, dword [0x43b1c4]
cmp eax, ebx
je 0x41df3b
cmp dword [0x43b1c8], ebx
je 0x41df3b
push eax
call fcn.004163ab
push dword [0x43b1c8]
mov esi, eax
call fcn.004163ab
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41df3b
test edi, edi
je 0x41df3b
call esi
test eax, eax
je 0x41df32
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41df32
test byte [ebp - 0xc], 1
jne 0x41df3b
or dword [ebp + 0x10], 0x200000
jmp 0x41df74
mov eax, dword [0x43b1bc]
cmp eax, ebx
je 0x41df74
push eax
call fcn.004163ab
pop ecx
test eax, eax
je 0x41df74
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41df74
mov eax, dword [0x43b1c0]
cmp eax, ebx
je 0x41df74
push eax
call fcn.004163ab
pop ecx
test eax, eax
je 0x41df74
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43b1b8]
call fcn.004163ab
pop ecx
test eax, eax
je 0x41df94
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41df96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5d89008], 0x8088405
inc edx
mov dword [ebx + 0x5d89008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5d6c89e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d6c8a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5d6dc17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x5d8b5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x5d8b5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x5d8a3fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d6dc1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1000c601
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000c616
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1000c628
xor eax, eax
jmp 0x1000c65a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1000c64c
cmp esi, eax
jae 0x1000c624
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1000c63e
cmp esi, eax
jae 0x1000c624
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x1000ceae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x1000cf01
call fcn.1004a065
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x1000cf01
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1000cef7
xor eax, eax
jmp 0x1000d01a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x1000cf31
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x1000cf31
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x1000d017
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x1000cf5e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.1000bb3e
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x1000d017
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1000cfa7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x1000cfa7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x1000cfa1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.1000bb3e
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x1000d007
and dword [ebp + 0xc], 0
jmp 0x1000d007
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x1000d007
push 0xc
call fcn.1002feb4
mov esi, eax
test esi, esi
pop ecx
je 0x1000cfe9
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x1000cfeb
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x1000d002
push dword [ebp - 8]
call fcn.1002f4f2
jmp 0x1000d007
call fcn.1002f4c9
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x1000cf6c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100173b6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10017ed0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10017451
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1008a3a0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10017451
cmp eax, 1
je 0x10017472
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10017451
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1001741e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1001744d
xor eax, eax
inc eax
jmp 0x10017491
cmp edi, eax
jae 0x10017455
xor eax, eax
jmp 0x10017491
cmp eax, esi
jae 0x1001745c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1008a3a0]
jmp 0x10017475
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret