joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449348
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call section..text
mov esi, eax
mov eax, dword [ebp + 0xc]
sub eax, 0x110
je 0x41219d
dec eax
jne 0x412237
movzx ebx, word [ebp + 0x10]
push ebx
call fcn.0040ff80
add esp, 4
test eax, eax
jne 0x412193
cmp ebx, 0x27e4
jg 0x412163
je 0x41210a
dec ebx
je 0x4120a8
dec ebx
je 0x4120f5
jmp 0x412237
push 0x104
push 0x460df0
push 0x27e6
xor eax, eax
push edi
mov word [0x460df0], ax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x460df0
lea ecx, [ebp - 0x2c]
call fcn.00408d60
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x508]
mov dword [ebp - 4], 0
call fcn.00409cf0
lea ecx, [ebp - 0x2c]
call fcn.00409e20
mov edx, dword [ebp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x41224b
push 0x27e0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0xb0
xor ebx, ebx
push esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
call edi
push 0xffffffffffffffff
push ebx
push 0xb1
push esi
call edi
push ebx
push ebx
push 0x301
push esi
call edi
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
push edx
push eax
push 0xb1
push esi
call edi
lea eax, [ebx + 1]
jmp 0x41224b
cmp ebx, 0x2806
jne 0x412237
cmp dword [esi + 0x500], 8
lea eax, [esi + 0x4ec]
jb 0x412180
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
jmp 0x41224b
call fcn.0040ff20
cmp dword [0x45ed58], 8
mov eax, dword [0x45ed44]
jae 0x4121b5
mov eax, 0x45ed44
push eax
push 0x27e0
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x30
push 0xc5
push 0x27e6
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x2776
push edi
call fcn.0040fd10
add esi, 0x4ec
add esp, 8
cmp dword [esi + 0x10], 0
je 0x412230
push 0x2806
push edi
call ebx
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x41220c
mov esi, dword [esi]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ebx
call esi
push 5
push 0x2807
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, 1
call fcn.004157d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bea8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x454e60
push eax
xor bl, bl
call fcn.0042ce3d
mov esi, eax
add esp, 8
test esi, esi
je 0x4132c8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x4132b9
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042cd05
add esp, 0x10
push esi
call fcn.0042cb3a
add esp, 4
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x414f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push eax
push esi
xor bl, bl
call fcn.0042f4b2
add esp, 8
test eax, eax
jne 0x415043
push 0x454e88
push esi
call fcn.0042ce3d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x415030
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x414fde
mov esi, dword [ebp - 0x24]
push esi
mov ecx, edi
call fcn.0040d960
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x414ff9
push 0
push eax
push ebx
call fcn.0042f99a
add esp, 0xc
test esi, esi
je 0x415014
mov eax, dword [edi]
push ebx
push esi
push 1
push eax
call fcn.0042f398
add esp, 0x10
push eax
mov ecx, edi
call fcn.0040d960
push ebx
call fcn.0042cb3a
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bea8
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bea8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042bea8
mov esp, ebp
pop ebp
ret

Function at 0x415060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448768
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea ecx, [ebp - 0x44]
push ecx
push esi
mov dword [ebp - 4], ebx
call fcn.0042f4b2
add esp, 8
test eax, eax
jne 0x415139
push 0x454e88
push esi
call fcn.0042ce3d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x415139
mov edi, dword [ebp - 0x30]
push edi
lea ecx, [ebp - 0x5c]
call fcn.0040d960
cmp edi, ebx
jbe 0x4150f3
mov edx, dword [ebp - 0x5c]
push esi
push edi
push 1
push edx
call fcn.0042f398
add esp, 0x10
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040d960
push esi
call fcn.0042cb3a
add esp, 4
lea eax, [ebp - 0x45]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x45], bl
call fcn.00413a90
mov esi, dword [ebp - 0x5c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415113
mov ecx, dword [ebp - 0x4c]
sub eax, edx
push eax
push esi
call fcn.00409840
mov al, 1
cmp esi, ebx
je 0x41513b
push esi
call fcn.0042b4be
add esp, 4
mov al, 1
jmp 0x41513b
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bea8
mov esp, ebp
pop ebp
ret
Function at 0x416460
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
movzx ecx, word [edx + 0x14]
lea ecx, [ecx + edx + 0x18]
movzx edx, word [edx + 6]
push esi
xor eax, eax
xor esi, esi
test edx, edx
je 0x4164a9
push edi
lea esp, [esp]
mov edi, dword [ecx + 0xc]
cmp ebx, edi
jb 0x416490
mov eax, dword [ecx + 8]
add eax, edi
cmp ebx, eax
jb 0x41649e
inc esi
add ecx, 0x28
cmp esi, edx
jb 0x416480
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ecx + 0x14]
sub eax, edi
add eax, ebx
add eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x4164b0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
xor bl, bl
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
je 0x4165a2
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x416592
push edi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x41658a
mov ecx, 0x5a4d
cmp cx, word [edi]
jne 0x416580
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x416580
mov edx, dword [ebp + 0xc]
push edx
push edi
mov eax, esi
call fcn.00416910
add esp, 8
test al, al
jne 0x41657c
mov eax, dword [esi + 0x88]
test eax, eax
je 0x416580
push edi
mov edx, esi
mov ebx, eax
call fcn.00416460
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
push ecx
push 0x69
push 0x455098
push 0
push eax
push eax
push edi
push esi
call fcn.004165b0
mov ebx, dword [ebp - 8]
add esp, 0x24
test al, al
je 0x416580
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416910
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx ecx, word [eax + 0x14]
push ebx
push esi
push edi
movzx edi, word [eax + 6]
xor ebx, ebx
mov byte [ebp - 1], 0
lea esi, [ecx + eax + 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp edi, ebx
jbe 0x41695d
push esi
push str..rsrc
call fcn.004432ba
add esp, 8
test eax, eax
je 0x416951
inc ebx
add esi, 0x28
cmp ebx, edi
jb 0x416935
jmp 0x41695d
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 8]
add edi, dword [ebp + 8]
je 0x416a41
mov esi, dword [ebp - 0xc]
push 2
lea eax, [esi + edi - 2]
push eax
push 0x4550a8
call fcn.0043079e
add esp, 0xc
test eax, eax
jne 0x416a41
cmp dword [esi + edi - 6], 1
jne 0x416a41
mov ecx, dword [esi + edi - 0xe]
mov eax, dword [esi + edi - 0xa]
mov edx, dword [esi + edi - 0x12]
mov ebx, dword [ebp + 0xc]
sub esi, 0x12
sub esi, eax
test byte [ebx + 0x30], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], edx
je 0x4169da
lea ecx, [ebx + 0x20]
push eax
call fcn.0040d960
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
cmp ecx, eax
je 0x4169da
sub eax, ecx
push eax
lea eax, [esi + edi]
push eax
push ecx
call fcn.0042b4d0
add esp, 0xc
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
sub esi, eax
test byte [ebx + 0x30], 4
je 0x416a0c
lea ecx, [ebx + 0x10]
push eax
call fcn.0040d960
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
je 0x416a0c
sub eax, ecx
push eax
lea edx, [esi + edi]
push edx
push ecx
call fcn.0042b4d0
add esp, 0xc
mov byte [ebp - 1], 1
test byte [ebx + 0x30], 2
je 0x416a41
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.0040d960
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
cmp ecx, eax
je 0x416a41
sub esi, dword [ebp + 8]
sub eax, ecx
push eax
add esi, edi
push esi
push ecx
call fcn.0042b4d0
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4192d9
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0x20
mov eax, 0x4465bf
call fcn.0042beb7
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
call fcn.0040cdd0
mov esi, str.SpreadsheetToolsempty.xls
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
call fcn.0042c331
pop ecx
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040d360
cmp dword [edi + 0x14], 8
jb 0x419320
mov eax, dword [edi]
jmp 0x419322
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4193eb
call fcn.0041c3b5
mov esi, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push str.RT_ZIPPED_DATA
push 0x7f
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x4193e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4193e3
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x4193e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x4193e3
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.0040d960
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x2c]
call fcn.0042b4d0
mov esi, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x2c], esi
je 0x4193e3
lea ecx, [ebp - 0xd]
call fcn.0041d741
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x4193c4
mov eax, dword [edi]
jmp 0x4193c6
mov eax, edi
sub esi, dword [ebp - 0x2c]
push ebx
push eax
push esi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xd]
call fcn.0042a666
lea ecx, [ebp - 0xd]
mov byte [ebp - 4], 1
call fcn.00425dc8
lea ecx, [ebp - 0x2c]
call fcn.00404020
mov eax, edi
call fcn.0042bf8f
ret

Function at 0x419796
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4197a7
mov eax, dword [esi]
jmp 0x4197a9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4197c6
cmp dword [esi + 0x14], 8
jb 0x4197bd
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
pop ebp
ret

Function at 0x4197f2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x419800
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x41a238
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x84
mov eax, 0x446814
call fcn.0042bf20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x71], 0
call fcn.0041c3b5
push 0x44be10
mov esi, eax
push 0x7d
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41a394
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41a394
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
cmp eax, edi
je 0x41a394
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x41a394
lea ecx, [ebp - 0x90]
call fcn.00424883
mov dword [ebp - 4], edi
cmp ebx, edi
jbe 0x41a385
push ebx
lea ecx, [ebp - 0x90]
call fcn.0040d960
push ebx
push esi
push dword [ebp - 0x90]
call fcn.0042b4d0
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.00421dcc
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00421a90
test eax, eax
je 0x41a379
push dword [ebp - 0x78]
lea ecx, [ebp - 0x90]
call fcn.00424f5a
push dword [ebp - 0x78]
lea ecx, [ebp - 0x34]
call fcn.00401100
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004023a0
test al, al
je 0x41a32c
mov byte [ebp - 0x71], 1
jmp 0x41a36d
cmp dword [ebp - 0x1c], edi
je 0x41a36d
push dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
call fcn.00419ad1
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x41a347
mov eax, dword [eax]
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x41a353
lea ecx, [ebp - 0x2c]
push 0x1010
push eax
push ecx
call fcn.004196a8
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.00409e50
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401130
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00421a83
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00424893
mov al, byte [ebp - 0x71]
call fcn.0042bfa3
ret
Function at 0x41a428
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x310
mov eax, 0x446876
call fcn.0042bf20
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x314], edi
mov dword [ebp - 0x31c], eax
cmp dword [esi + 0x10], edi
je 0x41a5b5
cmp dword [esi + 0x14], 8
jb 0x41a45e
mov eax, dword [esi]
jmp 0x41a460
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a5b5
push esi
lea ecx, [ebp - 0x30c]
call fcn.004242d4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30c]
mov dword [ebp - 4], edi
call fcn.0042432f
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
jmp 0x41a593
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00419b23
pop ecx
pop ecx
or dword [ebp - 0x314], ebx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x41a4ba
mov eax, dword [eax]
push eax
push str.launch
call fcn.0042c991
pop ecx
pop ecx
test eax, eax
je 0x41a503
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00419aae
or dword [ebp - 0x314], 2
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x41a4e9
mov eax, dword [eax]
push 4
push eax
push str..xlt
call fcn.0042d246
add esp, 0xc
mov byte [ebp - 0x30d], bl
test eax, eax
jne 0x41a50a
mov byte [ebp - 0x30d], 0
test byte [ebp - 0x314], 2
je 0x41a524
and dword [ebp - 0x314], 0xfffffffd
push edi
push ebx
lea ecx, [ebp - 0x64]
call fcn.00409e50
mov dword [ebp - 4], ebx
test byte [ebp - 0x314], bl
je 0x41a540
and dword [ebp - 0x314], 0xfffffffe
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00409e50
cmp byte [ebp - 0x30d], 0
je 0x41a56a
mov ecx, dword [ebp - 0x31c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0041f19f
lea ecx, [ebp - 0x318]
call fcn.004192cc
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30c]
call fcn.0042432f
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00408db0
push edi
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00409e50
cmp dword [ebp - 0x1c], edi
jne 0x41a499
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409e50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30c]
call fcn.0042429e
call fcn.0042bfa3
ret
Function at 0x41a642
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x510
mov eax, 0x446913
call fcn.0042bf20
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x504], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x51c], esi
mov word [esi], cx
mov dword [ebp - 4], eax
mov dword [ebp - 0x504], 1
call fcn.0041c3b5
push 0x44be10
mov edi, eax
push 0x7d
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x41a795
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x500], eax
test eax, eax
je 0x41a795
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a795
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41a795
lea ecx, [ebp - 0x518]
call fcn.00424883
cmp dword [ebp - 0x500], 0
mov dword [ebp - 4], 1
jbe 0x41a786
push dword [ebp - 0x500]
lea ecx, [ebp - 0x518]
call fcn.0040d960
push dword [ebp - 0x500]
push edi
push dword [ebp - 0x518]
call fcn.0042b4d0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00421dcc
lea eax, [ebp - 0x518]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00421a90
test eax, eax
je 0x41a77a
lea ecx, [ebp - 0x4fc]
call fcn.0041e09e
lea eax, [ebp - 0x4fc]
push eax
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 3
call fcn.00424f5a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4f4]
push eax
mov ecx, esi
call fcn.00409cf0
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 2
call fcn.0041dea4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00421a83
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 0
call fcn.00424893
mov eax, esi
call fcn.0042bfa3
ret
Function at 0x41c480
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x224]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x41c5e2
push dword [ebp - 0x224]
call fcn.0042b411
push dword [ebp - 0x224]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x22c], esi
call fcn.0042c3a0
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x41c5ca
jmp 0x41c551
push 8
lea eax, [esi + 0x190]
pop ecx
cmp dword [eax], ecx
jbe 0x41c515
mov dword [eax], ecx
cmp dword [eax], ebx
jbe 0x41c54f
mov al, byte [esi + 0x194]
cmp al, bl
jne 0x41c54f
cmp byte [esi + 0x195], 0x50
jne 0x41c535
cmp byte [esi + 0x196], 0x56
je 0x41c54f
cmp al, bl
jne 0x41c54f
cmp byte [esi + 0x195], 0xc
jne 0x41c54b
cmp byte [esi + 0x196], 0x29
je 0x41c54f
cmp al, bl
je 0x41c557
mov esi, dword [esi]
cmp esi, ebx
jne 0x41c506
jmp 0x41c5ca
push dword [esi + 0x190]
mov ecx, edi
call fcn.0040d960
xor edi, edi
cmp dword [esi + 0x190], ebx
jbe 0x41c5ba
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
mov dl, byte [esi + edi + 0x194]
mov byte [edi + ecx], dl
mov eax, dword [eax]
movzx eax, byte [eax + edi]
push eax
lea eax, [ebp - 0x18]
push str._02d
push eax
call fcn.0042d39b
lea eax, [ebp - 0x18]
push eax
call fcn.0042c331
mov ecx, dword [ebp - 0x234]
add esp, 0x10
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040d360
inc edi
cmp edi, dword [esi + 0x190]
jb 0x41c56e
mov edi, dword [ebp - 0x230]
mov dword [ebp - 0x228], 1
push dword [ebp - 0x22c]
call fcn.0042c6ad
pop ecx
cmp dword [ebp - 0x228], ebx
jne 0x41c66d
push 0x44c9ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41c66d
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c66d
push 8
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.0042c3a0
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41c666
push 8
mov ecx, edi
call fcn.0040d960
push 8
lea eax, [ebp - 0x238]
push eax
push dword [edi]
call fcn.0042b4d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bea8
leave
ret
Function at 0x41d744
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
xor cl, cl
xor eax, eax
xor cl, byte [eax + edx]
inc eax
cmp eax, 8
jb 0x41d74e
mov al, byte [ebp + 8]
sub al, cl
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx + edx]
pop ebp
ret 0xc

Function at 0x41d766
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor bl, bl
push edi
mov dword [ebp - 4], ecx
xor eax, eax
mov ecx, dword [ebp + 0xc]
xor bl, byte [eax + ecx]
inc eax
cmp eax, 8
jb 0x41d774
mov edi, dword [ebp + 8]
xor bl, byte [edi]
xor esi, esi
mov al, byte [edi + esi + 1]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
xor al, bl
movzx eax, al
push esi
push eax
call fcn.0041d744
mov ecx, dword [ebp + 0x10]
mov byte [esi + ecx], al
inc esi
cmp esi, 8
jb 0x41d787
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 0xc