joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x423550
push eax
mov edi, ecx
call fcn.004119cb
mov esi, eax
add esp, 8
test esi, esi
je 0x401088
push ebx
push 2
push 0
push esi
call fcn.0041209d
push esi
call fcn.00411fae
push 0
push 0
push esi
mov ebx, eax
call fcn.0041209d
add esp, 0x1c
test edi, edi
je 0x40103e
mov dword [edi], ebx
test ebx, ebx
je 0x40106a
push ebx
call fcn.00412765
mov edi, eax
add esp, 4
test edi, edi
je 0x401042
push esi
push ebx
push 1
push edi
call fcn.00411c2c
push esi
call fcn.00412186
add esp, 0x14
pop ebx
mov eax, edi
pop edi
pop esi
ret
push esi
call fcn.00412186
add esp, 4
push 8
call fcn.00412765
add esp, 4
test eax, eax
je 0x401073
pop ebx
pop edi
mov byte [eax], 0
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x401090
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x423550
push eax
xor bl, bl
call fcn.004119cb
mov esi, eax
add esp, 8
test esi, esi
je 0x40110f
mov ecx, dword [ebp + 8]
push edi
push 0x423558
push ecx
call fcn.004119cb
mov edi, eax
add esp, 8
test edi, edi
je 0x401105
push esi
call fcn.004118e7
add esp, 4
test eax, eax
jne 0x4010fa
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.00411c2c
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.00411da0
push esi
call fcn.004118e7
add esp, 0x24
test eax, eax
je 0x4010d1
push edi
mov bl, 1
call fcn.00412186
add esp, 4
push esi
call fcn.00412186
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
push 0
lea ecx, [ebp - 0x418]
push ecx
mov edi, edx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x418], 0
call dword [0x421370]
test eax, eax
jne 0x401776
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004118d8
mov esp, ebp
pop ebp
ret
push ebx
mov byte [ebp - 0x405], 0
call fcn.0041292a
mov eax, dword [0x429f4c]
add esp, 4
push 0
push 0
test eax, eax
je 0x401798
push eax
push 3
jmp 0x40179c
push 0
push 0
push esi
call dword [0x421378]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x40189e
push 1
push 0
push 3
push 0
push 0
push 0x50
push edi
push eax
call dword [0x421380]
mov esi, eax
mov dword [ebp - 0x414], esi
test esi, esi
je 0x401891
mov edx, dword [ebp - 0x410]
push 1
push 0x400000
push 0
push 0
push 0
push edx
push 0x423580
push esi
call dword [0x42136c]
mov edi, eax
test edi, edi
je 0x40188a
push 0
push 0
push 0
push 0
push edi
call dword [0x421374]
test eax, eax
je 0x401883
push 0x423558
push ebx
mov byte [ebp - 0x405], 1
call fcn.004119cb
mov esi, eax
add esp, 8
test esi, esi
je 0x40187d
mov ebx, dword [0x421368]
lea eax, [ebp - 0x410]
push eax
push 0x3ff
lea ecx, [ebp - 0x404]
push ecx
push edi
call ebx
test eax, eax
je 0x401874
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x401874
push esi
push eax
lea edx, [ebp - 0x404]
push 1
push edx
mov byte [ebp + eax - 0x404], 0
call fcn.00411da0
add esp, 0x10
jmp 0x401833
push esi
call fcn.00412186
add esp, 4
mov esi, dword [ebp - 0x414]
push edi
call dword [0x42137c]
push esi
call dword [0x42137c]
mov eax, dword [ebp - 0x40c]
push eax
call dword [0x42137c]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x405]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret
Function at 0x402930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call section..text
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, esi
jne 0x402956
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402962
sub eax, edx
mov esi, eax
je 0x4029ca
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x4029ca
lea eax, [edx - 1]
cmp esi, eax
ja 0x4029ca
mov byte [ebp - 1], cl
sub edx, esi
xor ecx, ecx
dec edx
mov dword [ebp - 0x14], edx
je 0x4029ca
jmp 0x402993
mov edi, dword [ebp - 8]
xor eax, eax
test esi, esi
je 0x4029b0
add edi, ecx
jmp 0x4029a0
mov dl, byte [edi + eax]
cmp dl, byte [eax + ebx]
jne 0x4029b9
inc eax
cmp eax, esi
jb 0x4029a0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], ecx
jmp 0x4029bc
mov edx, dword [ebp - 0x14]
inc ecx
cmp ecx, edx
jb 0x402990
cmp byte [ebp - 1], 0
jne 0x4029dc
mov edi, dword [ebp - 8]
push edi
call fcn.0041272b
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push 0x423558
push eax
call fcn.004119cb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402aee
cmp byte [ebp + 0x10], 0
jne 0x402a17
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a03
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
sub eax, edx
lea esi, [eax + ecx]
jmp 0x402a1c
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp esi, edi
jae 0x402a39
mov edx, dword [ebp - 8]
push ebx
push 1
lea eax, [esi + edx]
push 1
push eax
call fcn.00411da0
inc esi
add esp, 0x10
cmp esi, edi
jb 0x402a20
push ebx
call fcn.00412186
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041272b
add esp, 8
cmp byte [ebp + 0x10], 0
je 0x402ae5
mov edx, dword [ebp + 0xc]
mov edi, dword [0x4211b4]
push 0
push edx
call edi
mov ebx, dword [0x4211c0]
mov esi, eax
test esi, esi
je 0x402a89
push 0
push 0
push 0
push 1
push 0x10
push esi
call ebx
test eax, eax
je 0x402a89
push 0
push esi
call dword [0x4211a8]
mov eax, dword [ebp + 0xc]
push 0
push eax
call edi
mov esi, eax
test esi, esi
je 0x402ab1
push 0
push 0
push 0
push 1
push 0x18
push esi
call ebx
test eax, eax
je 0x402ab1
push 0
push esi
call dword [0x4211a8]
mov ecx, dword [ebp + 0xc]
push 0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x402ad9
push 0
push 0
push 0
push 1
push 3
push esi
call ebx
test eax, eax
je 0x402ad9
push 0
push esi
call dword [0x4211a8]
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402320
add esp, 4
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
call fcn.0041272b
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x42a120], 0
jne 0x404084
push esi
push fcn.00403fe0
call fcn.00402c80
add esp, 4
cmp byte [ebx + 0x42a120], 0
jne 0x404079
cmp dword [0x42a118], 0
jne 0x40402a
push 0x4b4
call fcn.00412765
add esp, 4
test eax, eax
je 0x404014
mov dword [0x42a118], eax
lea esi, [ebx + ebx*2]
add esi, esi
push edi
mov edi, dword [esi + esi + 0x424d04]
add esi, esi
lea eax, [edi + 1]
push eax
call fcn.00412765
add esp, 4
xor ecx, ecx
test edi, edi
pop edi
je 0x40406c
lea esp, [esp]
mov edx, dword [esi + 0x424d08]
mov dl, byte [edx + ecx]
xor dl, byte [esi + 0x424d00]
inc ecx
mov byte [ecx + eax - 1], dl
cmp ecx, dword [esi + 0x424d04]
jb 0x404050
mov byte [ecx + eax], 0
mov ecx, dword [0x42a118]
mov dword [ecx + ebx*4], eax
mov esi, fcn.00403fe0
call fcn.00402d80
pop esi
pop ebx
pop ebp
ret
Function at 0x100069ab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
mov ecx, dword [edi + 0x3c]
lea eax, [ecx + eax*8]
mov eax, dword [eax + edi + 0x78]
add eax, edi

Function at 0x10006a57
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
push edi
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
jmp 0x10006a7a
push dword [esi + 0x30]
call fcn.10006ab9
pop ecx
cmp dword [esp + 0xc], eax
je 0x10006a83
mov esi, dword [esi]
cmp esi, edi
jne 0x10006a69
xor eax, eax
pop edi
pop esi
ret
mov eax, dword [esi + 0x18]
jmp 0x10006a80

Function at 0x10008e24
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x338
lea ebp, [esp - 4]
mov eax, dword [0x10053130]
xor eax, ebp
mov dword [ebp + 0x338], eax
push 0x64
mov eax, 0x10039c2c
call fcn.10022028
mov edi, 0x11c
push edi
xor esi, esi
lea eax, [ebp]
push esi
push eax
call fcn.10022680
add esp, 0xc
lea eax, [ebp]
mov dword [ebp], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call edi
test eax, eax
jne 0x10008fa1
lea eax, [ebp]
push eax
mov dword [ebp], 0x114
call edi
test eax, eax
jne 0x10008fa1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
push 0x1fe
mov word [ebp + 0x138], ax
lea eax, [ebp + 0x13a]
push esi
push eax
call fcn.10022680
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push str.__04d__02d__02d__02d:_02d:_02d:_04d_
lea eax, [ebp + 0x138]
push 0x100
push eax
call fcn.100016e6
add esp, 0x34
push esi
lea ecx, [ebp + 0x11c]
mov dword [ebp + 0x134], 7
call fcn.10001816
push str.Error__CSUComUtil::IsWindowsVistaOrLater__GetVersionEx_failed_with_error__d._n
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], esi
call fcn.1000217b
mov edi, eax
lea eax, [ebp + 0x138]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.1000217b
push edi
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 2
call fcn.1000219d
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x11c]
mov byte [ebp - 4], 3
call fcn.10001fc3
push esi
push 1
lea ecx, [ebp - 0x54]
call fcn.10001987
push esi
push 1
lea ecx, [ebp - 0x38]
call fcn.10001987
push esi
push 1
lea ecx, [ebp - 0x70]
call fcn.10001987
cmp dword [ebp + 0x134], 8
mov edi, dword [ebp + 0x120]
jae 0x10008f80
lea edi, [ebp + 0x120]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.100226fa
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp + 0x11c]
call fcn.10001987
xor eax, eax
jmp 0x10008fac
cmp dword [ebp + 4], 6
jb 0x10008faa
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x338]
xor ecx, ebp
call fcn.10022019
add ebp, 0x33c
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40e47c], 1
mov dword [0x40e478], 1
mov dword [0x40e474], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40e014], eax
mov eax, dword [0x40e488]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40e49c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40e484]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409130], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x40190f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._base64_decode
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 0x40a863
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, 0
leave
ret

Function at 0x40197b
Capabilities:
Contain obfuscated stackstrings
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [esp], 0x348
call sym._malloc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x4019ce
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x409020]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._strcat
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x4019b1
mov dword [esp], str.twatter_make_a_fadoong_n
call sym._puts
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._creator_func
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401a0d
mov dword [esp], str.Create_batch_failed
call sym._puts
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3f], 0x65776f70
mov dword [ebp - 0x3b], 0x65687372
mov dword [ebp - 0x37], 0x53206c6c
mov dword [ebp - 0x33], 0x492d7465
mov dword [ebp - 0x2f], 0x506d6574
mov dword [ebp - 0x2b], 0x65706f72
mov dword [ebp - 0x27], 0x20797472
mov dword [ebp - 0x23], 0x7461502d
mov dword [ebp - 0x20], 0x206874
mov dword [ebp - 0x7c], 0x6d614e2d
mov dword [ebp - 0x78], 0x74412065
mov dword [ebp - 0x74], 0x62697274
mov dword [ebp - 0x70], 0x73657475
mov dword [ebp - 0x6c], 0x61562d20
mov dword [ebp - 0x68], 0x2065756c
mov dword [ebp - 0x64], 0x79535b28
mov dword [ebp - 0x60], 0x6d657473
mov dword [ebp - 0x5c], 0x2e4f492e
mov dword [ebp - 0x58], 0x656c6946
mov dword [ebp - 0x54], 0x72747441
mov dword [ebp - 0x50], 0x74756269
mov dword [ebp - 0x4c], 0x3a5d7365
mov dword [ebp - 0x48], 0x6469483a
mov dword [ebp - 0x44], 0x296e6564
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3f]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s__s
lea eax, [ebp - 0x270]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x270]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401b0e
mov dword [esp], str.Set_attribute_of_file_to_hidden
call sym._puts
mov eax, dword [ebp + 8]
leave
ret
Function at 0x401b13
Capabilities:
Contain obfuscated stackstrings
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0x13
mov dword [esp], 0x8e8
call sym._malloc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x401b66
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x409040]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._strcat
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x401b49
mov dword [esp], str.agondo_fucaka_nigga_n
call sym._puts
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._creator_func
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401ba5
mov dword [esp], str.Create_batch_failed
call sym._puts
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3f], 0x65776f70
mov dword [ebp - 0x3b], 0x65687372
mov dword [ebp - 0x37], 0x53206c6c
mov dword [ebp - 0x33], 0x492d7465
mov dword [ebp - 0x2f], 0x506d6574
mov dword [ebp - 0x2b], 0x65706f72
mov dword [ebp - 0x27], 0x20797472
mov dword [ebp - 0x23], 0x7461502d
mov dword [ebp - 0x20], 0x206874
mov dword [ebp - 0x7c], 0x6d614e2d
mov dword [ebp - 0x78], 0x74412065
mov dword [ebp - 0x74], 0x62697274
mov dword [ebp - 0x70], 0x73657475
mov dword [ebp - 0x6c], 0x61562d20
mov dword [ebp - 0x68], 0x2065756c
mov dword [ebp - 0x64], 0x79535b28
mov dword [ebp - 0x60], 0x6d657473
mov dword [ebp - 0x5c], 0x2e4f492e
mov dword [ebp - 0x58], 0x656c6946
mov dword [ebp - 0x54], 0x72747441
mov dword [ebp - 0x50], 0x74756269
mov dword [ebp - 0x4c], 0x3a5d7365
mov dword [ebp - 0x48], 0x6469483a
mov dword [ebp - 0x44], 0x296e6564
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3f]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s__s
lea eax, [ebp - 0x270]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x270]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401ca6
mov dword [esp], str.Set_attribute_of_file_to_hidden
call sym._puts
mov eax, dword [ebp + 8]
leave
ret
Function at 0x401ddc
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
add eax, 2
mov edx, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 1
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401e1a
mov eax, 0
jmp 0x401f99
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x401f3c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x401e4b
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
jmp 0x401e50
mov eax, 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x401e71
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
jmp 0x401e76
mov eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x401e97
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
jmp 0x401e9c
mov eax, 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
shl eax, 0x10
mov edx, eax
mov eax, dword [ebp - 0x20]
shl eax, 8
add edx, eax
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
shr eax, 0x12
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x40ab00]
mov byte [edx], al
mov eax, dword [ebp - 0x28]
shr eax, 0xc
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x40ab00]
mov byte [edx], al
mov eax, dword [ebp - 0x28]
shr eax, 6
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x40ab00]
mov byte [edx], al
mov eax, dword [ebp - 0x28]
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x40ab00]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jb 0x401e2d
mov ecx, dword [ebp + 0xc]
mov edx, 0xaaaaaaab
mov eax, ecx
mul edx
mov eax, edx
shr eax, 1
mov edx, eax
add edx, edx
add edx, eax
mov eax, ecx
sub eax, edx
cmp eax, 1
je 0x401f6e
cmp eax, 2
je 0x401f7c
jmp 0x401f8b
mov eax, dword [ebp - 0x14]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0x3d
mov eax, dword [ebp - 0x14]
lea edx, [eax - 2]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0x3d
nop
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x402450
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4024b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40e490]
test esi, esi
jle 0x4025d0
mov eax, dword [0x40e494]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4024e4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402567
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4024d0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4025f7
mov eax, dword [0x40e494]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40e494]
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 0x4025d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402560
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402570
add dword [0x40e490], 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 [0x40e494]
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 0x402560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4024ee
mov eax, dword [0x40e494]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x402b10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40e4ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40e4a4]
sub esp, 4
test ebx, ebx
je 0x402b65
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 0x402b5e
test esi, esi
je 0x402b5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402b40
mov dword [esp], 0x40e4ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402ea0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402ec5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402ed0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402ec5
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 0x402f18
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402f0e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402f1a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402f00
xor eax, eax
pop ebx
pop esi
ret