joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d020
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
cmp dword [esi + 0x4c], 0xffffffff
je 0x44d229
push ebx
mov eax, dword [esi + 0x4c]
cmp eax, 0x7c
je 0x44d228
cmp eax, 0x29
jne 0x44d058
cmp dword [esi + 0x10], 0
jne 0x44d228
test dword [esi + 0x50], 0x10000000
je 0x44d22d
cmp eax, 0x2e
jne 0x44d0af
push 5
lea ecx, [esi + 0x24]
call fcn.00451b60
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x44d0a3
cmp byte [eax], 0x5c
jne 0x44d0a1
inc eax
cmp eax, ecx
je 0x44d0a1
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x44d08e
mov dl, byte [eax]
cmp dl, 0x28
je 0x44d09f
cmp dl, 0x29
je 0x44d09f
test cl, 0x10
jne 0x44d0a1
mov cl, byte [eax]
cmp cl, 0x7b
je 0x44d09f
cmp cl, 0x7d
jne 0x44d0a1
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.004525e0
jmp 0x44d215
cmp eax, 0x5c
jne 0x44d154
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x44d0f4
cmp byte [eax], 0x5c
jne 0x44d0f2
inc eax
cmp eax, ecx
je 0x44d0f2
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x44d0df
mov dl, byte [eax]
cmp dl, 0x28
je 0x44d0f0
cmp dl, 0x29
je 0x44d0f0
test cl, 0x10
jne 0x44d0f2
mov cl, byte [eax]
cmp cl, 0x7b
je 0x44d0f0
cmp cl, 0x7d
jne 0x44d0f2
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.004525e0
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x44d121
cmp byte [esi + 0x48], 0x62
jne 0x44d121
push 4
lea ecx, [esi + 0x24]
call fcn.00451b60
mov ecx, esi
call fcn.00451c10
jmp 0x44d21c
test eax, eax
je 0x44d148
cmp byte [esi + 0x48], 0x42
jne 0x44d148
push 4
lea ecx, [esi + 0x24]
call fcn.00451b60
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00451c10
jmp 0x44d21c
mov ecx, esi
call fcn.0044d250
jmp 0x44d215
cmp eax, 0x5b
jne 0x44d177
mov ecx, esi
call fcn.00451c10
mov ecx, esi
call fcn.0044d980
push 4
push 0x5d
mov ecx, esi
call fcn.0044f390
jmp 0x44d215
cmp eax, 0x28
jne 0x44d1a1
mov ecx, esi
call fcn.00451c10
mov ecx, esi
call fcn.00452850
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.0044f390
test bl, bl
je 0x44d21c
jmp 0x44d215
cmp eax, 0x5e
jne 0x44d1b9
push 2
lea ecx, [esi + 0x24]
call fcn.00451b60
mov ecx, esi
call fcn.00451c10
jmp 0x44d21c
cmp eax, 0x24
jne 0x44d1d1
push 3
lea ecx, [esi + 0x24]
call fcn.00451b60
mov ecx, esi
call fcn.00451c10
jmp 0x44d21c
cmp eax, 0x2a
je 0x44d242
cmp eax, 0x2b
je 0x44d242
cmp eax, 0x3f
je 0x44d242
cmp eax, 0x7b
je 0x44d242
cmp eax, 0x7d
jne 0x44d1f3
test dword [esi + 0x50], 0x10000000
je 0x44d234
cmp eax, 0x5d
jne 0x44d201
test dword [esi + 0x50], 0x10000000
je 0x44d23b
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0044c3e0
mov ecx, esi
call fcn.00451c10
mov ecx, esi
call fcn.00451c60
cmp dword [esi + 0x4c], 0xffffffff
mov cl, 1
jne 0x44d030
pop ebx
mov al, cl
pop esi
ret
push 5
call fcn.00456a3d
push 6
call fcn.00456a3d
push 4
call fcn.00456a3d
push 0xa
call fcn.00456a3d
int3
Function at 0x453770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4537a1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x453790
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x455690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4557f3
cmp byte [ebx + 0x3d], 0
je 0x4557f3
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4556e4
xor al, al
jmp 0x4557f5
mov ecx, 0xf
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x455769
sub eax, 1
je 0x45576d
sub eax, 2
je 0x4557bf
xor bl, bl
jmp 0x4557c1
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4557a5
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0046d2a1
add esp, 0x10
cmp esi, eax
jne 0x455765
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x4557bf
test esi, esi
jne 0x455730
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00403d90
jmp 0x455729
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4557dd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403b80
mov dword [ebp - 0x14], 0xf
mov al, bl
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jmp 0x4557f5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004584f8
mov esp, ebp
pop ebp
ret

Function at 0x475139
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474fb6

Function at 0x478a74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478716
Function at 0x47d50f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x4ddef8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47d550
cmp byte [edx], 0xa
jne 0x47d550
or byte [eax + edi + 0x28], 4
jmp 0x47d555
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x47d646
mov al, byte [ebx]
cmp al, 0x1a
je 0x47d627
cmp al, 0xd
je 0x47d57e
mov byte [esi], al
inc esi
inc ebx
jmp 0x47d61c
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x47d59e
cmp byte [eax], 0xa
jne 0x47d593
push 2
mov byte [esi], 0xa
pop eax
jmp 0x47d599
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x47d61c
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47d615
cmp dword [ebp - 0x14], 0
je 0x47d615
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4ddef8]
test byte [eax + edi + 0x28], 0x48
je 0x47d5ec
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x47d5dc
mov byte [esi], dl
jmp 0x47d618
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ddef8]
mov byte [eax + edi + 0x2a], dl
jmp 0x47d618
cmp byte [ebp - 1], 0xa
jne 0x47d5fe
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x47d5fe
mov byte [esi], 0xa
jmp 0x47d59b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00475a83
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47d619
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x47d567
jmp 0x47d646
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4ddef8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47d641
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47d646
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d651
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x4ddef8]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x47d695
cmp word [edx], bx
jne 0x47d695
or byte [edi + eax + 0x28], 4
jmp 0x47d69a
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x47d7ee
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x47d7ce
cmp ax, word [ebp - 0x10]
je 0x47d6d3
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x47d7c3
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x47d6f9
push 0xa
pop ecx
cmp word [eax], cx
jne 0x47d6e9
push ecx
pop eax
push 4
jmp 0x47d6ee
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x47d7bd
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47d7b4
cmp dword [ebp - 0x18], 0
je 0x47d7b4
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x4ddef8]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x47d780
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x47d744
mov word [esi], ax
jmp 0x47d778
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x4ddef8]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x4ddef8]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x4ddef8]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x47d7c3
cmp word [ebp - 4], ax
jne 0x47d795
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x47d795
mov word [esi], ax
add esi, 2
jmp 0x47d7c3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00475a83
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47d7c0
jmp 0x47d7b7
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x47d6b3
jmp 0x47d7ee
mov ecx, dword [ecx*4 + 0x4ddef8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x47d7e5
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x47d7ee
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x4811ff
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00459f80
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4811cf
sub eax, esi
jmp 0x4811d1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4811c0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4811f0
sub eax, esi
jmp 0x4811f2
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4811e1
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x4812b4
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x48122c
xor eax, eax
jmp 0x481278
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x481249
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.00484d80
jmp 0x481259
cmp eax, 2
jne 0x481262
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.00482fd0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.00459f80
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x4812a0
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x4812b4
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x481180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482fd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x482fdc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00482ff0
Function at 0x10022d4a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10022d89
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022d89
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022d89
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10022d89
cmp dword [ecx + 0x74], 0xe
jbe 0x10022d89
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10025714
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100257b1
push ebx
push esi
call fcn.100256dd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10025671
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002575e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100257b0
push edi
push eax
call fcn.10024012
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002577e
call fcn.10024060
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100257af
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10025671
add esp, 0x20
test eax, eax
jne 0x1002579d
push edi
call fcn.10024060
jmp 0x100257a5
push ebx
call fcn.10024060
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10025a1e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002e0f0
push 0x1002e0e8
push str.FlsAlloc
push 0x1f
call fcn.1002593a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10025a52
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002c150]
call esi
jmp 0x10025a58
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10025a9c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002e100
push 0x1002e0f8
push str.FlsGetValue
push 0x21
call fcn.1002593a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10025ad3
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002c150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10025adb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002e108
push 0x1002e100
push str.FlsSetValue
push 0x22
call fcn.1002593a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10025b15
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002c150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002b020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002b04d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002b04d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45a000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x45a175
cmp dword [esp + 0x54], 0x40
jne 0x45a175
cmp word [esp + 0x10], 0x5a4d
jne 0x45a175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x45a175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x460960
push esi
call ebx
test eax, eax
je 0x45a175
cmp dword [esp + 0x54], 0xf8
jne 0x45a175
cmp dword [0x460960], 0x4550
jne 0x45a175
mov eax, dword [0x460976]
test ah, 0x20
jne 0x45a175
mov edx, dword [0x460a80]
xor eax, eax
mov ax, word [0x460966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x460a58], eax
je 0x45a175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x460a6c], eax
xor eax, eax
mov ax, word [0x460966]
mov edx, dword [0x460a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x45a175
cmp dword [esp + 0x54], edi
jne 0x45a175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x460a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4609b4]
cmp edx, eax
ja 0x45a175
mov edi, dword [0x460a58]
mov ecx, dword [0x460988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x45a175
xor eax, eax
push 2
mov ax, word [0x460966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x45a175
cmp dword [edi - 0x20], ebx
ja 0x45a175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x45c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x460190
cmp edx, dword [eax]
je 0x45c78b
add eax, 8
inc ecx
cmp eax, 0x460220
jl 0x45c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x460190]
jne 0x45c8b9
mov eax, dword [0x460bb0]
cmp eax, 1
je 0x45c893
test eax, eax
jne 0x45c7bc
cmp dword [0x4600e4], 1
je 0x45c893
cmp edx, 0xfc
je 0x45c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x45c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45f45c
push edi
call fcn.0045df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045d680
lea eax, [ebp - 0xa0]
push 0x45f43c
push eax
call fcn.0045d680
push dword [esi + 0x460194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0045de75
add esp, 0x2c
pop edi
jmp 0x45c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x460194]
push 0
push eax
push dword [esi]
call fcn.0045d490
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 0x732370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x73238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x75b074
push ecx
mov edi, eax
call fcn.00746198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7323cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0074602e
push esi
call fcn.00745fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret