joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c380
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43158b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43fe28]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043008e
push 4
mov dword [esp + 0x20], 0
call fcn.0040f49c
mov edi, eax
add esp, 4
test edi, edi
je 0x40c3fe
call fcn.004303de
mov dword [edi], eax
call fcn.0043020c
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00430130
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40c3f3
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00430158
jmp 0x40c400
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x41baef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fe28]
jne 0x41baf9
repz ret
jmp fcn.00420fe8

Function at 0x429570
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.004209f5
and dword [ebp - 4], 0
cmp dword [0x444028], 0
mov ebx, eax
jne 0x429621
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4296d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4296d2
push eax
call fcn.00420983
mov dword [esp], 0x435e38
push edi
mov dword [0x444028], eax
call esi
push eax
call fcn.00420983
mov dword [esp], 0x435e24
push edi
mov dword [0x44402c], eax
call esi
push eax
call fcn.00420983
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x444030], eax
call esi
push eax
call fcn.00420983
pop ecx
mov dword [0x444038], eax
test eax, eax
je 0x429621
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00420983
pop ecx
mov dword [0x444034], eax
mov eax, dword [0x444034]
cmp eax, ebx
je 0x429679
cmp dword [0x444038], ebx
je 0x429679
push eax
call fcn.004209fe
push dword [0x444038]
mov esi, eax
call fcn.004209fe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x429679
test edi, edi
je 0x429679
call esi
test eax, eax
je 0x429670
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x429670
test byte [ebp - 0xc], 1
jne 0x429679
or dword [ebp + 0x10], 0x200000
jmp 0x4296b2
mov eax, dword [0x44402c]
cmp eax, ebx
je 0x4296b2
push eax
call fcn.004209fe
pop ecx
test eax, eax
je 0x4296b2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4296b2
mov eax, dword [0x444030]
cmp eax, ebx
je 0x4296b2
push eax
call fcn.004209fe
pop ecx
test eax, eax
je 0x4296b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444028]
call fcn.004209fe
pop ecx
test eax, eax
je 0x4296d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4296d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40a60b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40a61a
pop dword [ebp - 0xc]
mov eax, 0x40a61a
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc9c81309
add dword [ebp - 0x1c], 0x848a3242
mov dword [ebp - 0x18], 0x70bfb51f
add dword [ebp - 0x18], 0xc1739726
mov dword [ebp - 0x14], 0x28c195eb
add dword [ebp - 0x14], 0x238aae43
mov dword [ebp - 0x10], 0xf7d4cbe6
sub dword [ebp - 0x10], 0xf7d4cbe6
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x8f94d562
sub eax, 0x8f54050e
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x67261f9
add dword [ebp - 0x1c], 0x6e00075d
mov dword [ebp - 0x18], 0xbcbee8b
sub dword [ebp - 0x18], 0xca5f8d16
mov dword [ebp - 0x14], 0xdcc01ffb
add dword [ebp - 0x14], 0x86af4c71
mov dword [ebp - 0x10], 0x327ac133
sub dword [ebp - 0x10], 0x327ac133
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3ac40
push 0
call eax
mov ecx, 0x8f55af07
add ecx, 0x70aa9c8e
xor edi, edi
add edi, eax
mov esi, 0x41b000
add esi, dword [ebp - 0xc]
mov ebx, 0x9bab79d6
add ebx, 0x80949982
add dword [ebp - 8], 0xcdda63f0
mov edx, dword [esi]
mov dword [ebp - 4], 0xc218c518
sub edx, ebx
mov dword [ebp - 4], 0x2043dc09
mov dword [edi], edx
xor dword [ebp - 4], eax
add edi, 0xe7836e05
sub edi, 0xe7836e01
add esi, 4
loop 0x40a72e
add eax, 0xff039025
sub eax, 0xff026efe
mov ebx, eax
add eax, 0x69f8514a
sub eax, 0x69f85145
mov ecx, 0x278b12ab
add ecx, 0xd8b4ed55
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x100017c1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1000185c
push str.jvm.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100017f3
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x1000185e
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.JVM_DTraceGetVersion
push ebx
call esi
push str.JVM_DTraceIsSupported
push ebx
mov dword [edi], eax
call esi
push str.JVM_DTraceActivate
push ebx
mov dword [edi + 4], eax
call esi
push str.JVM_DTraceDispose
push ebx
mov dword [edi + 8], eax
call esi
push str.JVM_DTraceIsProbeEnabled
push ebx
mov dword [edi + 0xc], eax
call esi
push ebx
mov dword [edi + 0x10], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor esi, esi
cmp dword [edi], esi
je 0x10001851
cmp dword [edi + 4], esi
je 0x10001851
cmp dword [edi + 8], esi
je 0x10001851
cmp dword [edi + 0xc], esi
je 0x10001851
cmp dword [edi + 0x10], esi
jne 0x1000185b
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov edi, esi
pop esi
mov eax, edi
pop edi
pop ebx
ret

Function at 0x100022cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100022de
pop dword [ebp - 0x24]
mov eax, 0x6e7116dd
sub eax, 0x5e70f3ff
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xd53b0803
add dword [ebp - 0x34], 0x79173d48
mov dword [ebp - 0x30], 0x1834502c
add dword [ebp - 0x30], 0x19fefc19
mov dword [ebp - 0x2c], 0xa601a2fc
sub dword [ebp - 0x2c], 0x59b55ece
mov dword [ebp - 0x28], 0x6fa683cd
add dword [ebp - 0x28], 0x90597c33
lea eax, [ebp - 0x34]
push eax
mov eax, 0x96755393
add eax, 0x798adc71
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xb1f54796
sub dword [ebp - 0x34], 0x3d82de40
mov dword [ebp - 0x30], 0x178e1fc0
sub dword [ebp - 0x30], 0xd621be4b
mov dword [ebp - 0x2c], 0x63db5f8b
add dword [ebp - 0x2c], 0xff940ce1
mov dword [ebp - 0x28], 0x42febddc
add dword [ebp - 0x28], 0xbd014224
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x18a8dbb4
add eax, 0xf7575454
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36c12
push 0
call eax
mov ecx, 0x4912
mov ebx, eax
mov esi, 0x10006200
add esi, dword [ebp - 0x24]
mov edi, 0xe5c8cbfd
sub edi, 0x6da2063e
sub dword [ebp - 0x14], eax
mov edx, dword [esi]
add dword [ebp - 0x18], esi
add edx, edi
xor dword [ebp - 0x10], 0xdb656283
mov dword [ebx], edx
sub dword [ebp - 8], edx
add ebx, 4
add esi, 0xd109812c
sub esi, 0xd1098128
loop 0x100023f4
add eax, 0x1171b
mov ebx, eax
add eax, 0x39ece53b
sub eax, 0x39ece536
mov ecx, 0x37b60584
add ecx, 0xd849fa7c
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x404d80
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x404e12
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x404e04
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x404dfc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x404dc5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x404e20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x404e61.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x404e61.2
jmp dword [eax*4 + 0x404eec]
mov word [esp + 0x48], di
jmp 0x404e9a
mov word [esp + 0x48], 2
jmp 0x404e9a
mov word [esp + 0x48], 3
jmp 0x404e9a
mov word [esp + 0x48], 4
jmp 0x404e9a
mov word [esp + 0x48], 7
jmp 0x404e9a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x404ee4
cmp dword [esp + 0x70], edi
je 0x404ed0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4050f9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00404b90
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x405530
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x4055b0
push edi
call dword [0x47d08c]
add esp, 4
test eax, eax
jbe 0x4055b0
test esi, esi
je 0x40556e
cmp esi, 0xffffffff
je 0x40556e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x4055f2
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x40559c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x4055b0
jmp 0x4055ab
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x4055b0
mov ebp, 1
test esi, esi
je 0x4055f2
cmp esi, 0xffffffff
je 0x4055f2
test ebp, ebp
jne 0x405629
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x4055ff
call edi
test eax, eax
je 0x4055f2
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x405629
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x4055da
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x4055f2
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x405629
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x40560c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x47d08c]
inc eax
push eax
call fcn.00404b90
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x4064c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x4064e1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x40653b
inc edi
cmp edi, esi
jl 0x4064d5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x406570
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x40652a
cmp byte [eax], bl
je 0x406545
cmp byte [eax + 1], bl
je 0x40654e
cmp byte [eax + 2], bl
je 0x406558
cmp byte [eax + 3], bl
je 0x406564
add eax, 4
cmp eax, edi
jb 0x406501
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x408140
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
call edi
test eax, eax
jne 0x40816b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x40817b
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp word [esp + 8], 0
je 0x40818c
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
call edi
test eax, eax
jne 0x4081aa
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x4081ba
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp word [esp + 8], 1
je 0x4081cb
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x10]
push 2
push edx
push esi
call edi
test eax, eax
jne 0x4081e9
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp dword [esp + 0x10], 2
je 0x4081f9
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
pop edi
and eax, 0xffff
pop esi
pop ecx
ret 4
Function at 0x408210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x4083c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x408389
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4083b9
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4083b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4083b9
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.00409492
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x4083b9
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x49f04c
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x408389
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40839e
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4083a5
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.00409492
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.004080d0
test eax, eax
je 0x4083ac
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x4082ec
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x4083b1
mov eax, dword [esp + 0x10]
push eax
jmp 0x4083b1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004093a9
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x4083d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x408400
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x40840f
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x408432
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x408441
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x408464
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8
Function at 0x4084b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x408627
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x20c]
push ecx
push ebx
mov ecx, esi
call fcn.004083d0
test eax, eax
jne 0x408513
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x20c]
xor ebp, ebp
test eax, eax
jbe 0x4085c2
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [esp + 0x19], al
mov eax, dword [esi]
mov byte [esp + 0x18], dl
mov byte [esp + 0x1b], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x1c], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x408572
mov byte [esp + 0x1a], 0
jmp 0x40857a
mov dl, 1
shl dl, cl
mov byte [esp + 0x1a], dl
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x14]
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.00408480
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408627
cmp dword [esp + 0x30], 0x10
jne 0x408627
mov eax, dword [edi + 0x20c]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x408529
mov eax, dword [edi + 0x20c]
xor ebx, ebx
test eax, eax
jbe 0x40861c
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408627
mov ecx, dword [esp + 0x30]
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x408627
mov edx, dword [esi]
inc ebx
add esi, 0x20
mov dword [edx + 0x14], ebp
mov eax, dword [edi + 0x20c]
cmp ebx, eax
jb 0x4085d4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x408640
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4086bf
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4086bf
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4086bf
push ebx
push ebp
push edi
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov ebp, eax
mov eax, ecx
mov edi, ebp
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x408840
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40892d
mov esi, dword [esp + 0x28]
mov ecx, edi
push esi
mov word [esp + 0x14], 0x4d42
mov word [esp + 0x1a], bp
mov word [esp + 0x1c], bp
call fcn.00408800
and eax, 0xffff
push esi
add eax, 0x36
mov ecx, edi
mov dword [esp + 0x1e], eax
call fcn.00408810
imul eax, dword [esi + 8]
mov edx, dword [esp + 0x1a]
lea ecx, [esp + 0x24]
add eax, edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
lea edx, [esp + 0x18]
push 0xe
shr eax, 2
push edx
push ebx
mov dword [esp + 0x26], eax
call ebp
test eax, eax
je 0x408926
cmp dword [esp + 0x24], 0xe
jne 0x408926
mov eax, dword [esi + 8]
push esi
cdq
sub eax, edx
mov ecx, edi
sar eax, 1
mov dword [esi + 8], eax
call fcn.00408810
mov edi, eax
mov ecx, dword [esp + 0x1a]
imul edi, dword [esi + 8]
lea eax, [esp + 0x24]
add edi, ecx
push 0
push eax
push edi
push esi
push ebx
call ebp
test eax, eax
je 0x408926
cmp dword [esp + 0x24], edi
jne 0x408926
mov ecx, dword [esi + 8]
push ebx
shl ecx, 1
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8