joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006813
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10118d0
call fcn.01006a20
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x1014d54
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10066a6
cmp eax, esi
jne 0x1006699
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x10066a9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006680
xor esi, esi
inc esi
mov eax, dword [0x1014d50]
cmp eax, esi
jne 0x10066bc
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10066eb
mov eax, dword [0x1014d50]
test eax, eax
jne 0x10066e5
mov dword [0x1014d50], esi
push 0x10011ec
push 0x10011e0
call fcn.010065e2
pop ecx
pop ecx
test eax, eax
je 0x10066eb
jmp 0x10067fc
mov dword [0x1014870], esi
mov eax, dword [0x1014d50]
cmp eax, esi
jne 0x100670f
push 0x10011dc
push 0x10011d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1014d50], 2
cmp dword [ebp - 0x24], ebx
jne 0x100671c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [0x1014d58]
cmp eax, ebx
je 0x100672b
push ebx
push 2
push ebx
call eax
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1006784
cmp al, bl
je 0x1006744
cmp dword [ebp - 0x1c], ebx
jne 0x1006784
mov al, byte [esi]
cmp al, bl
je 0x1006754
cmp al, 0x20
ja 0x1006754
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006744
test byte [ebp - 0x40], 1
je 0x1006760
movzx eax, word [ebp - 0x3c]
jmp 0x1006763
push 0xa
pop eax
push eax
push esi
push ebx
push 0x1000000
call main
mov dword [0x101486c], eax
cmp dword [0x1014860], ebx
jne 0x10067d9
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1006793
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10067a6
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1006732
cmp dword [0x1014870], ebx
jne 0x10067e7
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101486c]
jmp 0x1006808
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01006a65
ret
call fcn.0100646f
jmp 0x1006643

Function at 0x1006f80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1006f93
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006f8f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1006fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1006fff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1006ff5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1007001
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1006fe5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100c9fd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x1003624
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100ca56
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x100ca56
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x100ca56
xor eax, eax
inc eax
jmp 0x100ca58
xor eax, eax
leave
ret 0x10

Function at 0x100cb74
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1013014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x100cbbd
inc eax
jmp 0x100cbf7
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x100cbeb
cmp dword [ebp - 0x94], 4
ja 0x100cbe7
jne 0x100cbf7
cmp dword [ebp - 0x90], 0xa
jb 0x100cbf7
cmp word [ebp - 0x8c], 0x55d
jb 0x100cbf7
xor eax, eax
jmp 0x100cbf7
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010064e2
leave
ret

Function at 0x100cc08
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1013014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100cc65
cmp dword [ebp - 0x88], 2
jne 0x100cc65
cmp dword [ebp - 0x94], 5
jb 0x100cc65
xor eax, eax
inc eax
jmp 0x100cc67
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010064e2
leave
ret
Function at 0x100f93c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1013014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], eax
xor eax, eax
lea edi, [ebp - 0x78]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [ebp - 0x88]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x94]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x90]
push eax
xor edi, edi
push edi
push 0x1003a98
push ecx
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], 0x10
call ebx
cmp dword [esi + 0xc8c], edi
mov dword [ebp - 0x98], edi
jbe 0x100fb71
lea eax, [esi + 0x2cc]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100fb4f
mov eax, dword [esi + eax*4 + 0x13e4]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x98]
inc eax
push eax
push 0x1003938
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.0100de8f
add esp, 0x10
push edi
lea eax, [ebp - 0x8c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100fb4f
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
push 0x1003914
push dword [ebp - 0x8c]
call ebx
mov esi, dword [ebp - 0xa0]
lea eax, [ebp - 0x94]
push eax
lea eax, [esi + 0x2b80]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
push 0x1003a8c
push dword [ebp - 0x8c]
call ebx
push 4
lea edi, [esi + 0x43c]
pop ecx
lea esi, [ebp - 0x78]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x100faa7
push 4
pop ecx
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x78]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x100fb3b
mov esi, dword [ebp - 0xa0]
lea eax, [ebp - 0x94]
push eax
lea eax, [esi + 0x2b84]
push eax
lea eax, [ebp - 0x90]
push eax
xor edi, edi
push edi
push 0x1003a78
push dword [ebp - 0x8c]
call ebx
lea eax, [ebp - 0x94]
push eax
lea eax, [esi + 0x2b74]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
push 0x1003930
push dword [ebp - 0x8c]
call ebx
lea eax, [ebp - 0x94]
push eax
lea eax, [esi + 0x2b78]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
push 0x1003928
push dword [ebp - 0x8c]
call ebx
lea eax, [ebp - 0x94]
push eax
add esi, 0x2b7c
push esi
lea eax, [ebp - 0x90]
push eax
push edi
push 0x1003920
push dword [ebp - 0x8c]
call ebx
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xac]
xor edi, edi
inc dword [ebp - 0x98]
mov eax, dword [ebp - 0x98]
add dword [ebp - 0x9c], 0x134
cmp eax, dword [esi + 0xc8c]
jb 0x100f9d4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010064e2
leave
ret 4
Function at 0x100fb87
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, esi
call fcn.0100d768
mov dword [esi + 4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov ecx, esi
call fcn.0100e015
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, 1
je 0x100fbd3
cmp eax, 3
je 0x100fbd3
cmp eax, 2
jne 0x100fbe5
mov ecx, esi
call fcn.0100e190
cmp eax, ebx
jge 0x100fbe5
mov byte [esi + 0x21], 1
mov dword [esi + 0x24], eax
cmp dword [esi + 4], 1
jne 0x100fc36
push ebx
push ebx
push 0x400
push dword [esi + 0xc]
mov byte [esi + 0x18], 1
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x100fc28
push ebx
push ebx
push dword [esi + 0xc]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x100fc2f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp byte [esi + 0x18], bl
jne 0x100fc01
jmp 0x100fc36
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0x20
call sub.d3d9.dll_Direct3DCreate9
cmp eax, ebx
mov dword [esi + 0x140c], eax
jne 0x100fc50
mov dword [esi + 0x24], 0x82000001
jmp 0x100fca0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, ebx
jge 0x100fc60
mov dword [esi + 0x24], eax
jmp 0x100fca0
mov ecx, esi
call fcn.0100ea4d
cmp eax, ebx
jl 0x100fc5b
xor edx, edx
cmp dword [esi + 0x1408], ebx
jbe 0x100fc99
lea ecx, [esi + 0x13e4]
mov eax, dword [ecx]
cmp byte [eax + 0x2b71], bl
jne 0x100fca4
cmp byte [eax + 0x2b73], bl
jne 0x100fca4
inc edx
add ecx, 4
cmp edx, dword [esi + 0x1408]
jb 0x100fc7b
mov dword [esi + 0x24], 0x82000003
mov byte [esi + 0x21], 1
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x10117df
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x1013014]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
add eax, 4
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
lea eax, [ebp + 4]
mov eax, dword [eax - 4]
push 0x1003f18
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010064e2
leave
ret
Function at 0x4010b2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x401163
cmp dword [0x40a114], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x4010e4
push str.GdipCreateFromHDC
push eax
call esi
mov dword [0x40a114], eax
cmp dword [0x40a118], edi
jne 0x4010fa
push str.GdipDeleteGraphics
push dword [ebx]
call esi
mov dword [0x40a118], eax
cmp dword [0x40a11c], edi
jne 0x401110
push str.GdipDrawImageRectRectI
push dword [ebx]
call esi
mov dword [0x40a11c], eax
cmp dword [0x40a120], edi
jne 0x401126
push str.GdipCreateImageAttributes
push dword [ebx]
call esi
mov dword [0x40a120], eax
mov eax, dword [0x40a124]
cmp eax, edi
jne 0x40113d
push str.GdipSetImageAttributesColorMatrix
push dword [ebx]
call esi
mov dword [0x40a124], eax
cmp dword [0x40a114], edi
je 0x401163
cmp dword [0x40a118], edi
je 0x401163
cmp dword [0x40a11c], edi
je 0x401163
mov ecx, dword [0x40a120]
cmp ecx, edi
je 0x401163
cmp eax, edi
jne 0x40116a
xor eax, eax
jmp 0x40127a
cmp dword [0x40a128], edi
jne 0x401179
push 0x40a128
call ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
call dword [0x40a114]
fld1
mov esi, dword [ebp + 0x20]
fstp dword [ebp - 0x68]
fldz
cmp esi, edi
fstp dword [ebp - 0x64]
fldz
fstp dword [ebp - 0x60]
fldz
fstp dword [ebp - 0x5c]
fldz
fstp dword [ebp - 0x58]
fldz
fstp dword [ebp - 0x54]
fld1
fstp dword [ebp - 0x50]
fldz
fstp dword [ebp - 0x4c]
fldz
fstp dword [ebp - 0x48]
fldz
fstp dword [ebp - 0x44]
fldz
fstp dword [ebp - 0x40]
fldz
fstp dword [ebp - 0x3c]
fld1
fstp dword [ebp - 0x38]
fldz
fstp dword [ebp - 0x34]
fldz
fstp dword [ebp - 0x30]
fldz
fstp dword [ebp - 0x2c]
fldz
fstp dword [ebp - 0x28]
fldz
fstp dword [ebp - 0x24]
fld1
fstp dword [ebp - 0x20]
fldz
fstp dword [ebp - 0x1c]
fldz
fstp dword [ebp - 0x18]
fldz
fstp dword [ebp - 0x14]
fldz
fstp dword [ebp - 0x10]
fldz
fstp dword [ebp - 0xc]
fld1
fstp dword [ebp - 8]
je 0x401217
push 0x19
lea edi, [ebp - 0x68]
pop ecx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x68]
push edi
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push 1
push dword [0x40a128]
call dword [0x40a124]
mov ecx, ebx
call fcn.00401589
mov ecx, ebx
mov esi, eax
call fcn.004015b9
push edi
push edi
push dword [0x40a128]
push 2
push eax
mov eax, dword [ebp + 0x18]
push esi
sub eax, dword [ebp + 0x10]
push edi
push edi
push eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp - 4]
call dword [0x40a11c]
push dword [ebp - 4]
call dword [0x40a118]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x40131a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401589
mov ecx, esi
call fcn.004015b9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp dword [0x40a130], ebx
jne 0x40135a
push str.GdipGetImageGraphicsContext
push dword [esi]
call edi
cmp eax, ebx
mov dword [0x40a130], eax
jne 0x40135a
xor eax, eax
jmp 0x401497
cmp dword [0x40a134], ebx
jne 0x401370
push str.GdipDrawImageRectRectI
push dword [esi]
call edi
mov dword [0x40a134], eax
cmp dword [0x40a138], ebx
jne 0x401386
push str.GdipCreateImageAttributes
push dword [esi]
call edi
mov dword [0x40a138], eax
cmp dword [0x40a13c], ebx
jne 0x40139c
push str.GdipSetImageAttributesColorMatrix
push dword [esi]
call edi
mov dword [0x40a13c], eax
cmp dword [0x40a140], ebx
jne 0x4013b2
push str.GdipDeleteGraphics
push dword [esi]
call edi
mov dword [0x40a140], eax
cmp dword [0x40a144], ebx
jne 0x4013c8
push str.GdipGraphicsClear
push dword [esi]
call edi
mov dword [0x40a144], eax
mov eax, dword [0x40a148]
cmp eax, ebx
jne 0x4013df
push str.GdipCloneImage
push dword [esi]
call edi
mov dword [0x40a148], eax
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x401494
cmp dword [0x40a130], ebx
je 0x401494
lea edx, [ebp - 8]
push edx
push ecx
call eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [0x40a130]
mov ecx, esi
call fcn.00401589
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.004015b9
cmp dword [0x40a14c], ebx
mov dword [ebp - 0xc], eax
jne 0x401431
push 0x40a14c
call dword [0x40a138]
push ebx
push dword [ebp + 8]
push dword [ebp + 8]
push 1
push 1
push dword [0x40a14c]
call dword [0x40a13c]
push ebx
push dword [ebp - 4]
call dword [0x40a144]
push ebx
push ebx
push dword [0x40a14c]
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [0x40a134]
push dword [ebp - 4]
call dword [0x40a140]
cmp dword [ebp - 8], ebx
je 0x401494
push str.GdipDisposeImage
push dword [esi]
call edi
push dword [ebp - 8]
call eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40149e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004015e9
cmp dword [0x40a150], 0
jne 0x4014ca
push str.GdipLoadImageFromStream
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x40a150], eax
je 0x401506
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401506
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401506
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40150a
xor eax, eax
jmp 0x401582
mov eax, dword [ebx + 4]
test eax, eax
je 0x401525
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 4], 0
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebx + 4], eax
je 0x40157f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40157f
mov ecx, edi
mov edi, eax
mov eax, ecx
and dword [ebp + 0x10], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x10]
and ecx, 3
push eax
push 0
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 4]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40157f
add ebx, 0xc
push ebx
push dword [ebp + 0x10]
call dword [0x40a150]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x401b85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [0x40a154]
push edi
cmp ecx, ebx
je 0x401bb1
mov ecx, dword [ecx]
lea eax, [esi + 0x214]
mov dword [eax], ecx
add dword [0x40a158], 4
cmp dword [eax], ebx
jmp 0x401bdd
push dword [esi + 0x20c]
lea edi, [esi + 0x214]
push 1
push 4
push edi
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
jae 0x401bdb
push str.Read_Error
mov ecx, esi
call fcn.004016a8
cmp dword [edi], ebx
je 0x401d19
mov ecx, esi
call fcn.004018f0
mov ecx, esi
call fcn.00401717
lea edi, [esi + 0x220]
mov ecx, 0x3f1
mov eax, 0x20202020
mov dword [ebp - 4], 0xfc4
rep stosd dword es:[edi], eax
cmp dword [esi + 0x214], ebx
mov dword [ebp - 8], ebx
jbe 0x401d19
mov edi, 0xfff
mov ecx, esi
call fcn.00401916
mov ebx, eax
cmp bx, 0x100
jge 0x401c7f
mov eax, dword [0x40a164]
test eax, eax
je 0x401c53
mov ecx, dword [0x40a168]
lea edx, [ecx + 1]
cmp edx, dword [0x40a160]
jge 0x401c64
mov byte [ecx + eax], bl
inc dword [0x40a168]
jmp 0x401c64
push dword [esi + 0x210]
movsx eax, bx
push eax
call sub.MSVCRT.dll_putc
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 8]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jmp 0x401d0a
mov ecx, esi
call fcn.00401a56
mov cx, ax
mov eax, dword [ebp - 4]
sub eax, ecx
lea ecx, [ebx - 0xfd]
dec eax
and eax, edi
test cx, cx
jle 0x401d0a
movsx eax, ax
mov dword [ebp - 0xc], eax
movsx eax, cx
add dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
and eax, edi
movzx bx, byte [eax + esi + 0x220]
mov eax, dword [0x40a164]
test eax, eax
je 0x401cde
mov ecx, dword [0x40a168]
lea edx, [ecx + 1]
cmp edx, dword [0x40a160]
jge 0x401cef
mov byte [ecx + eax], bl
inc dword [0x40a168]
jmp 0x401cef
push dword [esi + 0x210]
movsx eax, bx
push eax
call sub.MSVCRT.dll_putc
pop ecx
pop ecx
mov eax, dword [ebp - 4]
movsx ecx, ax
inc eax
and eax, edi
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
mov byte [ecx + esi + 0x220], bl
mov dword [ebp - 4], eax
jne 0x401cab
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x214]
jb 0x401c1e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402125
Capabilities:
Set file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x416384
push 0x104
xor edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x2e
push esi
call sub.MSVCRT.dll_wcsrchr
pop ecx
cmp eax, edi
pop ecx
je 0x40214e
mov word [eax], di
push str..ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebp, 0x80
push edi
push ebp
push 3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, 0x40000000
push 1
push ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x402183
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4021a5
push 0
push ebp
push 4
push 0
push 1
push ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x4021a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
pop edi
pop esi
pop ebp
cmp ax, 0x407
mov dword [0x416364], 1
pop ebx
je 0x4021d1
cmp ax, 0x807
je 0x4021d1
cmp ax, 0xc07
je 0x4021d1
cmp ax, 0x1007
jne 0x4021d8
and dword [0x416364], 0
cmp ax, 0x419
jne 0x4021e8
mov dword [0x416364], 2
push dword [0x416364]
push 0x4097a8
call fcn.0040210b
push dword [0x416374]
mov dword [0x416364], eax
push str.tray_start
call fcn.0040210b
add esp, 0x10
mov dword [0x416374], eax
ret

Function at 0x40239b
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [0x4081b0]
xor esi, esi
mov dword [0x4135e8], ebx
mov dword [0x416b88], esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], esi
call edi
cmp eax, 0xb7
je 0x4023d9
call edi
cmp eax, 5
jne 0x4023f3
lea eax, [ebp + 8]
push eax
push 0x401eb2
call dword [sym.imp.USER32.dll_EnumWindows]
push 0xaffe
call dword [sym.imp.USER32.dll_PostQuitMessage]
push esi
push ebx
push esi
push esi
push 0xffffffffffffff9c
mov eax, 0x80000000
push 0xffffffffffffff9c
push eax
push eax
push 0xcf0002
push 0x4133e8
push 0x4131e8
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 0x3e8
push esi
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret