joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
mov dword [esp + 0x1c], esi
call fcn.0040e9e0
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ebp, dword [edi + 4]
mov edi, dword [edi]
mov eax, ebp
mov dword [esp + 0x24], ebx
sub eax, edi
sar eax, 1
inc eax
cmp eax, 0x7fffffff
ja 0x40ed06
cmp eax, ebx
jbe 0x40ed06
add eax, eax
push eax
mov dword [esp + 0x18], eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x18]
add esp, 4
add ecx, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
jmp 0x40ed13
push str.basic_string
call fcn.00401ed0
add esp, 4
mov edx, dword [esi]
push edx
push ebp
push edi
call fcn.00411ee0
mov dword [esi + 4], eax
add esp, 0xc
mov word [eax], bx
lea edi, [esi + 0xc]
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x13]
push ebx
push eax
mov ecx, edi
mov byte [esp + 0x2c], 2
call fcn.00401e80
push 0x28
mov byte [esp + 0x28], 3
call sub.MFC42u.DLL_operatornew
mov cl, byte [esp + 0x30]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov byte [edi + 8], cl
mov byte [eax], bl
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [edx + 4], ebx
mov eax, dword [edi]
mov dword [eax + 8], eax
mov edi, dword [edi]
mov eax, esi
mov dword [edi + 0xc], edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x40ee50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x417e5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, ecx
lea eax, [esp + 0xf]
push eax
mov ecx, esi
call fcn.0040e9e0
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0
call fcn.004040a0
mov eax, dword [esi + 4]
mov cl, byte [esp + 0x40]
mov esi, dword [esi]
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x44], cl
push eax
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 2
call fcn.0040eb70
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x44]
lea eax, [esp + 0x24]
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 3
mov dword [esp + 0x14], eax
call fcn.0040e9e0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 4
call fcn.004040a0
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 6
call fcn.0040ea00
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [edi + 0xc]
mov dword [esp + 0x40], 7
call fcn.00410ef0
mov bl, byte [eax + 4]
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 8
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
sub eax, ecx
mov byte [esp + 0x38], 9
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0040e330
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x38], 0xa
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0040e330
mov ecx, dword [esp + 0x30]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8

Function at 0x40f490
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push 0
push 0
mov eax, dword [eax]
push 3
push 0
push 1
push 0x80000000
mov dword [esp + 0x1c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f520
push ebp
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea edi, [ebp + 2]
push edi
call sub.MFC42u.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ebp
push esi
call fcn.0040f5d0
push esi
mov bl, al
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
xor al, al
pop ebx
pop ecx
ret 4
Function at 0x412580
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4184c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
call fcn.0040f0f0
xor ebx, ebx
mov al, 1
lea edi, [esi + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], al
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov dword [esp + 0x18], edi
mov byte [esp + 0x24], al
lea ebp, [edi + 8]
lea eax, [esp + 0x13]
push ebx
push eax
mov ecx, ebp
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00401e80
push 0x10
mov byte [esp + 0x28], 3
call sub.MFC42u.DLL_operatornew
lea ecx, [eax + 0x10]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [ebp], ecx
add esp, 4
mov word [eax], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x18], edi
lea ebp, [edi + 8]
lea edx, [esp + 0x13]
push ebx
push edx
mov ecx, ebp
mov byte [esp + 0x2c], 5
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00401e80
push 0x10
mov byte [esp + 0x28], 7
call sub.MFC42u.DLL_operatornew
lea ecx, [eax + 0x10]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [ebp], ecx
add esp, 4
mov word [eax], bx
lea edi, [esi + 0x34]
mov dword [esi + 0x30], 0x1fffffff
mov dword [esp + 0x18], edi
lea ebp, [edi + 8]
lea edx, [esp + 0x13]
push ebx
push edx
mov ecx, ebp
mov byte [esp + 0x2c], 9
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.00401e80
mov byte [esp + 0x24], 0xb
push 0x10
call sub.MFC42u.DLL_operatornew
lea ecx, [eax + 0x10]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [ebp], ecx
add esp, 4
mov word [eax], bx
lea ebp, [esi + 0x44]
mov dword [esi + 0x40], 8
mov dword [esp + 0x18], ebp
lea edi, [ebp + 8]
lea edx, [esp + 0x13]
push ebx
push edx
mov ecx, edi
mov byte [esp + 0x2c], 0xd
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
call fcn.00401e80
push 0x10
mov byte [esp + 0x28], 0xf
call sub.MFC42u.DLL_operatornew
lea ecx, [eax + 0x10]
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [edi], ecx
add esp, 4
mov word [eax], bx
mov dword [esi], vtable.epass::MultiLanguage.0
xor eax, eax
cmp word [str.English], bx
mov byte [esp + 0x24], 0x10
je 0x4126e8
mov ecx, str.English
add ecx, 2
inc eax
cmp word [ecx], bx
jne 0x4126df
lea edx, [eax*2 + str.English]
lea ecx, [esi + 0x34]
push edx
push str.English
call fcn.00403f90
xor ecx, ecx
cmp word [0x423b24], bx
je 0x412716
mov eax, 0x423b24
add eax, 2
inc ecx
cmp word [eax], bx
jne 0x41270d
lea eax, [ecx*2 + 0x423b24]
lea ecx, [esi + 0x44]
push eax
push 0x423b24
call fcn.00403f90
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4136a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418727
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [ecx + 0x16]
push esi
test al, al
push edi
mov dword [esp + 8], 0
jne 0x413715
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.0040e9e0
mov esi, dword [esp + 0x28]
push 0
push eax
mov dword [esp + 0x28], 1
lea ecx, [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00401e80
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x28], 3
call fcn.0040ea00
jmp 0x413876
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x413775
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0040e9e0
mov edi, dword [esp + 0x28]
push eax
mov ecx, edi
mov dword [esp + 0x24], 4
call fcn.004040a0
mov cl, byte [esp + 0x28]
mov eax, dword [esi + 4]
lea edx, [esp + 0x30]
mov byte [esp + 0x30], cl
mov ecx, dword [esi]
push edx
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x2c], 6
call fcn.0040eb70
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.0040efb0
xor ecx, ecx
mov dword [esp + 0x20], 7
cmp word [str.DEFAULT_F94174A7C1D94A0E9D57739193CF18CC], cx
je 0x4137a6
mov eax, str.DEFAULT_F94174A7C1D94A0E9D57739193CF18CC
add eax, 2
inc ecx
cmp word [eax], 0
jne 0x41379c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
sub edx, eax
sar edx, 1
cmp ecx, edx
jne 0x41382b
push ecx
push eax
push str.DEFAULT_F94174A7C1D94A0E9D57739193CF18CC
call fcn.00404050
add esp, 0xc
test eax, eax
jne 0x41382b
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0040e9e0
mov edi, dword [esp + 0x28]
push eax
mov ecx, edi
mov byte [esp + 0x24], 8
call fcn.004040a0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x28], 0xa
call fcn.0040ea00
mov dword [esp + 8], 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xb
call fcn.00403350
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
call fcn.0040e9e0
mov esi, dword [esp + 0x28]
push eax
mov ecx, esi
mov byte [esp + 0x24], 0xc
call fcn.004040a0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x28], 0xe
call fcn.0040ea00
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x20], 0
call fcn.00403350
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x415be0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov al, byte [esi + 0x15]
test al, al
je 0x415bf5
mov eax, 1
pop esi
pop ecx
ret 0xc
push 0xffffffffffffffff
mov ecx, esi
call fcn.00415cb0
mov byte [esi + 0x14], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 8], eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x415b30
push 0
push 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 4], eax
mov eax, ecx
pop esi
pop ecx
ret 0xc

Function at 0x415c50
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x15]
test al, al
je 0x415c7a
mov eax, dword [esi + 4]
push eax
call fcn.00415c80
add esp, 4
test al, al
jne 0x415c7a
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov byte [esi + 0x15], 0
pop esi
ret

Function at 0x415d20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
mov ebx, eax
mov al, byte [esi + 0x15]
test al, al
je 0x415d69
mov ebp, dword [esp + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 4]
test eax, eax
je 0x415d69
call edi
sub eax, ebx
cmp eax, ebp
ja 0x415d72
mov eax, dword [esi + 4]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x415d69
mov al, byte [esi + 0x15]
test al, al
jne 0x415d3b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x4bc999
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c53d8
cmp edx, dword [eax]
je 0x4bc9bb
add eax, 8
inc ecx
cmp eax, 0x4c5468
jl 0x4bc9ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c53d8]
jne 0x4bcae9
mov eax, dword [0x4cad60]
cmp eax, 1
je 0x4bcac3
test eax, eax
jne 0x4bc9ec
cmp dword [0x4c5300], 1
je 0x4bcac3
cmp edx, 0xfc
je 0x4bcae9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bca23
lea eax, [ebp - 0x1a4]
push 0x4c1bb8
push eax
call fcn.004bd380
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bd810
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bca66
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bd810
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1bb4
push edi
call fcn.004bf6e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1b98
push eax
call fcn.004bd380
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bd390
lea eax, [ebp - 0xa0]
push 0x4c1b94
push eax
call fcn.004bd390
push dword [esi + 0x4c53dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bd390
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1b6c
push eax
call fcn.004bf654
add esp, 0x2c
pop edi
jmp 0x4bcae9
lea eax, [ebp + 8]
lea esi, [esi + 0x4c53dc]
push 0
push eax
push dword [esi]
call fcn.004bd810
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10011490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
mov eax, dword [0xdf5a2f0]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
mov ebx, dword [esp + 0x80]
mov eax, 1
push esi
push 0x30
mov word [esp + 0x7c], ax
mov esi, 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x70], 0x40000
push 0
push eax
mov dword [esp + 0x7c], 0x20004
mov dword [esp + 0x80], 0x10001
mov dword [esp + 0x20], 0
call fcn.1000d861
push 0x24
lea eax, [esp + 0x58]
push 0
push eax
call fcn.1000d861
push 0x2b
push ebx
call fcn.100269f0
mov edx, eax
add esp, 0x20
test edx, edx
jne 0x10011520
pop esi
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.10010f50
add esp, 0x78
ret
mov al, byte [edx + 5]
cmp al, 9
ja 0x10011673
cmp al, 1
jb 0x10011673
movzx eax, al
cmp dword [esp + eax*4 + 0x44], 0
jne 0x100115a0
mov dword [esp + eax*4 + 0x44], edx
movzx eax, byte [edx + 5]
dec eax
cmp eax, 8
ja 0x100115a0
jmp dword [eax*4 + 0xdf40cec]
movzx eax, byte [edx + 5]
movzx ecx, byte [edx + 6]
shl eax, 8
or eax, ecx
cmp eax, 0x200
jg 0x1001161e
je 0x10011614
sub eax, 0x100
cmp eax, 0x46
ja 0x10011673
movzx eax, byte [eax + 0xdf40d2c]
jmp dword [eax*4 + 0xdf40d10]
mov dword [esp + 0x30], 0
jmp 0x10011673
cmp eax, 0x714
jg 0x10011653
je 0x10011649
cmp eax, 0x300
je 0x1001163f
cmp eax, 0x70a
jne 0x10011673
mov dword [esp + 0x38], 0
jmp 0x10011673
mov dword [esp + 0x34], 0
jmp 0x10011673
mov dword [esp + 0x3c], 0
jmp 0x10011673
cmp eax, 0x80a
je 0x1001166b
cmp eax, 0x90a
jne 0x10011673
mov dword [esp + 0x44], 0
jmp 0x10011673
mov dword [esp + 0x40], 0
push edx
push ebx
call fcn.10026a90
mov edx, eax
add esp, 8
test edx, edx
jne 0x10011520
push 0x14
push 1
push ebx
call fcn.10026a50
add esp, 0xc
test eax, eax
je 0x10011731
add eax, 0xf
mov dword [esp + 0x10], 0
push 2
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1000d79d
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x38], 0
jne 0x100116d7
cmp dword [esp + 0x3c], 0
jne 0x100116d7
cmp dword [esp + 0x40], 0
jne 0x100116d7
cmp dword [esp + 0x44], 0
je 0x100116f2
test cx, cx
je 0x100116f2
pop esi
mov eax, 0xb
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.10010f50
add esp, 0x78
ret
cmp cx, 7
jae 0x10011702
movzx eax, cx
movzx eax, word [esp + eax*2 + 0x6c]
jmp 0x1001172d
cmp cx, 0xb
jne 0x10011712
mov dword [esp + 0x14], 1
jmp 0x10011731
cmp cx, 0x14
jne 0x10011722
mov dword [esp + 0x14], 4
jmp 0x10011731
mov eax, dword [esp + 0x14]
cmp cx, 0x15
cmove eax, esi
mov dword [esp + 0x14], eax
xor esi, esi
push edi
cmp dword [esp + esi*4 + 0x1c], 0
je 0x1001189d
movq xmm0, qword [0xdf5aa74]
mov al, byte [0xdf5aa7c]
movq qword [esp + 0x70], xmm0
mov byte [esp + 0x78], al
mov dword [esp + 0x14], 0
cmp esi, 0xb
ja 0x100118d2
jmp dword [esi*4 + 0xdf40d74]
inc esi
cmp esi, 0xc
jl 0x10011734
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.10010f50
add esp, 0x78
ret
mov ecx, dword [esp + 0x80]
mov eax, 0xb
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10010f50
add esp, 0x78
ret
Function at 0x401040
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x55555556
imul dword [ebp + 0x10]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*4]
sub ecx, eax
neg ecx
add ecx, ecx
lea edx, [ecx + ecx]
mov ecx, 0xc
sub ecx, edx
mov eax, 0x55555556
imul ecx
push ebx
mov eax, edx
push esi
shr eax, 0x1f
lea eax, [edx + eax + 1]
push edi
mov edi, dword [ebp + 0xc]
push eax
xor esi, esi
mov dword [ebp + 0xc], eax
call fcn.004911e8
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40109a
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push ebx
call fcn.004950a0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 2
jle 0x401134
lea edx, [ecx - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx*4]
sub eax, edx
neg eax
add ecx, eax
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edi]
shr ecx, 2
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
add ecx, ecx
shr eax, 4
mov cl, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], cl
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 2]
shr ecx, 6
and eax, 0xf
movzx eax, byte [ecx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 2], al
movzx ecx, byte [edi + 2]
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 3], al
add esi, 4
add edi, 3
dec edx
jne 0x4010d2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4011aa
movzx edx, byte [edi]
shr edx, 2
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
cmp ecx, 1
jle 0x40118d
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
and ecx, 3
add ecx, ecx
shr edx, 4
mov al, byte [edx + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], al
movzx ecx, byte [edi + 1]
and ecx, 0xf
mov dl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 2], dl
mov byte [ebx + esi + 3], 0x3d
add esi, 4
pop edi
mov byte [ebx + esi], 0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
movzx eax, byte [edi]
and eax, 3
shl eax, 4
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], cl
mov word [ebx + esi + 2], 0x3d3d
add esi, 4
pop edi
mov byte [ebx + esi], 0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x401380
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa840
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4bb36c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
mov dword [0x4eb364], eax
cmp eax, esi
je 0x4013e8
push 0x4bb398
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4013e8
push 5
push esi
push esi
push str.http:__home.baofeng.com_permit.html
push 0x4bb0d4
push esi
call eax
cmp eax, 0x20
jge 0x40151a
cmp byte [ebp + 8], 0
je 0x401546
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push 0x4bb108
push 0x17
push esi
push 0x4bb0c0
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x401530
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push 0xffffffffffffffff
push eax
call edx
cmp eax, esi
jl 0x401530
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x401452
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push str.http:__home.baofeng.com_permit.html
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0x401470
push 0x8007000e
call fcn.00402bc0
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp - 0x5c], cx
call fcn.00402a50
lea ecx, [ebp - 0x4c]
xor eax, eax
mov byte [ebp - 4], 2
push ecx
mov word [ebp - 0x4c], ax
call fcn.00402a50
lea eax, [ebp - 0x3c]
xor edx, edx
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0x3c], dx
call fcn.00402a50
mov ecx, 3
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x24], 0xe
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 5
mov edx, dword [esi]
mov edx, dword [edx + 0x2c]
push edi
push esi
call edx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
call esi
lea ecx, [ebp - 0x3c]
push ecx
call esi
lea edx, [ebp - 0x4c]
push edx
call esi
lea eax, [ebp - 0x5c]
push eax
call esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x40152e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40151a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x401546
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401560
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x40
mov esi, eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004950a0
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4015da
test esi, esi
je 0x4015c1
mov edx, dword [ebp - 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0xc]
push ecx
call esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4015f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, eax
mov ebx, ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401664
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401664
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x401664
mov ecx, dword [ebp + 8]
push 1
mov ebx, 0x40000000
call fcn.00403370
mov esi, eax
cmp esi, 0xffffffff
je 0x401664
mov ecx, dword [ebp - 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret