joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c485
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x49c495
sub esi, ecx
cmp esi, 0x7fffffff
jbe 0x49c4ae
push 0x1b
pop eax
jmp 0x49c574
push edi
test esi, esi
je 0x49c4bf
lea eax, [esi + esi]
push eax
call dword [0x520188]
jmp 0x49c4ca
push 0x516e0e
call dword [0x520194]
mov edi, eax
pop ecx
test edi, edi
jne 0x49c4d9
push 0x1b
pop eax
jmp 0x49c573
xor edx, edx
mov ecx, edx
test esi, esi
je 0x49c4f0
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], dl
inc ecx
cmp ecx, esi
jb 0x49c4e1
push 0xf0000000
push 1
push edx
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x49c561
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x49c556
push 0
lea eax, [esi + esi]
mov dword [ebp - 0xc], 0x10
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x52018c]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c57a
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x520204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0xf0000000
inc ebx
mov dword [ebp - 0x28], eax
push ebx
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x49c5be
xor al, al
jmp 0x49c650
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.0049c660
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0049f57c
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop edi
test eax, eax
jne 0x49c617
xor bl, bl
jmp 0x49c643
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a352c
mov esp, ebp
pop ebp
ret
Function at 0x4a05d1
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x520188]
mov edi, eax
pop ecx
test edi, edi
je 0x4a06bd
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4a063a
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4a0640
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x4a06b5
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x4a065a
mov ebx, dword [ebp - 8]
jmp 0x4a06b5
push 1
push 0x504dd6
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x504dd7
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x4a0697
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a127e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ecx + 8]
push esi
push edi
sub eax, 0
je 0x4a12fb
sub eax, 1
je 0x4a12ec
sub eax, 1
je 0x4a12dd
sub eax, 1
je 0x4a12c5
sub eax, 1
je 0x4a12b8
sub eax, 1
jne 0x4a1311
cmp byte [ecx], 0
mov eax, str.true
mov edx, str.false
cmove eax, edx
push eax
jmp 0x4a1300
cmp dword [ecx], 0
mov eax, 0x516e0e
cmovne eax, dword [ecx]
jmp 0x4a12b5
movsd xmm0, qword [ecx]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [ebp + 8]
call fcn.004a315e
add esp, 0xc
jmp 0x4a1308
push dword [ecx + 4]
push dword [ecx]
push dword [ebp + 8]
call fcn.004a3260
jmp 0x4a12d8
push dword [ecx + 4]
push dword [ecx]
push dword [ebp + 8]
call fcn.004a31f5
jmp 0x4a12d8
push 0x516e0e
mov ecx, dword [ebp + 8]
call fcn.00404150
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 4
push 8
pop ecx
mov esi, str.Type_is_not_convertible_to_string
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
push 0x7b
movsw word es:[edi], word [esi]
call fcn.004b1441
int3
Function at 0x4a134b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0xffffffff
jne 0x4a1367
mov esi, dword [ebp + 8]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a135e
sub esi, ecx
mov eax, accept
cmp esi, 0x7fffffff
cmovae esi, eax
lea eax, [esi + 1]
push eax
call fcn.004b1462
mov edi, eax
pop ecx
test edi, edi
je 0x4a139c
push esi
push dword [ebp + 8]
push edi
call fcn.004a7c80
add esp, 0xc
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret
push 9
pop ecx
mov esi, str.Failed_to_allocate_string_value_buffer
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
push 0x7b
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.004b1441
int3

Function at 0x4c6130
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c5faf

Function at 0x4c9c33
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c98f3

Function at 0x4d20d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4e7df0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4e7dfd
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004e7e03
Function at 0x5ea0bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1000]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.005ea08c
xor eax, edi
mov edi, dword [ebp - 8]
add esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x5ea0da
mov eax, dword [edx + 0x1040]
xor eax, ecx
mov ecx, dword [edx + 0x1044]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret

Function at 0x5ea10e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx]
lea esi, [edx + 0x1044]
mov dword [ebp - 4], 0x10
xor ecx, dword [esi]
mov dword [ebp - 8], ecx
call fcn.005ea08c
xor eax, edi
mov edi, dword [ebp - 8]
sub esi, 4
dec dword [ebp - 4]
mov ecx, eax
jne 0x5ea129
mov eax, dword [edx + 0x1004]
xor eax, ecx
mov ecx, dword [edx + 0x1000]
mov edx, dword [ebp + 8]
xor ecx, edi
pop edi
mov dword [edx], ecx
mov dword [ebx], eax
pop esi
leave
ret
Function at 0x60ca10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x60ca70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x60ca67
mov edx, dword [0x650860]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x60ca5b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x60ca40
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x60ca69
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x60e850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xf8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 0
jmp 0x60e8bc
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x18]
jae 0x60e903
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00625f92
add esp, 8
test eax, eax
jne 0x60e901
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x60e905
jmp 0x60e8b3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x615700
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x64bd30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00610ba0
add esp, 4
movzx edx, al
test edx, edx
je 0x615791
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.0061fe00
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10001
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x61578f
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x61578f
jmp 0x615791
jmp 0x615713
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00620555
mov esp, ebp
pop ebp
ret
Function at 0x618bea
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x618bfa
xor eax, eax
jmp 0x618dc3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x618d7b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x64d504]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x64d504]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x64d504]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x64d504]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x64d504]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x64d504]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x64d504]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x64d504]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x618c03
cmp dword [ebp + 0x10], 0
je 0x618dbd
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x64d504]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x618d81
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x620555
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x64bd30]
jne 0x62055f
repz ret
jmp fcn.00623186

Function at 0x6242bf
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x64c448]
je 0x6242da
inc edi
cmp edi, 0x17
jb 0x6242cb
cmp edi, 0x17
jae 0x62445a
push ebp
push 3
call fcn.006281fd
cmp eax, 1
pop ecx
je 0x624426
push 3
call fcn.006281fd
test eax, eax
pop ecx
jne 0x62430e
cmp dword [0x64be04], 1
je 0x624426
cmp ebx, 0xfc
je 0x624459
push 0x64edd0
mov ebx, 0x314
push ebx
mov ebp, 0x651a88
push ebp
call fcn.00625d52
add esp, 0xc
test eax, eax
je 0x624344
push esi
push esi
push esi
push esi
push esi
call fcn.00624649
add esp, 0x14
push 0x104
mov esi, 0x651aa1
push esi
push 0
mov byte [0x651ba5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x624388
push 0x64edb8
push 0x2fb
push esi
call fcn.00625d52
add esp, 0xc
test eax, eax
je 0x624388
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00624649
add esp, 0x14
push esi
call fcn.00621e90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x6243cd
push esi
call fcn.00621e90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x651d9c
push 0x64edb4
sub ecx, eax
push ecx
push eax
call fcn.00627f46
add esp, 0x14
test eax, eax
je 0x6243cd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00624649
add esp, 0x14
jmp 0x6243cf
xor esi, esi
push 0x64edb0
push ebx
push ebp
call fcn.00627e86
add esp, 0xc
test eax, eax
je 0x6243ef
push esi
push esi
push esi
push esi
push esi
call fcn.00624649
add esp, 0x14
push dword [edi*8 + 0x64c44c]
push ebx
push ebp
call fcn.00627e86
add esp, 0xc
test eax, eax
je 0x624411
push esi
push esi
push esi
push esi
push esi
call fcn.00624649
add esp, 0x14
push 0x12010
push 0x64ed88
push ebp
call fcn.00628040
add esp, 0xc
jmp 0x624459
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x624459
cmp ebp, 0xffffffff
je 0x624459
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x64c44c]
push dword [esi]
call fcn.00621e90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x628040
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00623d27
xor ebx, ebx
cmp dword [0x65210c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x628116
push 0x64f73c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x6281f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x64f730
push edi
call esi
cmp eax, ebx
je 0x6281f6
push eax
call fcn.00623cb9
mov dword [esp], 0x64f720
push edi
mov dword [0x65210c], eax
call esi
push eax
call fcn.00623cb9
mov dword [esp], 0x64f70c
push edi
mov dword [0x652110], eax
call esi
push eax
call fcn.00623cb9
mov dword [0x652114], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0062223a
test eax, eax
pop ecx
pop ecx
je 0x6280e4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00624649
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x628116
push 0x64f6f0
push edi
call esi
push eax
call fcn.00623cb9
cmp eax, ebx
pop ecx
mov dword [0x65211c], eax
je 0x628116
push 0x64f6d8
push edi
call esi
push eax
call fcn.00623cb9
pop ecx
mov dword [0x652118], eax
mov eax, dword [0x652118]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x62819b
cmp dword [0x65211c], ecx
je 0x62819b
push eax
call fcn.00623d30
push dword [0x65211c]
mov esi, eax
call fcn.00623d30
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x62819b
cmp edi, ebx
je 0x62819b
call esi
cmp eax, ebx
je 0x628168
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x628168
test byte [ebp - 0x18], 1
jne 0x62819b
lea eax, [ebp - 0x10]
push eax
call fcn.00622271
test eax, eax
pop ecx
je 0x628183
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00624649
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x628192
or dword [ebp + 0x10], 0x200000
jmp 0x6281d6
or dword [ebp + 0x10], 0x40000
jmp 0x6281d6
mov eax, dword [0x652110]
cmp eax, dword [ebp - 8]
je 0x6281d6
push eax
call fcn.00623d30
cmp eax, ebx
pop ecx
je 0x6281d6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x6281d6
mov eax, dword [0x652114]
cmp eax, dword [ebp - 8]
je 0x6281d6
push eax
call fcn.00623d30
cmp eax, ebx
pop ecx
je 0x6281d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x65210c]
call fcn.00623d30
cmp eax, ebx
pop ecx
je 0x6281f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6281f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4023d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x40247c
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40247c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40241e
or ecx, 0xffffffff
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov word [esi + 0x1c], bx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
movzx ecx, di
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40247c
mov eax, dword [ebp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x40247c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x14]
push edi
push ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x40
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x402485
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
jne 0x4024aa
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push ecx
push edx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4024de
mov ecx, dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.00402350
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret