joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a4210
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
call fcn.10196a50
mov ecx, dword [esi + 0x88]
mov dword [esi + 4], eax
push esi
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x14]
movzx eax, word [eax + 6]
mov dword [esi], eax
mov dword [esi + 0x6c], eax
call fcn.1019f1b0
add esp, 4
test eax, eax
je 0x101a43f5
push esi
call fcn.1019f180
add esp, 4
test eax, eax
je 0x101a43f5
push 0
push esi
call fcn.10194350
add esp, 8
test eax, eax
je 0x101a43f5
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
je 0x101a4290
push ecx
push eax
call fcn.10113600
add esp, 8
mov dword [esi + 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x38]
call fcn.101b0640
lea eax, [ebp - 0xc]
push eax
call fcn.101146c0
add esp, 0xc
test eax, eax
je 0x101a436f
mov eax, dword [esi + 0x18]
push 0
mov ecx, dword [eax + 0x44]
mov eax, dword [ecx + 0x9c]
sub eax, 5
push eax
mov eax, dword [ecx + 0x98]
add eax, 5
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.101aec00
add esp, 0x10
test eax, eax
je 0x101a43f5
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x44]
mov dword [eax + 0xa0], 5
lea eax, [ebp - 0xc]
push eax
call fcn.101146c0
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + 0x44]
mov dword [ecx + 0xa4], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x44]
mov dword [eax + 0xc8], 0x16
lea eax, [ebp - 0xc]
push eax
call fcn.101146c0
mov ecx, dword [esi + 0x18]
add esp, 8
mov ecx, dword [ecx + 0x44]
mov dword [ecx + 0xcc], eax
mov eax, dword [esi + 0x88]
mov dword [eax + 0xe8], 0xf1
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x88]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x98]
mov dword [ecx + 0x70], eax
mov eax, dword [esi + 0x88]
mov dword [eax + 0x74], 5
mov eax, dword [esi + 0x88]
mov dword [eax + 0xec], 1
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x3c]
call fcn.101b1410
mov eax, dword [esi + 0x88]
push 0
mov eax, dword [eax + 0x60]
push dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.101aec00
add esp, 0x18
test eax, eax
je 0x101a43f5
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x44]
mov dword [eax + 0x3a8], 1
push dword [edi + 0x3c]
call fcn.101b16e0
movzx ecx, al
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x44]
mov dword [eax + 0x394], ecx
lea eax, [ebp - 0xc]
push eax
call fcn.101146c0
mov ecx, dword [esi + 0x18]
add esp, 8
mov ecx, dword [ecx + 0x44]
pop edi
mov dword [ecx + 0x390], eax
mov eax, dword [esi + 0x18]
pop esi
mov eax, dword [eax + 0x44]
mov dword [eax + 0x158], 0x1120
mov eax, 1
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x101b2230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x1041f700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov eax, dword [eax + 4]
xor esi, esi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x90], eax
sub eax, edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], esi
cmp dword [ebp + 0x14], edi
jae 0x101b228a
push str.orig_len___md_size
push 0xd9
push str.Z:metasploit_payloadscmeterpreterdepslibressl_ssl_s3_cbc.c
call fcn.10112bb0
add esp, 0xc
cmp edi, 0x40
jbe 0x101b22a6
push str.md_size___EVP_MAX_MD_SIZE
push 0xda
push str.Z:metasploit_payloadscmeterpreterdepslibressl_ssl_s3_cbc.c
call fcn.10112bb0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x84]
neg eax
lea ebx, [ebp - 0x84]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [ebp - 0x94], ebx
cmp ecx, eax
jbe 0x101b22dc
mov esi, ecx
sub esi, edi
sub esi, 0x100
mov dword [ebp - 0x88], esi
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, esi
add eax, dword [ebp - 0x8c]
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [ebp - 0xa0], esi
call fcn.101b9cb0
mov ecx, dword [ebp - 0x88]
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x98], 0
cmp ecx, edx
jae 0x101b23bd
mov ebx, dword [ebp - 0x90]
mov esi, ecx
mov eax, dword [ebp + 0xc]
sub esi, ebx
mov dword [ebp - 0x88], esi
sub edx, ecx
mov esi, ebx
mov dword [ebp + 0x14], edx
sub esi, dword [ebp - 0x8c]
mov eax, dword [eax + 0x10]
add eax, ebx
mov dword [ebp - 0x90], esi
mov esi, dword [ebp - 0x94]
xor ecx, ecx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x88]
mov edi, edi
mov edi, dword [ebp - 0x8c]
mov edx, eax
mov ebx, dword [ebp - 0x90]
not edx
add ebx, eax
sar edx, 0x1f
not dl
not ebx
mov al, byte [edi + eax]
mov edi, dword [ebp + 0x10]
and dl, al
sar ebx, 0x1f
and dl, bl
or byte [ecx + esi], dl
mov ecx, dword [ebp - 0x98]
inc ecx
mov eax, ecx
sub eax, edi
sar eax, 0x1f
and ecx, eax
mov eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x98], ecx
dec dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
jne 0x101b2360
mov esi, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x94]
xor ecx, ecx
test edi, edi
je 0x101b23ee
mov edx, dword [ebp - 0x9c]
lea esp, [esp]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ecx], al
mov eax, esi
sub eax, edi
inc ecx
sar eax, 0x1f
and esi, eax
cmp ecx, edi
jb 0x101b23d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101c7f5c
mov esp, ebp
pop ebp
ret
Function at 0x101b2c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
inc ebx
mov eax, dword [eax + 4]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x40]
test byte [eax], 1
je 0x101b2c73
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
lea eax, [ebx + ecx]
cmp eax, edx
jbe 0x101b2c66
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x10], ecx
add dword [esi + 0x14], ecx
sub edx, ecx
mov dword [esi + 4], edx
jmp 0x101b2c78
cmp ebx, dword [esi + 4]
ja 0x101b2c5e
mov ecx, dword [esi + 4]
mov edx, ecx
mov ebx, dword [esi + 0x10]
dec ebx
mov dword [ebp + 8], ecx
mov eax, ecx
add ebx, ecx
push edi
dec eax
mov ecx, 0xff
movzx edi, byte [ebx]
sub edx, edi
mov dword [ebp + 0x14], edi
sub edx, dword [ebp - 4]
not edx
sar edx, 0x1f
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x101b2cd4
mov esi, ecx
lea ecx, [ecx]
mov eax, edi
lea ebx, [ebx - 1]
not eax
dec edi
sar eax, 0x1f
movzx ecx, al
movzx eax, byte [ebx + 1]
xor eax, dword [ebp + 0x14]
and ecx, eax
not ecx
and edx, ecx
dec esi
jne 0x101b2cb0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov eax, edx
shr eax, 4
and edx, eax
mov eax, edx
shr eax, 2
and edx, eax
lea eax, [edi + 1]
pop edi
lea ecx, [edx + edx]
and ecx, edx
mov edx, dword [ebp + 8]
shl ecx, 0x1e
sar ecx, 0x1f
and eax, ecx
sub edx, eax
mov dword [esi + 8], eax
mov eax, ecx
mov dword [esi + 4], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101b7f20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
call fcn.10196a60
mov ecx, dword [esi + 0x88]
mov dword [esi + 4], eax
push esi
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x14]
movzx eax, word [eax + 6]
mov dword [esi], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x14], 1
call fcn.1019f1b0
add esp, 4
test eax, eax
je 0x101b810c
push esi
call fcn.1019f180
add esp, 4
test eax, eax
je 0x101b810c
push 0
push esi
call fcn.10194350
add esp, 8
test eax, eax
je 0x101b810c
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
je 0x101b7fa7
push ecx
push eax
call fcn.10113600
add esp, 8
mov dword [esi + 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x38]
call fcn.101b0640
lea eax, [ebp - 0xc]
push eax
call fcn.101146c0
add esp, 0xc
test eax, eax
je 0x101b8086
mov eax, dword [esi + 0x18]
push 0
mov ecx, dword [eax + 0x44]
mov eax, dword [ecx + 0x9c]
sub eax, 5
push eax
mov eax, dword [ecx + 0x98]
add eax, 5
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.101aec00
add esp, 0x10
test eax, eax
je 0x101b810c
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x44]
mov dword [eax + 0xa0], 5
lea eax, [ebp - 0xc]
push eax
call fcn.101146c0
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + 0x44]
mov dword [ecx + 0xa4], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x44]
mov dword [eax + 0xc8], 0x16
lea eax, [ebp - 0xc]
push eax
call fcn.101146c0
mov ecx, dword [esi + 0x18]
add esp, 8
mov ecx, dword [ecx + 0x44]
mov dword [ecx + 0xcc], eax
mov eax, dword [esi + 0x88]
mov dword [eax + 0xe8], 0xf1
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x88]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x98]
mov dword [ecx + 0x70], eax
mov eax, dword [esi + 0x88]
mov dword [eax + 0x74], 5
mov eax, dword [esi + 0x88]
mov dword [eax + 0xec], 1
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x3c]
call fcn.101b1410
mov eax, dword [esi + 0x88]
push 0
mov eax, dword [eax + 0x60]
push dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.101aec00
add esp, 0x18
test eax, eax
je 0x101b810c
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x44]
mov dword [eax + 0x3a8], 1
push dword [edi + 0x3c]
call fcn.101b16e0
movzx ecx, al
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x44]
mov dword [eax + 0x394], ecx
lea eax, [ebp - 0xc]
push eax
call fcn.101146c0
mov ecx, dword [esi + 0x18]
add esp, 8
mov ecx, dword [ecx + 0x44]
pop edi
mov dword [ecx + 0x390], eax
mov eax, dword [esi + 0x18]
pop esi
mov eax, dword [eax + 0x44]
mov dword [eax + 0x158], 0x2110
mov eax, 1
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401158
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4045d8
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcpyA
push str..BAK
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x40118f
push 0
push esi
push dword [ebp + 8]
call sub.kernel32.dll_CopyFileA
mov al, 0
jmp 0x401191
mov al, 1
mov byte [0x4047f0], al
popal
leave
ret 4

Function at 0x40119c
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4045d8
cmp dword [ebp + 8], 0
jne 0x4011d2
cmp byte [0x4047f0], 0
jne 0x4011c1
push 0
push 0x4043d8
push esi
call sub.kernel32.dll_CopyFileA
cmp byte [0x4047f0], 0
jne 0x401204
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x401204
push 0x6b
push dword [0x40437c]
call sub.user32.dll_IsDlgButtonChecked
cmp eax, 1
jne 0x401202
push 0x404237
call fcn.00401118
push esi
call fcn.00401118
push dword [0x4047d8]
push esi
call sub.kernel32.dll_SetFileAttributesA
jmp 0x401204
jmp 0x4011c1
popal
leave
ret 4

Function at 0x40120c
Capabilities:
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
pushal
push 0x4043d8
push dword [ebp + 8]
call fcn.00402700
mov dword [ebp - 0x204], 0
push 0x4043d8
call sub.kernel32.dll_GetFileAttributesA
mov dword [0x4047d8], eax
test eax, 1
je 0x401251
xor eax, 1
push eax
push 0x4043d8
call sub.kernel32.dll_SetFileAttributesA
push 0x4043d8
call fcn.00401158
push 0
push 0x82
push 3
push 0
push 2
push 0xc0000000
push 0x4043d8
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401301
push 0x34
push 0x4043d8
push 0x404063
push dword [0x40437c]
call sub.user32.dll_MessageBoxA
cmp eax, 6
jne 0x4012fc
lea esi, [ebp - 0x200]
mov edi, 0x4043d8
cmp byte [edi + 1], 0x3a
jne 0x4012b5
push edi
call fcn.004026a0
mov edi, eax
push edi
push esi
call sub.kernel32.dll_lstrcpyA
push esi
call sub.kernel32.dll_lstrlenA
inc eax
push esi
push eax
add esi, eax
push edi
push esi
call sub.kernel32.dll_lstrcpyA
pop eax
add esi, eax
push 0x2e
push str.Exe
push esi
call sub.kernel32.dll_RtlMoveMemory
pop esi
push dword [0x40437c]
push 0
push esi
push 0x4043d8
call fcn.00402630
cmp eax, 1
jne 0x4012fc
jmp 0x40122d
jmp 0x4013a5
push 0x404272
call fcn.00401118
push 0x4043d8
call fcn.00401118
mov dword [0x4047dc], eax
push 0
push eax
call sub.kernel32.dll_GetFileSize
mov dword [0x4047e0], eax
cmp dword [ebp + 0xc], 0
jne 0x401330
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 1
jne 0x40134f
add eax, 0x226
add eax, dword [0x4047f1]
push 0x100
push eax
call fcn.004026e0
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
pop dword [0x4047ec]
push 0
push dword [0x4047ec]
push 0
push 4
push 0
push dword [0x4047dc]
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
jne 0x401381
push 0x40408b
call fcn.00401118
jmp 0x4013a5
mov dword [0x4047e8], eax
push 0
push 0
push 0
push 2
push eax
call sub.kernel32.dll_MapViewOfFile
or eax, eax
jne 0x40139a
jmp 0x401375
mov dword [0x4047e4], eax
mov dword [ebp - 0x204], eax
popal
mov eax, dword [ebp - 0x204]
leave
ret 0xc
Function at 0x4013b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x4047dc]
or esi, esi
je 0x401408
push dword [0x4047e4]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x4047e8]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push dword [0x4047ec]
push esi
call sub.kernel32.dll_SetFilePointer
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
push dword [ebp + 8]
call fcn.0040119c
push dword [0x4047d8]
push 0x4043d8
call sub.kernel32.dll_SetFileAttributesA
popal
leave
ret 4

Function at 0x401444
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401464
jmp 0x401484
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x4047f1], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x401481
jmp 0x401484
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4014b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
pushal
mov byte [ebp - 0x201], 0
push 1
push 8
call fcn.00401410
or eax, eax
je 0x401515
mov esi, eax
push 0x200
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push str.BASSMOD.dll
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_lstrcatA
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.004025d4
mov byte [ebp - 0x201], 1
popal
movzx eax, byte [ebp - 0x201]
leave
ret
Function at 0x4020f4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
jmp 0x402121
inc ecx
cmp ecx, dword [0x4047e0]
jne 0x402121
push 0x404320
call fcn.00401118
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10
cmp dword [ecx + esi], 0x4550
jne 0x402103
add esi, ecx
mov eax, dword [ebp + 8]
add eax, dword [0x4047e0]
cmp dword [eax - 4], 0x32505564
jne 0x40214a
push 0x404337
call fcn.00401118
jmp 0x402116
push esi
movzx eax, word [esi + 6]
dec eax
imul eax, eax, 0x28
add esi, 0xf8
mov edi, esi
or dword [edi + 0x24], 0x80000000
add edi, eax
pop esi
cmp dword [ebp + 0xc], 4
jne 0x402170
mov ecx, dword [esi + 0x34]
jmp 0x402172
xor ecx, ecx
mov dword [0x402439], ecx
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
mov dword [0x402431], ebx
add dword [0x402431], ecx
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [esi + 0x28], eax
cmp dword [ebp + 0xc], 4
jne 0x4021a3
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
add eax, ebx
jmp 0x4021a5
xor eax, eax
mov dword [0x40243d], eax
mov eax, dword [ebp + 8]
add eax, dword [edi + 0x14]
add eax, dword [edi + 0x10]
mov ecx, 0x40222e
mov ebx, 0x226
mov edx, eax
add edx, ebx
push edx
push ebx
push ecx
push eax
call sub.kernel32.dll_RtlMoveMemory
pop edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x16]
lea ecx, [eax + ecx]
mov ebx, dword [0x4047f1]
sub ebx, eax
push ebx
push ecx
push edx
call sub.kernel32.dll_RtlMoveMemory
mov eax, dword [ebp + 0x10]
push 0x100
push eax
call fcn.004026e0
add dword [edi + 8], eax
add dword [edi + 0x10], eax
or dword [edi + 0x24], 0xe0000000
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
mov ebx, dword [esi + 0x38]
push ebx
push eax
call fcn.004026e0
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [0x4047ec]
mov dword [eax - 4], 0x32505564
xor eax, eax
inc eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10

Function at 0x4022dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, ebx
movzx eax, word [ebx + 0x3c]
add ebx, eax
mov ebx, dword [ebx + 0x78]
add ebx, edx
or edi, edi
je 0x40233b
mov esi, dword [ebx + 0x20]
add esi, edx
mov ecx, dword [ebx + 0x18]
push ebx
xor ebx, ebx
lodsd eax, dword [esi]
add eax, edx
push esi
push edi
xchg edi, esi
xchg edi, eax
lodsb al, byte [esi]
or al, al
jne 0x40231a
cmp byte [edi], 0
je 0x402323
jmp 0x402321
cmp byte [edi], al
jne 0x402321
inc edi
jmp 0x40230e
mov al, 1
pop edi
pop esi
or al, al
je 0x40232c
inc ebx
loop 0x402306
xchg ebx, eax
pop ebx
mov esi, dword [ebx + 0x24]
add esi, edx
inc eax
shl eax, 1
add esi, eax
movzx ecx, word [esi]
sub ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x1c]
add esi, edx
xchg ecx, eax
shl eax, 2
add esi, eax
mov eax, dword [esi]
add eax, edx
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x4025d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4025ff
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x402700
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
pushal
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [edi], 0
jmp 0x40275b
lodsb al, byte [esi]
cmp al, 0x25
jne 0x40275a
lea ebx, [ebp - 0x240]
push ebx
lodsb al, byte [esi]
jmp 0x40272c
mov byte [ebx], al
mov byte [ebx + 1], 0
inc ebx
lodsb al, byte [esi]
cmp al, 0x25
jne 0x402724
pop ebx
push 0x200
lea eax, [ebp - 0x200]
push eax
push ebx
call sub.kernel32.dll_GetEnvironmentVariableA
lea eax, [ebp - 0x200]
push eax
push edi
call sub.kernel32.dll_lstrcatA
jmp 0x402753
inc edi
cmp byte [edi], 0
jne 0x402752
jmp 0x40275b
stosb byte es:[edi], al
cmp byte [esi], 0
jne 0x402715
mov byte [edi], 0
popal
mov eax, dword [ebp + 0xc]
leave
ret 8
Function at 0x409ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x5c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x461290
mov dword [esp + 0x30], 0
call fcn.0042d630
or edi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov edx, dword [esi + 0x5c]
push 1
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x461294
mov dword [esp + 0x30], 1
call fcn.0042d630
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov ecx, dword [esi + 0x5c]
push 2
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x461298
mov dword [esp + 0x30], 2
call fcn.0042d630
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov eax, dword [esi + 0x5c]
push 3
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x46129c
mov dword [esp + 0x30], 3
call fcn.0042d630
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov edx, dword [esi + 0x5c]
push 4
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x4612a0
mov dword [esp + 0x30], 4
call fcn.0042d630
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov ecx, dword [esi + 0x5c]
push 5
lea edx, [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.00427845
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
mov eax, dword [eax - 8]
lea ecx, [esp + 0x10]
push edx
push ecx
push str._d__d__d
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 5
call fcn.0042d927
push eax
call fcn.004186a1
mov eax, dword [esp + 0x20]
add esp, 0x14
cmp eax, 0x3e8
jge 0x409e15
add eax, 0x7d0
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edi
push 0
push 0
push 0
push edx
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00426c3b
mov edx, dword [esp + 0x1c]
push 6
mov dword [0x4612a4], edx
mov eax, dword [esi + 0x5c]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x4612a8
mov byte [esp + 0x30], 6
call fcn.0042d630
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.0042d4f7
mov edx, dword [esi + 0x5c]
push 7
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x4612ac
mov byte [esp + 0x30], 7
call fcn.0042d630
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 5
call fcn.0042d4f7
lea ecx, [esp + 8]
mov dword [esp + 0x2c], edi
call fcn.0042d4f7
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40d240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x18]
mov eax, dword [esi + 0x5c]
push eax
push ecx
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x4612f8
mov dword [esp + 0x30], 0
call fcn.0042d630
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042d4f7
mov edx, dword [esi + 0x5c]
push 1
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.00427845
push eax
mov ecx, 0x4612fc
mov dword [esp + 0x30], 1
call fcn.0042d630
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042d4f7
mov ecx, dword [esi + 0x5c]
push 2
lea edx, [esp + 8]
push ecx
push edx
mov ecx, esi
call fcn.00427845
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
mov eax, dword [eax - 8]
lea ecx, [esp + 0xc]
push edx
push ecx
push str._d__d__d
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 2
call fcn.0042d927
push eax
call fcn.004186a1
mov eax, dword [esp + 0x1c]
add esp, 0x14
cmp eax, 0x3e8
jge 0x40d323
add eax, 0x7d0
mov dword [esp + 8], eax
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push 0
push 0
push 0
push edx
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00426c3b
mov edx, dword [esp + 0x18]
push 3
mov dword [0x461300], edx
mov eax, dword [esi + 0x5c]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.00427845
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x30], 3
call fcn.0042d630
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.0042d4f7
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
lea edx, [esp + 0x14]
push edx
push ecx
push str._d__d__d
push eax
lea ecx, [esp + 0x18]
call fcn.0042d927
push eax
call fcn.004186a1
mov eax, dword [esp + 0x1c]
add esp, 0x14
cmp eax, 0x3e8
pop esi
jge 0x40d3bb
add eax, 0x7d0
mov dword [esp + 4], eax
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0
push 0
push 0
push edx
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00426c3b
mov edx, dword [esp + 0x1c]
lea ecx, [esp]
mov dword [0x4612a4], edx
mov dword [esp + 0x28], 0xffffffff
call fcn.0042d4f7
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret