joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5534
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004a62d0
test byte [ebp + 0xd], 0xc0
jne 0x4a5558
mov eax, dword [0x4bef50]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4a5565
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4a5592
je 0x4a55a4
sub ecx, 0x100
je 0x4a55b2
sub ecx, 0x100
je 0x4a55b9
sub ecx, 0x100
je 0x4a55ab
jmp 0x4a55c0
sub ecx, 0x600
je 0x4a55b9
sub ecx, 0x100
je 0x4a55a4
jmp 0x4a55c0
mov edi, 1
jmp 0x4a55c5
mov edi, 2
jmp 0x4a55c5
mov edi, 4
jmp 0x4a55c5
mov edi, 5
jmp 0x4a55c5
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4a55ec
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4be9c8]
test al, 0x80
je 0x4a55e5
mov ebx, 0x80
jmp 0x4a55fe
mov ebx, 1
jmp 0x4a55fe
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a55fe
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4a5610
je 0x4a5619
dec eax
je 0x4a5622
jmp 0x4a562b
mov dword [ebp - 4], SysStringLen
jmp 0x4a563a
mov dword [ebp - 4], 0x40000000
jmp 0x4a563a
mov dword [ebp - 4], 0xc0000000
jmp 0x4a563a
push 1
call fcn.004a66ec
pop ecx
mov ebx, eax
jmp 0x4a572a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4a5656
sub eax, 0x10
je 0x4a565d
sub eax, 0x10
je 0x4a5666
sub eax, 0x10
je 0x4a566f
jmp 0x4a566f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4a5676
mov dword [ebp - 8], 1
jmp 0x4a5676
mov dword [ebp - 8], 2
jmp 0x4a5676
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x4a56e3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4a56d8
test byte [ebp + 0xd], 1
je 0x4a56d3
mov ebx, 0x50
jmp 0x4a56d8
mov ebx, 2
push ebx
call fcn.004a66ec
pop ecx
mov ebx, eax
jmp 0x4a572a
mov edi, esi
push edi
call fcn.004a50e0
pop ecx
test eax, eax
je 0x4a56f7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4a5703
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004a6410
add esp, 8
mov ebx, eax
inc eax
jne 0x4a572a
push 4
call fcn.004a66ec
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004a6304
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aa660
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a3cd0
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004a3d60
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a3d60
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x4bfc85
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a3cd0
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004a3d60
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004ac184
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4aa771
push esi
call fcn.004a3d60
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004a3d60
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004a3130
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4aa748
xor eax, eax
jmp 0x4aa7fa
push esi
call fcn.004a3d60
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004a3d60
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004a3c28
add esp, 0xc
jmp 0x4aa7b3
mov edi, ebx
mov edi, dword [edi + 0x24]
push edi
call fcn.004a3d60
pop ecx
push eax
push esi
call fcn.004a3d60
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004a3d60
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004a3150
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4aa7b3
xor eax, eax
jmp 0x4aa7fa
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004a3cd0
add esp, 8
push 0x4bfc87
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004a3cd0
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004a3cd0
add esp, 8
push 0x4bfc89
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004a3cd0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ae344
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4ae371
jmp 0x4ae3a8
call fcn.004ae2f4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004a3d60
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004a3d60
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ae42c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4c02e4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4ae506
cmp dword [0x4c02e0], 0
jne 0x4ae506
cmp dword [0x4c0574], 0
je 0x4ae4c0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004ae1f4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4ae4a6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004ae1f4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4ae4a6
lea ebx, [ebp - 0x84]
jmp 0x4ae4a7
inc ebx
call fcn.004ae3e4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4ae541
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4c02e8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004a3d60
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4c02eb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4ae541
cmp dword [0x4c02e0], 0
je 0x4ae520
cmp dword [0x4c02e0], 0xffffffff
je 0x4ae541
push esi
call dword [0x4c02e0]
pop ecx
mov eax, dword [0x4c02e4]
test eax, eax
je 0x4ae541
cmp dword [0x4c02e4], 0xffffffff
je 0x4ae541
cmp byte [eax], 0
je 0x4ae541
push esi
push eax
call fcn.004ae344
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aee38
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4c8010], 0
jne 0x4aeeb9
cmp dword [0x4c8040], 0
jne 0x4aee68
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4c8040], eax
test eax, eax
jne 0x4aee68
push 0x4c0440
call fcn.004ae558
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4c8040]
jmp 0x4aee7c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004a3d60
pop ecx
mov edi, eax
test eax, eax
jne 0x4aee74
lea edi, [ebp + 1]
push edi
call fcn.004a3130
pop ecx
mov ebx, eax
mov dword [0x4c8014], ebx
test ebx, ebx
jne 0x4aeea6
xor eax, eax
jmp 0x4aef79
push edi
mov edx, dword [0x4c8040]
push edx
push ebx
call fcn.004a3b94
add esp, 0xc
jmp 0x4aeedb
xor esi, esi
mov ebx, dword [0x4c8010]
jmp 0x4aeed3
push eax
call fcn.004a3d60
pop ecx
test eax, eax
jne 0x4aeecf
dec esi
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x4aeec3
lea ebx, [esi + 4]
push 4
mov dword [0x4c8018], ebx
inc ebx
push ebx
call fcn.004a2df0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4aeefb
xor eax, eax
jmp 0x4aef79
cmp dword [0x4c8010], 0
jne 0x4aef2a
xor esi, esi
mov ebx, dword [0x4c8014]
mov ebp, dword [esp]
jmp 0x4aef1b
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004a3d60
pop ecx
mov edi, eax
test eax, eax
jne 0x4aef11
jmp 0x4aef5b
xor esi, esi
mov ebx, dword [0x4c8010]
mov edi, dword [esp]
jmp 0x4aef53
push eax
call fcn.004a3d60
pop ecx
test eax, eax
je 0x4aef48
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4aef4c
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x4aef37
mov eax, dword [0x4c8010]
test eax, eax
je 0x4aef6b
push eax
call fcn.004a3140
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4c8010], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4af010
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4c8020], 0
jne 0x4af09c
cmp dword [0x4c8054], 0
jne 0x4af040
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [0x4c8054], eax
test eax, eax
jne 0x4af040
push str.GetEnvironmentStrings_failed
call fcn.004ae558
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4c8054]
jmp 0x4af059
lea eax, [edi + 1]
add edi, edi
add edi, 2
add ebp, eax
inc esi
add ebx, edi
push ebx
call fcn.004a3fd0
pop ecx
mov edi, eax
test eax, eax
jne 0x4af04c
lea edi, [ebp + 1]
mov eax, edi
add eax, eax
push eax
call fcn.004a3130
pop ecx
mov ebx, eax
mov dword [0x4c8024], ebx
test ebx, ebx
jne 0x4af087
xor eax, eax
jmp 0x4af163
add edi, edi
mov edx, dword [0x4c8054]
push edi
push edx
push ebx
call fcn.004a3b94
add esp, 0xc
jmp 0x4af0be
xor esi, esi
mov ebx, dword [0x4c8020]
jmp 0x4af0b6
push eax
call fcn.004a3fd0
pop ecx
test eax, eax
jne 0x4af0b2
dec esi
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x4af0a6
lea ebx, [esi + 4]
push 4
mov dword [0x4c8028], ebx
inc ebx
push ebx
call fcn.004a2df0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4af0e1
xor eax, eax
jmp 0x4af163
cmp dword [0x4c8020], 0
jne 0x4af114
xor esi, esi
mov ebx, dword [0x4c8024]
mov ebp, dword [esp]
jmp 0x4af105
mov dword [ebp], ebx
add edi, edi
add ebp, 4
add edi, 2
inc esi
add ebx, edi
push ebx
call fcn.004a3fd0
pop ecx
mov edi, eax
test eax, eax
jne 0x4af0f7
jmp 0x4af145
xor esi, esi
mov ebx, dword [0x4c8020]
mov edi, dword [esp]
jmp 0x4af13d
push eax
call fcn.004a3fd0
pop ecx
test eax, eax
je 0x4af132
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4af136
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x4af121
mov eax, dword [0x4c8020]
test eax, eax
je 0x4af155
push eax
call fcn.004a3140
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4c8020], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x3ad7258d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3ad7a064]
jne 0x3ad72597
repz ret
jmp fcn.3ad73d0c

Function at 0x3ad76570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x3ad7657f
pop dword [ebp - 0x3c]
mov eax, 0x8bc1bd44
add eax, 0xaf15a83b
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3498e
push 0
mov eax, 0xac1a068d
add eax, 0x8ebd0a27
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x3bf2
xor edx, edx
add edx, eax
mov edi, 0xde6d9e68
sub edi, 0xa3955068
add edi, dword [ebp - 0x3c]
mov esi, 0x32a283ca
add esi, 0x309cd558
xor dword [ebp - 0x1c], esi
mov ebx, dword [edi]
mov dword [ebp - 0x30], 0x5b879cb2
xor ebx, esi
sub dword [ebp - 0x30], ebx
mov dword [edx], ebx
sub dword [ebp - 0x14], 0xf5ddad33
add edx, 0x83caba4d
add edx, 0x7c3545b7
add edi, 4
loop 0x3ad765da
add eax, 0x2ceab671
add eax, 0xd3162c2a
xor ebx, ebx
add ebx, eax
add eax, 0xa22b88a5
sub eax, 0xa22b88a0
mov ecx, 0xee2905ab
sub ecx, 0xb35205ab
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4627e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x462805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x462878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x46283a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x46286d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x46286b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x462831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4627fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x416f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x416f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416f38
mov eax, 1
add ebx, ebx
jne 0x416f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416f50
jne 0x416f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f50
xor ecx, ecx
sub eax, 3
jb 0x416f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416ff2
mov ebp, eax
add ebx, ebx
jne 0x416f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416fbc
inc ecx
add ebx, ebx
jne 0x416fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416f9d
jne 0x416fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416fcd
jmp 0x416f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416fdc
add edi, ecx
jmp 0x416f3e
pop esi
mov edi, esi
mov ecx, 0x712
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416ffa
cmp byte [edi], 0xa
jne 0x416ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x416fff
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41706e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41702c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1707c]
or eax, eax
je 0x417068
mov dword [ebx], eax
add ebx, 4
jmp 0x417049
call dword [esi + 0x17080]
popal
jmp 0x407cd2

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xce16106
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x642c2851
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40a820
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00419500
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00419500
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40a880
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x50706c]
test esi, esi
jle 0x40a9a0
mov eax, dword [0x507070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40a8b4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40a937
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40a8a0
mov dword [esp], ebx
call fcn.0040b270
mov edi, eax
test eax, eax
je 0x40a9c7
mov eax, dword [0x507070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040b3b0
mov edx, dword [0x507070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40a9a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40a930
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40a940
add dword [0x50706c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x507070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40a930
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040a820
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40a8be
mov eax, dword [0x507070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040a820
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040a820
lea esi, [esi]
nop
Function at 0x40aee0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x507088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x507080]
sub esp, 4
test ebx, ebx
je 0x40af35
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40af2e
test esi, esi
je 0x40af2e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40af10
mov dword [esp], 0x507088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40b270
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40b295
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40b2a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40b295
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x40b2e8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40b2de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40b2ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40b2d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x41bbc0
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x41bc9b
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x41bc6d
cmp eax, 0x6a
je 0x41bc8a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x41bc68
cmp eax, 0x6a
je 0x41bc8a
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x41bc80

Function at 0x41c020
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x507bf4], 1
je 0x41c0d8
push edi
mov eax, 0x507bf4
push esi
push ebx
sub esp, 0x10
call fcn.0041b9a0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.0041b220
mov edi, dword [0x507bf4]
test edi, edi
jne 0x41c090
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4ba0d0], eax
cmp eax, 0xffffffff
je 0x4b3e8d
mov dword [0x507bf4], 1
mov dword [esp], esi
call fcn.0041b560
test ebx, ebx
je 0x41c0ca
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0041bcb0
cmp edi, 1
je 0x41c072
mov dword [esp], 2
call dword [0x4ba0bc]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x507bf4
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.0041b560
test ebx, ebx
jne 0x41c07e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x41c0e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0041bda0
mov edx, dword [entry3]
test edx, edx
je 0x41c210
mov ebx, eax
test eax, eax
je 0x41c210
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041b8a0
cmp eax, 1
je 0x41c21c
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.004b3e92
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4ba0d0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41c221
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041bbc0
jmp fcn.004b3e92

Function at 0x41c230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41c258
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0041c0e0