joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401010
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push 0x420494
push esi
mov dword [esp + 0x10], esi
call sub.KERNEL32.dll_GetModuleHandleExA
test eax, eax
je 0x40106f
mov ecx, dword [esp + 4]
push edi
push str.VirtualAllocExNuma
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x14]
push esi
push 0x40
push 0x3000
push edi
push esi
mov dword [0x429f8c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x429f8c]
mov edx, dword [esp + 0x10]
push edi
mov esi, eax
push edx
push esi
call fcn.0040e0a0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401170
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov cl, byte [eax]
mov dl, byte [eax + 1]
push ebp
xor ebp, ebp
cmp dword [esp + 0x10], ebp
jle 0x40120c
push ebx
push esi
push edi
movzx esi, cl
movzx edi, dl
lea eax, [esi + 1]
cdq
mov ecx, 0x176
idiv ecx
mov ebx, dword [0x429f94]
movzx esi, dl
movzx eax, byte [esi + ebx]
lea ecx, [esi + ebx]
add eax, edi
mov byte [esp + 0x12], dl
cdq
mov edi, 0x176
idiv edi
movzx edi, dl
lea eax, [edi + ebx]
mov byte [esp + 0x13], dl
call fcn.00401000
mov ecx, dword [0x429f94]
movzx edx, byte [esi + ecx]
movzx eax, byte [edi + ecx]
add eax, edx
cdq
mov ebx, 0x176
idiv ebx
inc ebp
movzx eax, dl
mov cl, byte [eax + ecx]
mov eax, dword [esp + 0x18]
xor byte [eax + ebp - 1], cl
cmp ebp, dword [esp + 0x1c]
jl 0x401190
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x12]
mov cl, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebp
pop ecx
ret
mov byte [eax], cl
mov byte [eax + 1], dl
pop ebp
pop ecx
ret

Function at 0x40e955
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428c0c]
jne 0x40e95f
repz ret
jmp fcn.0041428c
Function at 0x4191e0
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.00413c71
and dword [ebp - 4], 0
cmp dword [0x42c89c], 0
mov ebx, eax
jne 0x419291
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x419342
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x422f80
push edi
call esi
test eax, eax
je 0x419342
push eax
call fcn.00413bff
mov dword [esp], 0x422f70
push edi
mov dword [0x42c89c], eax
call esi
push eax
call fcn.00413bff
mov dword [esp], 0x422f5c
push edi
mov dword [0x42c8a0], eax
call esi
push eax
call fcn.00413bff
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42c8a4], eax
call esi
push eax
call fcn.00413bff
pop ecx
mov dword [0x42c8ac], eax
test eax, eax
je 0x419291
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413bff
pop ecx
mov dword [0x42c8a8], eax
mov eax, dword [0x42c8a8]
cmp eax, ebx
je 0x4192e9
cmp dword [0x42c8ac], ebx
je 0x4192e9
push eax
call fcn.00413c7a
push dword [0x42c8ac]
mov esi, eax
call fcn.00413c7a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4192e9
test edi, edi
je 0x4192e9
call esi
test eax, eax
je 0x4192e0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4192e0
test byte [ebp - 0xc], 1
jne 0x4192e9
or dword [ebp + 0x10], 0x200000
jmp 0x419322
mov eax, dword [0x42c8a0]
cmp eax, ebx
je 0x419322
push eax
call fcn.00413c7a
pop ecx
test eax, eax
je 0x419322
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x419322
mov eax, dword [0x42c8a4]
cmp eax, ebx
je 0x419322
push eax
call fcn.00413c7a
pop ecx
test eax, eax
je 0x419322
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c89c]
call fcn.00413c7a
pop ecx
test eax, eax
je 0x419342
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x419344
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x572c80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x40108c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
je 0x4010b1
cmp al, 0x20
jle 0x4010c3
inc esi
cmp byte [esi], 0x20
jg 0x4010a5
jmp 0x4010c3
cmp al, 0x22
je 0x4010c2
inc esi
mov al, byte [esi]
test al, al
jne 0x4010ad
cmp al, 0x22
jne 0x4010c3
jmp 0x4010c2
cmp al, 0x20
jg 0x4010c9
inc esi
mov al, byte [esi]
test al, al
jne 0x4010be
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401137
push 0x408004
push section..data
call fcn.0040111d
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4010f9
movzx eax, word [ebp - 0x14]
jmp 0x4010fc
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040114f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4011fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov edx, ecx
mov dword [ebp - 4], 0x5006
push esi
mov esi, 0x402568
sub esi, dword [ebp + 0xc]
mov ebx, dword [edx + 4]
push edi
mov edi, dword [edx]
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [edx + edi + 8]
movzx eax, cl
add eax, ebx
movzx ebx, al
mov al, byte [edx + ebx + 8]
mov byte [edx + edi + 8], al
add al, cl
mov byte [edx + ebx + 8], cl
mov ecx, dword [ebp + 0xc]
movzx eax, al
mov al, byte [eax + edx + 8]
xor al, byte [esi + ecx]
mov byte [ecx], al
inc ecx
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], ecx
jne 0x40121b
mov dword [edx], edi
xor eax, eax
pop edi
pop esi
mov dword [edx + 4], ebx
pop ebx
leave
ret
Function at 0x402518
Capabilities:
Terminate process

Disassembly:
jmp 0x43d4f7
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x43d508
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004038a5
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4025a9
Capabilities:
Query environment variable

Disassembly:
jmp 0x4463f2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x446403
pop esi
ret
push ebx
push edi
push esi
call fcn.004462d9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402a9f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44642b
push ebx
push esi
push edi
call fcn.00403774
add esp, 0xc
push 0
call fcn.00403d82
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4037e2
Capabilities:
Parse pe header

Disassembly:
jmp 0x407dd3
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407e12
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407e12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407e12
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407e12
cmp dword [ecx + 0x74], 0xe
jbe 0x407e12
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4442d9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4720e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x444324
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044489a
test al, al
jne 0x44431e
sub edx, 2
cmp edx, edi
jne 0x444304
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x444346
lea eax, [edi + 2]
cmp edx, eax
je 0x444346
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00443ed2
add esp, 0x10
jmp 0x444440
push esi
lea ecx, [ebp - 0x255]
call fcn.0044489a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x444389
push dword [ebp - 0x25c]
jmp 0x444336
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4443c6
cmp word [ebp - 0x226], 0
je 0x4443e7
cmp word [ebp - 0x226], ax
jne 0x4443c6
cmp word [ebp - 0x224], 0
je 0x4443e7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00443ed2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x444433
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4443a0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44441b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x444440
push 0x4437b8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403684
add esp, 0x10
jmp 0x444410
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402216
leave
ret
Function at 0x457289
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x474150]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4572c9
cmp byte [ebx], 0xa
jne 0x4572c9
or byte [eax + edi + 0x28], 4
jmp 0x4572ce
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4573cc
mov al, byte [edx]
cmp al, 0x1a
je 0x4573ae
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4572fd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x457322
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45732c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4572df
jmp 0x4573cc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4573a9
cmp dword [ebp - 0xc], 0
je 0x4573a9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x474150]
test byte [eax + edi + 0x28], 0x48
je 0x457383
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45736e
mov byte [esi], dl
jmp 0x45737f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x474150]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4573cc
cmp byte [ebp - 1], 0xa
jne 0x457392
cmp esi, ebx
jne 0x457392
mov byte [esi], 0xa
jmp 0x4573cb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401500
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4573cc
mov byte [esi], 0xd
jmp 0x4573cb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x474150]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4573c8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4573cc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x457428
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x474150]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45746b
cmp word [esi], dx
jne 0x45746b
or byte [edi + eax + 0x28], 4
jmp 0x457470
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4575c3
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4575a3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4574b2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4574e8
cmp eax, edx
jae 0x4574f4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x45748a
jmp 0x4575c3
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45759f
cmp dword [ebp - 0x14], 0
je 0x45759f
mov eax, dword [ebx*4 + 0x474150]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x457577
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x457540
mov word [esi], cx
jmp 0x457573
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x474150]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x474150]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x474150]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4575c3
pop ebx
cmp word [ebp - 4], bx
jne 0x457588
cmp esi, dword [ebp + 0xc]
jne 0x457588
mov word [esi], bx
jmp 0x4575c0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401500
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4575c3
push 0xd
jmp 0x4575bc
mov ecx, dword [ebx*4 + 0x474150]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4575ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4575c3
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4170a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43da60
cmp edx, dword [eax]
je 0x4170c4
add eax, 8
inc ecx
cmp eax, 0x43daf0
jl 0x4170b5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43da60]
jne 0x4171f2
mov eax, dword [0x4407dc]
cmp eax, 1
je 0x4171cc
test eax, eax
jne 0x4170f5
cmp dword [0x43d198], 1
je 0x4171cc
cmp edx, 0xfc
je 0x4171f2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41712c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417e80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00417f70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41716f
lea eax, [ebp - 0x1a4]
push eax
call fcn.00417f70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4344c0
push edi
call fcn.00411a00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417e80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417e90
lea eax, [ebp - 0xa0]
push 0x4344a0
push eax
call fcn.00417e90
push dword [esi + 0x43da64]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417e90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a0ca
add esp, 0x2c
pop edi
jmp 0x4171f2
lea eax, [ebp + 8]
lea esi, [esi + 0x43da64]
push 0
push eax
push dword [esi]
call fcn.00417f70
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 0x4216e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00412670
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4217ab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4217ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42175e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x421769
or bh, 8
and edi, 0x8000000
je 0x421784
mov eax, dword [0x4423fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4217ab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x421bab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x421bcf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x421bea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42748c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4274ce
call fcn.0042be94
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4274ce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4274c5
xor eax, eax
jmp 0x4274d6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004274dc
pop edi
pop esi
pop ebx
ret 4

Function at 0x42c3f7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42c425
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c443
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042c35d
jmp 0x42c443
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42c443
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042c35d
test edi, edi
mov eax, edi
jne 0x42c42d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8